/**
 * 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;
}

/* Note: Social icon styles are defined in social-icons.css */
/* Only basic layout styles here to avoid conflicts */

/* ============================================
   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);
}

/* ============================================
   FOOTER MAIN SPONSOR
   (Shown when Header Partner Logo is used)
   ============================================ */

.et-footer-main-sponsor {
    padding: 40px 0;
    border-bottom: 1px solid var(--et-footer-border);
}

.et-footer-main-sponsor__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.et-footer-main-sponsor__caption {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--et-footer-muted);
}

.et-footer-main-sponsor__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.et-footer-main-sponsor__logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.et-footer-main-sponsor__logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.et-footer-main-sponsor__logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.et-footer-main-sponsor__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--et-footer-text);
}

/* Responsive */
@media (max-width: 600px) {
    .et-footer-main-sponsor {
        padding: 32px 0;
    }
    
    .et-footer-main-sponsor__logo img {
        max-height: 50px !important;
    }
}

/* ============================================
   COMBINED SPONSORS SECTION (Side by Side)
   ============================================ */

.et-footer-sponsors-combined {
    padding: 32px 0;
    border-bottom: 1px solid var(--et-footer-border);
}

.et-footer-sponsors-combined__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

/* Left position - Main sponsor on left */
.et-footer-sponsors-combined--left .et-footer-sponsors-combined__inner {
    flex-direction: row;
}

/* Right position - Main sponsor on right */
.et-footer-sponsors-combined--right .et-footer-sponsors-combined__inner {
    flex-direction: row;
}

/* Main Sponsor Block (in combined layout) */
.et-footer-main-sponsor__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 0 48px;
}

/* Border on left side for right-positioned main sponsor */
.et-footer-sponsors-combined--right .et-footer-main-sponsor__block {
    border-left: 1px solid var(--et-footer-border);
    padding-left: 48px;
    padding-right: 0;
}

/* Border on right side for left-positioned main sponsor */
.et-footer-sponsors-combined--left .et-footer-main-sponsor__block {
    border-right: 1px solid var(--et-footer-border);
    padding-right: 48px;
    padding-left: 0;
}

.et-footer-main-sponsor__block .et-footer-main-sponsor__caption {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--et-footer-muted);
}

.et-footer-main-sponsor__block .et-footer-main-sponsor__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.et-footer-main-sponsor__block .et-footer-main-sponsor__logo a {
    display: flex;
    transition: opacity 0.2s ease;
}

.et-footer-main-sponsor__block .et-footer-main-sponsor__logo a:hover {
    opacity: 0.7;
}

.et-footer-main-sponsor__block .et-footer-main-sponsor__logo img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

/* Sponsors Block (in combined layout) */
.et-footer-sponsors__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.et-footer-sponsors__block .es-sponsors-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--et-footer-muted);
    margin: 0;
}

.et-footer-sponsors__block .es-sponsors-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

/* Responsive for Combined Section */
@media (max-width: 900px) {
    .et-footer-sponsors-combined__inner {
        flex-direction: column !important;
        gap: 32px;
    }
    
    /* Main Sponsor always at bottom on mobile */
    .et-footer-main-sponsor__block {
        order: 2 !important;
        padding: 32px 0 0 0 !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: none !important;
        border-top: 1px solid var(--et-footer-border) !important;
        width: 100%;
    }
    
    /* Sponsors bar first on mobile */
    .et-footer-sponsors__block {
        order: 1 !important;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .et-footer-sponsors-combined {
        padding: 24px 0;
    }
    
    .et-footer-main-sponsor__block .et-footer-main-sponsor__logo img {
        max-height: 50px !important;
        max-width: 140px;
    }
}

/* ============================================
   FOOTER SPONSORS BAR
   ============================================ */

.et-footer-sponsors {
    padding: 32px 0;
    border-bottom: 1px solid var(--et-footer-border);
}

.et-footer-sponsors .es-sponsors-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--et-footer-muted);
    text-align: center;
    margin: 0 0 24px;
}
