/**
 * FOOTER REDESIGN - Clean, Professional, Minimal Cyberpunk Theme  
 * COMPREHENSIVE MOBILE-FIRST RESPONSIVE DESIGN
 * Requirements: 4 columns on desktop, perfectly stacked on mobile
 * Theme: #0A0A0A background, #8B5CF6 purple accent, minimal animations
 * Mobile: Touch-friendly, accessible, no overflow, fluid typography
 */

/* ===== MOBILE-FIRST GLOBAL SAFETY ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== FOOTER BASE STYLES ===== */
.footer {
    background-color: #0A0A0A;
    border-top: 1px solid #8B5CF6;
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 2vw, 1.5rem) 0;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: clamp(1.5rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
    overflow-x: hidden;
}

/* ===== COLUMN STYLES - MOBILE-FIRST ===== */
.footer__column {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center; /* Mobile-first: center alignment */
}

.footer__column:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Column 1: Brand Identity */
.footer__column--brand {
    align-items: center;
}

.footer__branding {
    width: auto;
    max-width: clamp(24px, 6vw, 32px);
    height: auto;
    max-height: clamp(24px, 6vw, 32px);
    display: block;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.footer__logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer__slogan {
    color: #8B5CF6;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    margin: 0 0 clamp(0.25rem, 1vw, 0.5rem) 0;
    font-weight: 500;
    line-height: 1.4;
}

.footer__established {
    color: #888888;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    margin: 0;
    line-height: 1.4;
}

/* Columns 2-4: Content sections - MOBILE-OPTIMIZED */
.footer__heading {
    color: #FFFFFF;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 600;
    margin: 0 0 clamp(0.75rem, 2vw, 1rem) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    align-items: center; /* Mobile-first: center align list items */
}

.footer__list li {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.footer__link {
    color: #888888;
    text-decoration: none;
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* WCAG compliant touch target */
    min-width: 48px;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(0.5rem, 1vw, 0.75rem);
    border-radius: 4px;
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.footer__link:hover {
    color: #8B5CF6;
    transform: translateX(1px); /* Subtle glitch effect on hover */
    background-color: rgba(139, 92, 246, 0.08);
}

/* Social link with icon - MOBILE OPTIMIZED */
.footer__link--social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer__icon {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
    color: #8B5CF6;
    flex-shrink: 0;
}

.footer__compliance {
    color: #888888;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: clamp(0.75rem, 2vw, 1rem);
    line-height: 1.4;
    text-align: center;
}

/* Security Status - Warrant Canary - MOBILE OPTIMIZED */
.footer__canary {
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
    width: 100%;
}

.footer__canary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #888888;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    transition: color 0.2s ease;
    min-height: 48px; /* Touch-friendly */
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: 4px;
    line-height: 1.4;
    text-align: center;
}

.footer__canary-link:hover {
    color: #10B981;
    background-color: rgba(16, 185, 129, 0.08);
}

.footer__canary-indicator {
    width: clamp(8px, 2vw, 10px);
    height: clamp(8px, 2vw, 10px);
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 4px #10B981;
    display: inline-block;
    flex-shrink: 0;
}

.footer__canary-indicator.expired {
    background: #EF4444;
    box-shadow: 0 0 4px #EF4444;
}

.footer__canary-text {
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== FOOTER BOTTOM - MOBILE OPTIMIZED ===== */
.footer__bottom {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding-top: clamp(1rem, 2vw, 1.5rem);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.footer__copyright {
    color: #888888;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== RESPONSIVE DESIGN - PROGRESSIVE ENHANCEMENT ===== */

/* Small tablets and large phones (landscape) */  
@media (min-width: 600px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 4vw, 3rem);
        text-align: left; /* Left align on larger screens */
    }
    
    .footer__column {
        text-align: left;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer__column--brand {
        align-items: flex-start;
    }
    
    .footer__list {
        align-items: flex-start;
    }
    
    .footer__link {
        justify-content: flex-start;
    }
    
    .footer__canary-link,
    .footer__compliance {
        justify-content: flex-start;
    }
}

/* Tablet and small desktop */
@media (min-width: 900px) {
    .footer__content {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ===== ACCESSIBILITY & MOBILE ENHANCEMENTS ===== */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover transform effects on touch devices */
    .footer__link:hover {
        transform: none;
    }
    
    .footer__canary-link:hover {
        transform: none;
    }
}

/* High contrast mode support for accessibility */
@media (prefers-contrast: high) {
    .footer {
        border-top-color: #FFFFFF;
        background-color: #000000;
    }
    
    .footer__slogan {
        color: #FFFFFF;
        font-weight: 600;
    }
    
    .footer__link {
        color: #FFFFFF;
        border: 1px solid #FFFFFF;
    }
    
    .footer__link:hover {
        color: #000000;
        background: #FFFFFF;
    }
    
    .footer__canary-link {
        color: #FFFFFF;
        border: 1px solid #FFFFFF;
    }
    
    .footer__canary-link:hover {
        color: #000000;
        background: #FFFFFF;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer__link {
        transition: none;
    }
    
    .footer__canary-link {
        transition: none;
    }
    
    .footer__canary-indicator {
        box-shadow: none;
        animation: none;
    }
}

/* Focus states for keyboard navigation */
.footer__link:focus,
.footer__canary-link:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Very small mobile devices (320px and below) */
@media (max-width: 320px) {
    .footer__content {
        padding: 0 clamp(0.5rem, 2vw, 1rem);
        gap: clamp(1rem, 3vw, 1.5rem);
    }
    
    .footer__link {
        font-size: clamp(0.875rem, 4vw, 1rem);
        padding: clamp(0.75rem, 3vw, 1rem) clamp(0.25rem, 1vw, 0.5rem);
    }
    
    .footer__heading {
        font-size: clamp(0.875rem, 4vw, 1rem);
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .footer {
        padding: clamp(1rem, 2vh, 1.5rem) 0;
    }
    
    .footer__content {
        gap: clamp(1rem, 2vh, 1.5rem);
    }
    
    .footer__column {
        padding-bottom: clamp(0.5rem, 1vh, 1rem);
    }
}