/*
 * Dynasty Nerds Footer — v1.0.0
 * All rules scoped to #dn-footer-wrapper
 * Zero Tailwind dependency.
 */

/* ══════════════════════════════════
   ELEMENTOR OVERRIDES (scoped)
   ══════════════════════════════════ */
#dn-footer-wrapper * {
    box-sizing: border-box;
}
#dn-footer-wrapper a {
    text-decoration: none !important;
    color: inherit !important;
}
#dn-footer-wrapper a:hover {
    text-decoration: none !important;
}
#dn-footer-wrapper p {
    margin: 0;
}
#dn-footer-wrapper img {
    border: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════
   FOOTER MAIN
   ══════════════════════════════════ */
#dn-footer-wrapper {
    background: linear-gradient(180deg, #0f1923 0%, #1a2f4a 100%);
    color: #cbd5e1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.dn-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 0;
}

/* ══════════════════════════════════
   GRID — 4 columns desktop
   ══════════════════════════════════ */
.dn-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
}

/* ── Brand Column ── */
.dn-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dn-footer-logo {
    height: 36px !important;
    width: auto !important;
    max-width: 300px !important;
}

.dn-footer-tagline {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

/* App badges */
.dn-footer-app-badges {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.dn-footer-app-badges a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 12px;
    color: #e2e8f0 !important;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s;
}

.dn-footer-app-badges a:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

.dn-footer-app-badges svg {
    flex-shrink: 0;
}

/* Social icons */
.dn-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.dn-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8 !important;
    transition: background 0.2s, color 0.2s;
}

.dn-footer-social a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

/* ── Link Columns ── */
.dn-footer-col {
    display: flex;
    flex-direction: column;
}

#dn-footer-wrapper h3.dn-footer-heading,
#dn-footer-wrapper .dn-footer-heading {
    font-family: 'Teko', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

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

.dn-footer-link {
    color: #94a3b8 !important;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
}

.dn-footer-link:hover {
    color: #fff !important;
}

/* Premium CTA button */
.dn-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 24px;
    background: #B2150D !important;
    color: #fff !important;
    font-family: 'Teko', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none !important;
    transition: background 0.2s;
}

.dn-footer-cta:hover {
    background: #931109 !important;
    color: #fff !important;
}

/* ══════════════════════════════════
   BOTTOM BAR
   ══════════════════════════════════ */
.dn-footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.dn-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dn-footer-bottom-link {
    color: #64748b !important;
    font-size: 12px;
    transition: color 0.2s;
}

.dn-footer-bottom-link:hover {
    color: #cbd5e1 !important;
}

.dn-footer-bottom-sep {
    color: #334155;
    font-size: 12px;
    user-select: none;
}

.dn-footer-copyright {
    color: #475569;
    font-size: 12px;
    margin: 0;
}

/* ══════════════════════════════════
   MOBILE — stacked layout
   ══════════════════════════════════ */
@media (max-width: 768px) {
    .dn-footer-inner {
        padding: 32px 20px 0;
    }

    .dn-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Brand section centered on mobile */
    .dn-footer-brand {
        align-items: center;
        text-align: center;
    }

    .dn-footer-app-badges {
        justify-content: center;
    }

    .dn-footer-social {
        justify-content: center;
    }

    /* Link columns as pill chip layout */
    .dn-footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .dn-footer-link {
        background: rgba(255, 255, 255, 0.06);
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
    }

    .dn-footer-link:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    /* CTA full width on mobile */
    .dn-footer-cta {
        width: 100%;
        text-align: center;
    }

    /* Bottom bar stacked */
    .dn-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-top: 28px;
        padding: 16px 0;
    }

    .dn-footer-bottom-links {
        justify-content: center;
    }
}

/* Override mega-menu body padding — footer handles tab bar spacing instead */
@media (max-width: 1023px) {
    body {
        padding-bottom: 0 !important;
    }
    #dn-footer-wrapper {
        padding-bottom: 64px !important;
    }
}
