/* NerdLore - Footer premium separado */

.site-footer {
    position: relative;
    margin-top: 70px;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(8, 10, 20, 0.98), #07090d);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #f8fafc;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 58, 237, 0.48),
        rgba(56, 189, 248, 0.24),
        transparent
    );
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

.footer-premium-top {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(140px, 1fr));
    align-items: start;
    gap: 34px;
    padding: 42px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-box {
    max-width: 470px;
}

.footer-brand-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo,
.footer-logo-badge {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    border-radius: 16px;
}

.footer-brand-box h4 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.footer-brand-box h4::before {
    display: none;
}

.footer-brand-box p {
    max-width: 460px;
    margin: 0;
    color: #aeb6c8;
    font-size: 0.95rem;
    line-height: 1.75;
}

.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.footer-social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #c4b5fd;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.22);
    transition: 0.2s ease;
}

.footer-social-row a:hover {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.20);
    border-color: rgba(196, 181, 253, 0.45);
}

.footer-links-box h6,
.site-footer h5,
.site-footer h6 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 9px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aeb6c8;
    font-size: 0.94rem;
    line-height: 1.35;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-links a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(196, 181, 253, 0.55);
    opacity: 0;
    transform: scale(0.5);
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.footer-ad-area {
    margin-top: 26px;
}

.footer-bottom-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding: 22px 0;
}

.site-footer p,
.site-footer small {
    color: #94a3b8;
}

.footer-bottom-premium small {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-bottom-premium a {
    color: #c4b5fd;
    text-decoration: none;
}

.footer-bottom-premium a:hover {
    color: #ffffff;
}

/* Compatibilidade com footer antigo */

.site-footer hr {
    border-color: rgba(255,255,255,0.08);
    opacity: 1;
}

.site-footer .row {
    row-gap: 26px;
}

.site-footer .list-unstyled {
    margin: 0;
}

.site-footer .list-unstyled li + li {
    margin-top: 8px;
}

.site-footer .list-unstyled a {
    color: #aeb6c8;
    text-decoration: none;
    transition: 0.2s ease;
}

.site-footer .list-unstyled a:hover {
    color: #ffffff;
}

.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: #ffffff;
    font-weight: 900;
}

.site-footer .text-muted,
.site-footer .small,
.site-footer small {
    color: #94a3b8 !important;
}

/* Responsivo */

@media (max-width: 1199px) {
    .footer-premium-top {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-brand-box {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .footer-premium-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand-box {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .site-footer {
        margin-top: 50px;
    }

    .footer-premium-top {
        grid-template-columns: 1fr;
        padding: 34px 0 24px;
        gap: 24px;
    }

    .footer-brand-main {
        flex-direction: column;
    }

    .footer-logo,
    .footer-logo-badge {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 0;
    }

    .footer-logo-badge {
        border-radius: 14px;
    }

    .footer-brand-box h4 {
        font-size: 1.2rem;
    }

    .footer-social-row a {
        flex: 1 1 auto;
    }

    .footer-bottom-premium {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 0;
    }
}