/**
 * ESLuent global bottom bar — styles.
 * Loaded site-wide via inc/bottombar.php.
 *
 * Visual: chunky cream surface with a 2px black top border, three
 * columns (socials · contact button · legal+copyright), responsive
 * stack on narrow viewports.
 */

/* Hide the OLD TeachVietnam magazine footer so this is the only
   bottom-of-page block. Targets the legacy template's outer
   <footer role="contentinfo">. The NEW bar uses the same role but
   carries the .esl-bb class which the negation selector spares. */
footer[role="contentinfo"]:not(.esl-bb) {
    display: none !important;
}

.esl-bb {
    background: #FFF8EE;
    border-top: 2px solid #1A1A1A;
    color: #1A1A1A;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    position: relative;
    z-index: 5;
}

.esl-bb__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* Left group: socials + Contact button. The gap between the two
   children is exactly one social-icon width (38px) so the Contact
   button always sits "one space" to the right of the last icon —
   regardless of how many icons are present. */
.esl-bb__left {
    display: flex;
    align-items: center;
    gap: 38px;
}

/* ── Socials row ─────────────────────────────────── */
.esl-bb__socials {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* When no social URLs are set in Customizer, the wrapper is empty —
   collapse it so the Contact button sits flush at the start of the
   bar rather than offset by the now-meaningless 38px gap. */
.esl-bb__socials:empty {
    display: none;
}
.esl-bb__social {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F78B33;   /* accent2 — the theme's middle orange */
    color: #FFF8EE;        /* cream icon */
    border: 2px solid #1A1A1A;
    box-shadow: 2.5px 2.5px 0 #1A1A1A;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.esl-bb__social:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0 #1A1A1A;
    background: #F77205;   /* deeper to primary orange on hover */
    color: #FFF8EE;
}
.esl-bb__social svg { width: 18px; height: 18px; }

/* ── Contact button ──────────────────────────────── */
.esl-bb__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F77205;
    color: #FFF8EE;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.1px;
    text-decoration: none;
    border: 2.5px solid #1A1A1A;
    box-shadow: 3px 3px 0 #1A1A1A;
    transition: transform .15s ease, box-shadow .15s ease;
}
.esl-bb__contact:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #1A1A1A;
    color: #FFF8EE;
}

/* ── Right column: legal + copyright ─────────────── */
.esl-bb__legal {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: rgba(26,26,26,0.78);
    flex-wrap: wrap;
    justify-content: flex-end;
}
.esl-bb__link {
    color: rgba(26,26,26,0.78);
    text-decoration: none;
    font-weight: 700;
    transition: color .12s ease;
}
.esl-bb__link:hover { color: #F77205; }
.esl-bb__divider {
    width: 1.5px;
    height: 16px;
    background: rgba(26,26,26,0.22);
    display: inline-block;
}
.esl-bb__copy {
    font-size: 12.5px;
    color: rgba(26,26,26,0.62);
    letter-spacing: 0.1px;
}

/* ── Responsive: stack on narrow viewports ──────── */
@media (max-width: 860px) {
    .esl-bb__inner {
        flex-direction: column;
        gap: 14px;
        padding: 18px 22px;
        text-align: center;
    }
    .esl-bb__left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;            /* shrink the one-icon gap on mobile so the row wraps cleaner */
    }
    .esl-bb__legal {
        justify-content: center;
    }
}
