/* ============================================================
   footer.css — PRINT3D NERD · Loja Virtual de Impressão 3D
   Paleta: #0A0A1A (fundo) | #E8001C (vermelho) | #0057FF (azul)
           #FFFFFF (branco) | #FF6A00 (laranja neon)
   Fontes: Orbitron (marca) + Rajdhani + Nunito
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&family=Orbitron:wght@400;700;900&display=swap');

/* ── VARIÁVEIS DO FOOTER ── */
:root {
    --f-bg:           #0A0A1A;
    --f-surface:      #10102A;
    --f-border:       #1E1E3A;
    --f-vermelho:     #E8001C;
    --f-azul:         #0057FF;
    --f-neon:         #FF6A00;
    --f-neon-glow:    rgba(255,106,0,.55);
    --f-branco:       #FFFFFF;
    --f-cinza-claro:  #CCCCDD;
    --f-cinza:        #6B6B8A;
    --f-radius:       10px;
    --f-bounce:       cubic-bezier(.68,-.55,.27,1.55);
}

/* ── WRAPPER DO FOOTER ── */
.footer-wrapper {
    width: 100%;
    background-color: var(--f-bg);
    border-top: 2px solid var(--f-vermelho);
    box-shadow:
        0 -8px 32px rgba(0,0,0,.70),
        0 -1px 0 rgba(232,0,28,.15);
    position: relative;
    overflow: hidden;
    /* estado inicial — JS adiciona .visible */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    /* fundo com textura de pontos tipo circuito */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0,87,255,.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(232,0,28,.07) 0%, transparent 45%),
        radial-gradient(1px 1px at 25% 25%, rgba(0,87,255,.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 75%, rgba(232,0,28,.15) 0%, transparent 100%);
}

.footer-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* linha de scan animada no topo — espelho do menu */
.footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--f-vermelho) 20%,
        var(--f-neon) 50%,
        var(--f-azul) 80%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: scanFooter 5s linear infinite reverse;
    pointer-events: none;
}

/* grade decorativa de fundo */
.footer-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,87,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,87,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanFooter {
    0%   { background-position: -300% 0; }
    100% { background-position:  300% 0; }
}

/* ── FOOTER SUPERIOR — LINKS E INFO ── */
.footer-superior {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 52px 60px 36px;
    position: relative;
    z-index: 1;
}

/* ── COLUNA MARCA ── */
.footer-col-marca .footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3em;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--f-branco);
    margin-bottom: 6px;
    display: block;
    text-decoration: none;
    transition: color .3s ease, filter .3s ease;
}

.footer-col-marca .footer-logo:hover {
    color: var(--f-neon);
    filter: drop-shadow(0 0 8px var(--f-neon-glow));
}

.footer-col-marca .footer-logo .logo-destaque {
    color: var(--f-vermelho);
}

.footer-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: .78em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--f-cinza);
    margin-bottom: 18px;
}

.footer-descricao {
    font-family: 'Nunito', sans-serif;
    font-size: .9em;
    font-weight: 400;
    color: var(--f-cinza-claro);
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: .8;
}

/* badge nerd destaque */
.footer-badge-nerd {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,106,0,.35);
    background: rgba(255,106,0,.08);
    color: var(--f-neon);
    font-family: 'Rajdhani', sans-serif;
    font-size: .8em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background .3s ease, box-shadow .3s ease;
}

.footer-badge-nerd:hover {
    background: rgba(255,106,0,.15);
    box-shadow: 0 0 12px rgba(255,106,0,.3);
}

/* ── COLUNAS DE LINKS ── */
.footer-col-titulo {
    font-family: 'Rajdhani', sans-serif;
    font-size: .78em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--f-cinza);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--f-border);
    position: relative;
}

.footer-col-titulo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--f-azul);
    border-radius: 2px;
}

.footer-links-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-lista li a {
    font-family: 'Nunito', sans-serif;
    font-size: .88em;
    font-weight: 500;
    color: var(--f-cinza-claro);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0 3px 0;
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: color .25s ease, padding-left .25s ease, border-color .25s ease;
    opacity: .75;
}

.footer-links-lista li a i {
    font-size: .85em;
    width: 14px;
    color: var(--f-cinza);
    transition: color .25s ease;
}

.footer-links-lista li a:hover {
    color: #5BA3FF;
    padding-left: 10px;
    border-left-color: var(--f-azul);
    opacity: 1;
}

.footer-links-lista li a:hover i {
    color: var(--f-azul);
}

/* link com badge novo */
.footer-links-lista li a .badge-novo {
    font-size: .65em;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--f-neon);
    color: var(--f-branco);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-left: auto;
    animation: pulseNovoBadge 2s ease-in-out infinite;
}

@keyframes pulseNovoBadge {
    0%, 100% { opacity: 1; }
    50%       { opacity: .6; }
}

/* ── DIVISÓRIA ── */
.footer-divider {
    width: calc(100% - 120px);
    margin: 0 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--f-border), var(--f-azul), var(--f-border), transparent);
    position: relative;
    z-index: 1;
}

/* ── FOOTER INFERIOR — COPYRIGHT + SOCIAL ── */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 60px;
    position: relative;
    z-index: 1;
}

/* ── ESQUERDA: MARCA RESUMIDA ── */
.footer-esquerda {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-esquerda p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--f-branco);
    line-height: 1.2;
    margin: 0;
}

.footer-esquerda .marca-destaque {
    color: var(--f-vermelho);
}

.footer-esquerda .footer-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: .7em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--f-cinza);
    margin: 2px 0 0;
}

/* ── CENTRO: COPYRIGHT ── */
.footer-centro {
    text-align: center;
}

.footer-centro p {
    font-family: 'Nunito', sans-serif;
    font-size: .82em;
    color: var(--f-cinza);
    line-height: 1.6;
    margin: 0;
    opacity: .7;
}

.footer-centro a {
    color: #5BA3FF;
    text-decoration: none;
    transition: color .3s ease;
}

.footer-centro a:hover {
    color: var(--f-azul);
    text-shadow: 0 0 8px rgba(0,87,255,.5);
}

/* linha de status tech */
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: .72em;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--f-cinza);
    text-transform: uppercase;
}

.footer-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #39FF14;
    box-shadow: 0 0 6px rgba(57,255,20,.8);
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(57,255,20,.8); }
    50%       { opacity: .4; box-shadow: 0 0 2px rgba(57,255,20,.3); }
}

/* ── DIREITA: REDES SOCIAIS ── */
.footer-direita .redes-sociais {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.botao-social {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--f-cinza-claro);
    background: linear-gradient(145deg, var(--f-surface), var(--f-bg));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--f-border);
    position: relative;
    overflow: hidden;
    transition:
        color .35s ease,
        border-color .35s ease,
        transform .4s var(--f-bounce),
        box-shadow .35s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ripple interno */
.botao-social::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-hover, linear-gradient(145deg, var(--f-azul), var(--f-vermelho)));
    opacity: 0;
    transition: opacity .35s ease;
}

.botao-social:hover::before { opacity: 1; }

.botao-social i {
    font-size: 1.1em;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.botao-social:hover {
    color: var(--f-branco);
    border-color: var(--f-azul);
    transform: translateY(-5px) scale(1.14) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,87,255,.45);
}

/* cores específicas por rede */
.botao-social.instagram:hover {
    --bg-hover: linear-gradient(145deg, #833AB4, #FD1D1D, #F77737);
    border-color: #FD1D1D;
    box-shadow: 0 8px 20px rgba(253,29,29,.4);
}

.botao-social.whatsapp:hover {
    --bg-hover: linear-gradient(145deg, #25D366, #128C7E);
    border-color: #25D366;
    box-shadow: 0 8px 20px rgba(37,211,102,.4);
}

.botao-social.facebook:hover {
    --bg-hover: linear-gradient(145deg, #1877F2, #0A5DC2);
    border-color: #1877F2;
    box-shadow: 0 8px 20px rgba(24,119,242,.4);
}

.botao-social.tiktok:hover {
    --bg-hover: linear-gradient(145deg, #010101, #69C9D0);
    border-color: #69C9D0;
    box-shadow: 0 8px 20px rgba(105,201,208,.4);
}

.botao-social.youtube:hover {
    --bg-hover: linear-gradient(145deg, #FF0000, #990000);
    border-color: #FF0000;
    box-shadow: 0 8px 20px rgba(255,0,0,.4);
}

/* ── SELOS / PAGAMENTOS ── */
.footer-selos {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 60px;
    position: relative;
    z-index: 1;
    justify-content: center;
    border-top: 1px solid var(--f-border);
    flex-wrap: wrap;
}

.footer-selos .selo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--f-border);
    background: rgba(255,255,255,.03);
    color: var(--f-cinza);
    font-family: 'Rajdhani', sans-serif;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    transition: border-color .3s ease, color .3s ease;
}

.footer-selos .selo:hover {
    border-color: var(--f-azul);
    color: var(--f-cinza-claro);
}

.footer-selos .selo i {
    font-size: 1em;
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 1024px) {
    .footer-superior {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px 32px 28px;
    }

    .footer-divider {
        width: calc(100% - 64px);
        margin: 0 32px;
    }

    .footer {
        padding: 20px 32px;
    }

    .footer-selos {
        padding: 14px 32px;
    }
}

@media (max-width: 768px) {
    .footer-superior {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 20px 22px;
    }

    .footer-divider {
        width: calc(100% - 40px);
        margin: 0 20px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 20px 16px;
        text-align: center;
    }

    .footer-esquerda,
    .footer-centro {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .footer-centro {
        padding-top: 12px;
        border-top: 1px solid var(--f-border);
    }

    .footer-direita .redes-sociais {
        justify-content: center;
    }

    .botao-social {
        width: 40px;
        height: 40px;
    }

    .footer-selos {
        padding: 12px 16px;
        gap: 6px;
    }
}
