/* Ai- Mr Doso */

/* Definição de variáveis CSS para cores e tamanhos */
:root {
    --primary: #6a5af9;
    --secondary: #d66efd;
    --accent: #4ce0b3;
    --dark: #2d2b55;
    --light: #f8f9ff;
    --text: #33334d;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset de margin e padding e box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto; /* Permitir rolagem vertical */

    /* Desabilita a seleção de texto */
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Standard */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-tap-highlight-color: transparent; /* Remove highlight on tap for iOS */
}

/* Efeito de background com círculos */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="20" cy="20" r="5" fill="%236a5af922"/><circle cx="80" cy="80" r="8" fill="%23d66efd22"/><circle cx="50" cy="50" r="6" fill="%234ce0b322"/></svg>');
    opacity: 0.6;
    z-index: -1;
}

/* Container principal com design glassmorphism (compartilhado entre index e page1) */
.container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex; /* Para organizar itens em coluna */
    flex-direction: column;
    align-items: center;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Borda superior colorida do container */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 20px 20px 0 0;
}

/* Estilos específicos do index.html */
header {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
}

header h1 {
    color: var(--dark);
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

header p {
    color: var(--text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(248, 249, 255, 0.6);
    border-radius: 15px;
    animation: slideUp 0.6s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(106, 90, 249, 0.1);
    width: 100%; /* Ocupa a largura total do container */
    box-sizing: border-box;
}

section h2 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

section h2 i {
    color: var(--primary);
}

.about-channel p {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

.links-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    color: white;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 1;
    z-index: -1;
    transition: all 0.4s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.button:hover::before {
    opacity: 0.9;
}

.button:active {
    transform: translateY(1px);
}

.button i {
    font-size: 1.4rem;
}

.button.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.button.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.button.contact {
    background: linear-gradient(135deg, #6c757d, #495057);
}

footer {
    margin-top: 40px;
    color: var(--text);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: fadeIn 1s ease-out;
}

/* Estilos do page1.html */
.countdown-card {
    background: rgba(248, 249, 255, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(106, 90, 249, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.countdown-card h1 {
    color: var(--dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-card h1 i {
    color: var(--primary);
}

.countdown-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

#countdown {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 5px;
    min-width: 50px;
    display: inline-block;
}

.loading-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 25px 0;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.1s linear;
}

.content-area {
    background: rgba(248, 249, 255, 0.6);
    border-radius: 15px;
    padding: 30px;
    animation: slideUp 0.6s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(106, 90, 249, 0.1);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.content-area h2 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.content-area h2 i {
    color: var(--primary);
}

.content-area p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Botão "Continuar" - Inicialmente invisível e inativo para cliques */
.next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease, opacity 0.5s ease; /* Adiciona transição para opacidade */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    opacity: 0; /* Começa invisível */
    pointer-events: none; /* Não permite interação do mouse */
    transform: translateY(20px); /* Para animação de entrada suave */
    animation: none; /* Remove animação de entrada inicial via CSS, controlada por JS */
}

/* Estado visível do botão, ativado por JS adicionando uma classe ou alterando inline */
.next-button.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.next-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.next-button:active {
    transform: translateY(1px);
}

.scroll-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    animation: pulse 2s infinite;
    opacity: 0; /* Oculta inicialmente */
    transition: opacity 0.5s ease;
}


/* Animações (compartilhadas) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsividade (compartilhada e ajustada) */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    header h1, .countdown-card h1, .content-area h2, section h2 {
        font-size: 1.5rem; /* Ajuste para títulos em telas menores */
    }

    .countdown-card, .content-area, section {
        padding: 20px;
    }

    .button, .next-button {
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    #countdown {
        font-size: 2rem;
    }

    .content-area p {
        font-size: 1rem;
    }
}

/* Efeito de onda no rodapé (compartilhado) */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" fill="%236a5af922"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}

/* --- Estilos para o Pop-up Personalizado (mantido) --- */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fundo escuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Começa invisível */
    visibility: hidden; /* Oculto para acessibilidade */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9); /* Efeito de entrada */
    transition: transform 0.3s ease;
    position: relative;
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1);
}

.custom-alert-box h3 {
    color: #343a40;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.custom-alert-box p {
    color: #6c757d;
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-alert-box .close-btn {
    background-color: var(--primary); /* Usando a variável primary */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.custom-alert-box .close-btn:hover {
    background-color: #0056b3; /* Cor mais escura para hover, pode ser ajustado com variáveis */
}

/* Estilo para mensagens de erro */
.custom-alert-box.error h3 {
    color: #dc3545; /* Vermelho para erro */
}

.custom-alert-box.error .close-btn {
    background-color: #dc3545;
}
.custom-alert-box.error .close-btn:hover {
    background-color: #bd2130;
}