/**
 * AutoRetrofit - Footer Layout
 */

/* ===================================
   Footer Base
   =================================== */

.footer {
    padding: var(--space-24) 0 var(--space-8);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

/* ===================================
   Footer Grid
   =================================== */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

/* ===================================
   Footer Brand
   =================================== */

.footer-brand .logo {
    margin-bottom: var(--space-6);
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    max-width: 280px;
    margin: 0;
}

/* ===================================
   Footer Links
   =================================== */

.footer-links h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* ===================================
   Footer Social
   =================================== */

.footer-social h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

.social-links {
    display: flex;
    gap: var(--space-2);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.social-links a:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
}

.social-links svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.social-links a:hover svg {
    color: var(--color-accent);
}

/* ===================================
   Footer Bottom
   =================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}

.footer-bottom p {
    margin: 0;
    color: var(--color-text-tertiary);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--color-text-tertiary);
}

.footer-legal a:hover {
    color: var(--color-text-secondary);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

