/**
 * Footer Styles
 * 
 * Variants: Classic (multi-column), Minimal (single line)
 * Inherits colors/fonts from Ensemble Designer CSS Variables
 *
 * @package Ensemble_Theme
 * @version 2.5.0
 */

/* ============================================
   CSS VARIABLES - Inherited from Ensemble
   ============================================ */

:root {
    --et-footer-bg: var(--ensemble-bg, #ffffff);
    --et-footer-text: var(--ensemble-text, #1a1a1a);
    --et-footer-muted: var(--ensemble-text-muted, #666666);
    --et-footer-border: var(--ensemble-card-border, #e8e8e8);
    --et-footer-font: var(--ensemble-font-body, system-ui, -apple-system, sans-serif);
    --et-footer-font-heading: var(--ensemble-font-heading, var(--et-footer-font));
}

/* ============================================
   BASE FOOTER STYLES
   ============================================ */

.et-footer {
    background: var(--et-footer-bg);
    color: var(--et-footer-text);
    font-family: var(--et-footer-font);
    border-top: 1px solid var(--et-footer-border);
}

.et-footer a {
    color: var(--et-footer-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.et-footer a:hover {
    opacity: 0.6;
}

/* ============================================
   FOOTER VARIANT: CLASSIC (Multi-Column)
   ============================================ */

.et-footer--classic .et-footer__main {
    padding: 60px 0 40px;
}

.et-footer--classic .et-footer__widgets {
    display: grid;
    grid-template-columns: repeat(var(--et-footer-columns, 4), 1fr);
    gap: 40px;
}

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

@media (max-width: 600px) {
    .et-footer--classic .et-footer__widgets {
        grid-template-columns: 1fr;
    }
}

.et-footer__widget-title {
    font-family: var(--et-footer-font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--et-footer-text);
}

.et-footer__widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.et-footer__widget li {
    margin-bottom: 10px;
}

.et-footer__widget a {
    font-size: 15px;
    color: var(--et-footer-muted);
}

.et-footer__widget a:hover {
    color: var(--et-footer-text);
    opacity: 1;
}

/* Bottom Bar */
.et-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--et-footer-border);
}

.et-footer__copyright {
    font-size: 14px;
    color: var(--et-footer-muted);
}

.et-footer__nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.et-footer__nav a {
    font-size: 14px;
    color: var(--et-footer-muted);
}

/* Social Links */
.et-footer__social {
    display: flex;
    gap: 16px;
}

.et-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--et-footer-border);
    color: var(--et-footer-text);
    transition: all 0.2s ease;
}

.et-footer__social a:hover {
    background: var(--et-footer-text);
    color: var(--et-footer-bg);
    opacity: 1;
}

/* ============================================
   FOOTER VARIANT: MINIMAL (Single Line)
   ============================================ */

.et-footer--minimal {
    padding: 24px 0;
}

.et-footer--minimal .et-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.et-footer--minimal .et-footer__copyright {
    font-size: 14px;
    color: var(--et-footer-muted);
}

.et-footer--minimal .et-footer__nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.et-footer--minimal .et-footer__nav a {
    font-size: 14px;
    color: var(--et-footer-muted);
}

@media (max-width: 600px) {
    .et-footer--minimal .et-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   FOOTER VARIANT: CENTERED
   ============================================ */

.et-footer--centered {
    text-align: center;
    padding: 60px 0 40px;
}

.et-footer--centered .et-footer__brand {
    margin-bottom: 24px;
}

.et-footer--centered .et-footer__brand .et-logo-svg,
.et-footer--centered .et-footer__brand .et-logo-img {
    max-height: 40px;
    width: auto;
}

.et-footer--centered .et-footer__nav {
    margin-bottom: 24px;
}

.et-footer--centered .et-footer__nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.et-footer--centered .et-footer__nav a {
    font-size: 15px;
    color: var(--et-footer-text);
}

.et-footer--centered .et-footer__social {
    justify-content: center;
    margin-bottom: 24px;
}

.et-footer--centered .et-footer__copyright {
    font-size: 14px;
    color: var(--et-footer-muted);
}

/* ============================================
   DARK MODE
   ============================================ */

.es-mode-dark .et-footer,
.et-mode-dark .et-footer {
    --et-footer-bg: var(--ensemble-bg-dark, #0a0a0a);
    --et-footer-text: var(--ensemble-text-dark, #f5f5f5);
    --et-footer-muted: var(--ensemble-text-muted-dark, #888888);
    --et-footer-border: var(--ensemble-card-border-dark, #222222);
}
