/* ============================================
   FOOTER.CSS - Footer Styling
   F1Key Website - Enterprise Software Engineering
   ============================================ */

/* ==================== */
/* FOOTER SECTION */
/* ==================== */

.footer {
    background: var(--color-surface-base);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 40px;
    margin-top: auto;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    gap: 48px;
    margin-bottom: 48px;
}

/* ==================== */
/* FOOTER COLUMNS */
/* ==================== */

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

/* Footer Logo */
.footer-logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.footer-logo .highlight {
    color: var(--color-ferrari-red);
}

/* Footer Description */
.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-light-gray);
    margin-bottom: var(--spacing-md);
}

/* ==================== */
/* SOCIAL ICONS */
/* ==================== */

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-surface-2);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    color: var(--color-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-ferrari-red);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-social a:hover {
    border-color: var(--color-ferrari-red);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.4);
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ==================== */
/* FOOTER TITLE */
/* ==================== */

.footer-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

/* ==================== */
/* FOOTER LINKS */
/* ==================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--color-light-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
}

/* Underline Effect */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-ferrari-red);
    transition: width var(--transition-normal);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 0.5rem;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ==================== */
/* FOOTER BOTTOM */
/* ==================== */

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-medium-gray);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--color-light-gray);
    margin: 0;
}

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

/* Tablets */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-column:first-child {
        grid-column: auto;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 1.75rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links {
        text-align: left;
    }
}

/* ==================== */
/* ANIMATION STATES */
/* ==================== */

.footer-column {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.footer-column.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation */
.footer-column:nth-child(1) { transition-delay: 0.1s; }
.footer-column:nth-child(2) { transition-delay: 0.2s; }
.footer-column:nth-child(3) { transition-delay: 0.3s; }

.footer-bottom {
    opacity: 1;
    transition: opacity 0.6s ease 0.5s;
}

.footer-bottom.visible {
    opacity: 1;
}

/* ==================== */
/* ACCESSIBILITY */
/* ==================== */

/* Focus States */
.footer-social a:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--color-ferrari-red);
    outline-offset: 4px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .footer-column,
    .footer-bottom,
    .footer-social a,
    .footer-links a {
        transition: none;
        animation: none;
    }
    
    .footer-social a:hover,
    .footer-links a:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer {
        border-top-width: 2px;
    }
    
    .footer-bottom {
        border-top-width: 2px;
    }
}
