/* ==============================
           VARIÁVEIS E BASE (ORIGINAL)
   ============================== */
:root {
    --cor-fundo: linear-gradient(180deg, #020f2c, #0d47a1, #1976d2);
    --cor-caixa: rgba(255, 255, 255, 0.08);
    --cor-texto: #E0E0E0;
    --cor-dourado: #FFD700;
    --cor-dourado-hover: #FFAA00;
    --cor-divisoria-ouro: rgba(255, 215, 0, 0.3);
    --cor-whatsapp: #25D366;
    --cor-facebook: #1877F2;
    --cor-twitter: #000000;
    --cor-threads: #000000;
    --cor-instagram: #E4405F;
    --cor-tiktok: #00f2ea;
    --cor-sucesso: #4CAF50;
    --sombra-dourada: 0 0 12px rgba(255, 215, 0, 0.4);
    --sombra-caixa: 0 8px 25px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    background: var(--cor-caixa);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--sombra-caixa);
    padding: 2rem;
    max-width: 800px; /* Mantendo o alinhamento original */
    width: 95%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 { font-family: 'Orbitron', sans-serif; font-size: 2.2rem; color: var(--cor-dourado); text-transform: uppercase; margin-bottom: .5rem; }
.subtitulo { font-size: 1.6rem; color: #bbdefb; margin-bottom: 0; }

/* ==============================
           NAVEGAÇÃO E DROPDOWN
   ============================== */
.nav-interna {
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--cor-divisoria-ouro);
    border-bottom: 1px solid var(--cor-divisoria-ouro);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nav-interna a {
    color: var(--cor-dourado);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background-color: rgba(13, 71, 161, 0.95);
    min-width: 200px;
    z-index: 10;
    border-radius: 6px;
}
.dropdown.active .dropdown-content { display: flex; flex-direction: column; }
.dropdown-content a { border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ==============================
           BOTÕES E COMPARTILHAMENTO (ORIGINAL)
   ============================== */
.botao-gerar, .cta-gerador, .carregar-mais, .botao-gerar-fechamento {
    background: linear-gradient(145deg, var(--cor-dourado), var(--cor-dourado-hover));
    color: #000;
    border: none;
    padding: .8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.share-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn.whatsapp { background: var(--cor-whatsapp); }
.share-btn.facebook { background: var(--cor-facebook); }
.share-btn.twitter { background: var(--cor-twitter); }
.share-btn.threads { background: var(--cor-threads); }
.share-btn.instagram { background: var(--cor-instagram); }
.share-btn.tiktok { background: var(--cor-tiktok); }
.share-btn.copy-link { background: #6c757d; }

/* ==============================
           VOLTAR AO TOPO
        ============================== */
.voltar-topo {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--cor-dourado);
    text-decoration: none;
    transition: color .2s;
}

.voltar-topo:hover {
    color: var(--cor-dourado-hover);
}

/* ==============================
           RESPONSIVIDADE (ORIGINAL)
   ============================== */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .subtitulo { font-size: 1.3rem; }
    .nav-interna a { font-size: 1.1rem; }
    .share-btn { padding: 6px 12px; font-size: 1.1rem; }
}

@media (max-width: 600px) {
    .container { padding: 1rem; }
    .nav-interna { flex-direction: column; }
    .share-container { gap: 6px; }
    .footer-section p { text-align: left !important; }
}

/* ==============================
           RODAPÉ
        ============================== */
.site-footer {
    margin-top: 3rem;
    padding: 2.5rem 1rem 1.5rem;
    background: linear-gradient(180deg, #0a3366, #08306b);
    border-top: 2px solid #1976d2;
    border-radius: 16px 16px 0 0;
    text-align: center;
    color: var(--cor-texto);
    box-shadow: 0 -8px 30px rgba(13, 71, 161, 0.4);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, transparent, #1976d2, #64b5f6, #1976d2, transparent);
    animation: blueSweep 10s infinite linear;
    opacity: 0.7;
}

@keyframes blueSweep {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.footer-social-title {
    color: #bbdefb;
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: #64b5f6;
    font-size: 2.5rem;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.4);
}

.footer-links a:hover {
    color: #bbdefb;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(187, 222, 251, 0.8);
}

.voltar-topo-footer {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #64b5f6;
    text-decoration: none;
    transition: color .2s, transform .2s;
    font-weight: 500;
}

.voltar-topo-footer:hover {
    color: #bbdefb;
    transform: translateY(-2px);
}

.copyright {
    font-size: 1.1rem;
    line-height: 2;
    color: #e3f2fd;
    padding-top: 1rem;
    border-top: 1px dashed rgba(100, 181, 246, 0.3);
    margin-top: 2rem;
}

.copyright a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.copyright a:hover {
    color: #bbdefb;
}

/* ==============================
           RESPONSIVO - 768px
        ============================== */
@media (max-width: 768px) {
    h1 { 
        font-size: 1.8rem; 
    }
    
    .subtitulo { 
        font-size: 1.3rem; 
    }
    
    .container { 
        padding: 1.5rem; 
    }
    
    .nav-interna { 
        gap: 10px; 
    }
    
    .nav-interna a { 
        font-size: 1.1rem; 
    }
    
    .secao-controles {
        gap: 1rem;
    }
    
    .controle-item {
        flex-direction: column;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }
    
    .seletor-custom {
        width: 100%;
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .cta-gerador { 
        padding: 0.8rem 1.5rem; 
        font-size: 1.0rem; 
    }
    
    .share-container { 
        gap: 8px; 
    }
    
    .share-btn { 
        padding: 6px 12px; 
        font-size: 1.1rem; 
    }
    
    .site-footer { 
        padding: 2rem 1rem 1rem; 
    }
    
    .footer-social-title { 
        font-size: 1.0rem; 
        margin-bottom: 1.2rem; 
    }
    
    .footer-links a { 
        font-size: 2rem; 
    }
    
    .voltar-topo-footer { 
        font-size: 0.9rem; 
        margin-bottom: 1rem; 
    }
    
    .copyright { 
        font-size: 1.1rem; 
        line-height: 1.8; 
        margin-top: 1.5rem; 
    }
}

/* ==============================
           RESPONSIVO - 600px
        ============================== */
@media (max-width: 600px) {
    .footer-section p { 
        text-align: left !important; 
    }
    
    h1 { 
        font-size: 1.5rem; 
        letter-spacing: 1px; 
    }
    
    .subtitulo { 
        font-size: 1.1rem; 
    }
    
    .container { 
        padding: 1rem; 
    }
    
    .nav-interna { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .share-container { 
        flex-direction: row; 
        align-items: center;
        gap: 6px;
    }

    .share-btn {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
}

/* ==============================
           RESPONSIVO - 480px
        ============================== */
@media (max-width: 480px) {
    .site-footer { 
        padding: 1.5rem 0.8rem 0.8rem; 
    }
    
    .footer-social-title { 
        font-size: 1.0rem; 
        margin-bottom: 1rem; 
    }
    
    .footer-links { 
        gap: 20px; 
        margin-bottom: 1.5rem; 
    }
    
    .footer-links a { 
        font-size: 1.8rem; 
    }
    
    .voltar-topo-footer { 
        font-size: 0.9rem; 
        margin-bottom: 0.8rem; 
    }
    
    .copyright { 
        font-size: 1.1rem; 
        line-height: 1.6; 
        margin-top: 1rem; 
    }
}