/* Component: footer.css
   Premium Glassmorphism Footer - Matches Navbar Style
*/

/* === FOOTER VARIABLES === */
:root {
    --footer-glass-bg: rgba(10, 20, 35, 0.75);
    --footer-border: 1px solid rgba(255, 255, 255, 0.08);
    --footer-blur: 16px;
    --footer-text-primary: #f0f4f8;
    --footer-text-secondary: #94a3b8;
    --footer-accent: #30d158;
}

/* === MAIN FOOTER CONTAINER === */
.site-footer {
    position: relative;
    width: 100%;
    margin-top: 2.5rem;
    padding: 0 1rem 1.5rem 1rem;
}

/* === FUTURISTIC FOOTER (GLASS PILL) === */
.futuristic-footer {
    /* Floating Pill Style - Matches Navbar */
    width: 95%;
    max-width: var(--layout-max, 1400px);
    margin: 0 auto;
    min-height: 72px;
    
    /* Glass Effect */
    background: linear-gradient(180deg, rgba(10, 20, 35, 0.85), rgba(10, 20, 35, 0.75));
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    display: flex;
    align-items: center;
    padding: 1.25rem 2.5rem;
}

.futuristic-footer:hover {
    background: linear-gradient(180deg, rgba(10, 20, 35, 0.90), rgba(10, 20, 35, 0.80));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 6px 30px -2px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* === FOOTER INNER LAYOUT === */
.futuristic-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Left: Brand Section */
.footer-brand {
    justify-self: start;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--footer-text-secondary);
    font-weight: 400;
}

/* Center: Copyright */
.footer-copyright {
    justify-self: center;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.copyright-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--footer-text-primary);
}

.copyright-subtitle {
    font-size: 0.8rem;
    color: var(--footer-text-secondary);
    font-weight: 400;
}

/* Right: Links */
.footer-links {
    justify-self: end;
}

.links-grid {
    display: flex;
    gap: 0.25rem;
}

/* === BRAND PILL === */
.futuristic-footer .brand-pill {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(48, 209, 88, 0.05));
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: var(--footer-accent);
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
    flex-shrink: 0;
}

.futuristic-footer .brand-pill:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.25), rgba(48, 209, 88, 0.1));
    border-color: rgba(48, 209, 88, 0.5);
    box-shadow: 0 0 25px rgba(48, 209, 88, 0.3);
    transform: translateY(-2px);
}

/* === FOOTER LINKS === */
.footer-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--footer-text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-link i {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover i {
    background: rgba(48, 209, 88, 0.15);
    color: var(--footer-accent);
    box-shadow: 0 0 12px rgba(48, 209, 88, 0.2);
    transform: scale(1.05);
}

/* === LIGHT MODE === */
html.dc-light .futuristic-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85)) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

html.dc-light .futuristic-footer:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)) !important;
    border-color: rgba(0, 0, 0, 0.12);
}

html.dc-light .futuristic-footer .brand-name {
    color: #0f172a;
}

html.dc-light .futuristic-footer .brand-subtitle {
    color: #64748b;
}

html.dc-light .futuristic-footer .brand-pill {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(48, 209, 88, 0.06));
    border-color: rgba(48, 209, 88, 0.35);
    color: #1a7f37;
}

html.dc-light .futuristic-footer .brand-pill:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.25), rgba(48, 209, 88, 0.12));
    border-color: rgba(48, 209, 88, 0.5);
}

html.dc-light .copyright-text {
    color: #0f172a;
}

html.dc-light .copyright-subtitle {
    color: #64748b;
}

html.dc-light .footer-link {
    color: #64748b;
}

html.dc-light .footer-link:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

html.dc-light .footer-link:hover i {
    background: rgba(48, 209, 88, 0.12);
    color: #1a7f37;
}

/* === RESPONSIVE DESIGN === */

/* Tablets and smaller */
@media (max-width: 992px) {
    .futuristic-footer {
        width: 96%;
        padding: 1rem 1.5rem;
        min-height: 70px;
    }
    
    .futuristic-footer__inner {
        gap: 2rem;
    }
    
    .footer-link span {
        display: none;
    }
    
    .footer-link i {
        font-size: 1.1rem;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .site-footer {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .futuristic-footer {
        width: 98%;
        padding: 0.65rem 1rem;
        min-height: 52px;
    }
    
    .futuristic-footer__inner {
        gap: 1.5rem;
    }
    
    .footer-center {
        gap: 0.5rem;
    }
    
    .footer-copyright {
        font-size: 0.9rem;
    }
    
    .footer-tagline {
        font-size: 0.85rem;
    }
    
    .futuristic-footer .text-light {
        font-size: 1rem;
    }
}

/* Small mobile — single compact row: copyright left, icon links right */
@media (max-width: 576px) {
    .futuristic-footer {
        padding: 0.65rem 0.85rem;
        min-height: 48px;
    }

    .futuristic-footer__inner {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        text-align: left;
        align-items: center;
    }

    /* Brand already visible in navbar — hide in footer to save space */
    .footer-brand {
        display: none;
    }

    .footer-copyright {
        justify-self: start;
        gap: 0.1rem;
    }

    .copyright-text {
        font-size: 0.82rem;
    }

    .copyright-subtitle {
        font-size: 0.7rem;
    }

    .footer-links {
        justify-self: end;
    }

    .footer-link {
        padding: 0.4rem 0.5rem;
    }
}

/* Extra small mobile */
@media (max-width: 400px) {
    .futuristic-footer {
        padding: 0.55rem 0.65rem;
        min-height: 44px;
    }

    .footer-link {
        padding: 0.35rem 0.4rem;
    }

    .footer-link i {
        font-size: 1rem;
        width: 28px;
        height: 28px;
    }
}
