/* ========================================
   SECTION 11: GLOBAL PROFESSIONAL FOOTER
   Design: Executive Neural Glassmorphism (V2)
   Focus: Spatial Elegance, Micro-Interactions, Neural Continuity
   ======================================== */

.main-footer {
    padding: 3rem 2rem;
    /* Reduced from 6rem 2rem 3rem */
    background: #03050c;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Atmospheric Neural Background for Footer */
.main-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(170, 0, 255, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Top Row: Brand & Large Metrics */
.footer-top-row {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 6rem;
    margin-bottom: 5rem;
    align-items: center;
}

/* Branding Section */
.footer-brand .footer-logo {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, var(--color-primary, #00d4ff) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand .core-statement {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.footer-brand .secondary-statement {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary, #00d4ff);
    font-weight: 600;
    opacity: 0.8;
}

/* Master Stats Dashboard */
.footer-stats-dashboard {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-stats-dashboard:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.stat-card {
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-card .stat-val {
    display: block;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.stat-card:hover .stat-val {
    color: var(--color-primary, #00d4ff);
    transform: scale(1.1);
}

.stat-card .stat-lbl {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

/* Middle Row: Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary, #00d4ff);
    margin-bottom: 2rem;
}

/* Professional Lists */
.link-cluster {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cluster-item {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cluster-item:hover {
    color: #fff;
    transform: translateX(8px);
}

.cluster-item .icon-box {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Support Box in Links Grid */
.support-cluster {
    background: rgba(255, 212, 0, 0.02);
    border: 1px solid rgba(255, 212, 0, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    align-self: start;
}

.support-txt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.support-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-premium-support {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.btn-coffee-v2 {
    background: #ffeb3b;
    color: #000;
}

.btn-paypal-v2 {
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #b2ebf2;
    /* Ultra-bright cyan for compliance */
    background: rgba(0, 212, 255, 0.12);
}

.btn-premium-support:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.support-footer-note-small {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
}

/* Bottom Bar */
.footer-bottom-bar {
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    /* Increased opacity for contrast */
}

.footer-badges {
    display: flex;
    gap: 2rem;
}

.badge-tag {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    /* Increased opacity for contrast */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary, #00d4ff);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary, #00d4ff);
}

/* Responsive Masterclass */
@media (max-width: 1200px) {
    .footer-top-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand .core-statement {
        margin: 0 auto 1.5rem;
    }

    .footer-stats-dashboard {
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .support-cluster {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2x2 grid */
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .stat-card:nth-child(2n)::after {
        display: none;
        /* Hide separator for 2nd and 4th items */
    }

    .stat-card .stat-val {
        font-size: 1.8rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .cluster-item {
        justify-content: center;
    }

    .support-cluster {
        grid-column: span 1;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        /* Maintain 2x2 even on small mobile */
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .stat-card .stat-val {
        font-size: 1.5rem;
    }

    .stat-card .stat-lbl {
        font-size: 0.65rem;
    }

    .stat-card::after {
        display: none;
    }
}