/*
 * Improved & Stunning Footer Styles for the Samra Theme
 * Version: 2.0
 */

/* --- 1. Root Variables (for easy customization) --- */
:root {
    --samra-color-footer-bg: #1a1d20;
    --samra-color-footer-text: #a9b3c1;
    --samra-color-footer-heading: #ffffff;
    --samra-color-footer-border: #3a3f44;
}



.sfe-filter-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff ;
    background-color: #0073aa;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sfe-filter-link:hover {
    background-color: #005a87;
    color: #ffffff;
}

.sfe-by-marque-link {
    background-color: #46b450 !important; /* Optional: unique color for "By marque" */
}

.sfe-by-marque-link:hover {
    background-color: #359b3c !important;
}


/* --- 2. Main Footer Wrapper & Overall Feel --- */
.site-footer {
    background-color: var(--samra-color-footer-bg);
    color: var(--samra-color-footer-text);
    padding: 4em 1.5em;
    font-size: 0.95em;
    border-top: 4px solid var(--samra-color-primary, #0073aa);
    position: relative;
    overflow: hidden; /* Contains animations */
    font-family: 'Poppins',  "Helvetica Neue", sans-serif;
}

/* --- 3. Footer Content Grid & Columns --- */
.footer-grid {
    display: grid;
    gap: 3em;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 3em;
    padding-bottom: 3em;
    border-bottom: 1px solid var(--samra-color-footer-border);
    
}

.footer-column {
    /* Subtle entry animation */
    animation: fadeInUp 0.7s ease-out 0.2s both;
}
/* Stagger the animation for each column */
.footer-column:nth-child(2) { animation-delay: 0.4s; }
.footer-column:nth-child(3) { animation-delay: 0.6s; }


/* Link List Styles */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links.footer-links-marques {
    margin-top: 1.5em;
}
.footer-links li {
    margin-bottom: 0.85em;
}
.footer-links a {
    text-decoration: none;
    color: var(--samra-color-footer-text);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}
/* Animated underline on hover */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--samra-color-primary, #0073aa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.footer-links a:hover {
    color: var(--samra-color-footer-heading);
}
.footer-links a:hover::after {
    transform: scaleX(1);
}

/* --- 5. Bottom Bar (Copyright & Credits) --- */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    font-size: 0.9em;
    color: var(--samra-color-text-light, #999);
}
.footer-credits p {
    margin: 0;
}

/* --- 6. Animations & Responsive Adjustments --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-logo {
    width: 100% ;
    max-width: 200px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .footer-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        max-width: 120px;
    }
}

/* Optional centering */
.footer-about {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}


@media (max-width: 600px) {
    .site-footer {
        padding: 3em 1.5em;
    }
    .footer-bottom-bar {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    /* On mobile, remove animation delay so they appear together when stacked */
    .footer-column,
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        animation-delay: 0.2s !important;
    }
}