/**
 * Footer Styles
 * Modern "doormat-style" footer with 4 columns
 * Matches header dark theme (#212529)
 */

/* CSS Custom Properties for Footer */
:root {
    --footer-bg: #1a1a1a;
    --footer-bottom-bg: #000000;
    --footer-text: #b0b0b0;
    --footer-heading: #ffffff;
    --footer-link: #d0d0d0;
    --footer-link-hover: var(--tyre-reviews-blue);
    --footer-border: #555555;
}

/* Main Footer Container */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer a:hover {
    color: var(--footer-link-hover);
}

/* Footer Main Content Area */
.footer-main {
    padding: 2.5rem 0;
}

/* Footer Headings */
.footer-heading {
    color: var(--footer-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--footer-link-hover);
}

.footer-subheading {
    color: var(--footer-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.footer-subheading:first-child {
    margin-top: 0;
}

/* Footer Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    display: inline-block;
    padding: 0.15rem 0;
}

.footer-links a:hover {
    padding-left: 0.25rem;
}

/* 2-Column Brands Grid */
.footer-brands-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-brands-list li {
    margin-bottom: 0.25rem;
}

.footer-brands-list a {
    display: inline-block;
    padding: 0.15rem 0;
    font-size: 0.85rem;
}

.footer-view-all {
    margin-top: 0.75rem;
}

.footer-view-all a {
    font-weight: 600;
    color: var(--footer-link-hover);
}

/* Popular Tyres Section */
.footer-popular-tyres .footer-links {
    margin-bottom: 0;
}

.footer-popular-tyres .footer-links a {
    font-size: 0.85rem;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-heading);
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Language Selector - Compact Flags Only */
.footer-language {
    margin-top: 1rem;
}

.footer-language .language-selector {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-language .language-selector-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: transparent !important;
}

.footer-language .language-selector-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 2px;
    transition: opacity 0.2s ease;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-language .language-selector-item:hover {
    opacity: 0.7;
}

.footer-language .language-selector-item.current-language {
    outline: 2px solid var(--footer-link-hover);
    outline-offset: 2px;
}

.footer-language .language-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
    display: block;
}

/* Hide text labels in footer language selector */
.footer-language .language-name {
    display: none;
}

/* Footer Bottom Bar */
.footer-bottom {
    background: var(--footer-bottom-bg);
    padding: 1rem 0;
    font-size: 0.8rem;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: var(--footer-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 1.25rem;
    width: auto;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

/* Responsive Design */

/* Tablet - 2x2 grid */
@media (max-width: 991.98px) {
    .footer-main .row > [class*="col-"] {
        margin-bottom: 2rem;
    }

    .footer-main .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

}

/* Mobile - Single column */
@media (max-width: 767.98px) {
    .footer-main {
        padding: 2rem 0;
        text-align: center;
    }

    .footer-heading {
        display: inline-block;
    }

    .footer-brands-list {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-language .language-selector-content {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}

/* Remove old footer styles override */
.site-footer .footer-container,
.site-footer #footer {
    background: transparent;
    padding: 0;
    margin: 0;
}
