/* =========================================================================
   K24 Footer — shared tokens + 4 style variants
   ========================================================================= */

.k24-footer {
    --k24f-bg:       #111827;
    --k24f-ink:      #D1D5DB;
    --k24f-ink-dim:  rgba(209,213,219,.55);
    --k24f-border:   rgba(255,255,255,.08);
    --k24f-accent:   #DC2626;
    --k24f-logo-h:   40px;
    --k24f-s-2:      8px;
    --k24f-s-3:      12px;
    --k24f-s-4:      16px;
    --k24f-s-6:      24px;
    --k24f-s-8:      32px;
    --k24f-s-12:     48px;

    background: var(--k24f-bg);
    color: var(--k24f-ink);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Shared main section padding ── */
.k24-footer__main {
    padding-block: var(--k24f-s-12);
}

/* ── Shared column title ── */
.k24-footer__col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin: 0 0 var(--k24f-s-4);
}

/* ── Shared list ── */
.k24-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--k24f-s-3);
}
.k24-footer__list a {
    color: var(--k24f-ink);
    text-decoration: none;
    transition: color .15s ease;
}
.k24-footer__list a:hover { color: #fff; }

.k24-footer__list-empty { color: var(--k24f-ink-dim); font-size: 13px; margin: 0; }

/* ── Shared logo ── */
.k24-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--k24f-s-2);
    text-decoration: none;
    margin-bottom: var(--k24f-s-4);
}
.k24-footer__logo {
    max-height: var(--k24f-logo-h);
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.k24-footer__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--k24f-accent);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}
.k24-footer__brand-text {
    font-family: var(--font-header, inherit), sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
}

/* ── Shared tagline + description ── */
.k24-footer__tagline {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--k24f-s-3);
}
.k24-footer__description {
    font-size: 13px;
    color: var(--k24f-ink-dim);
    margin: 0 0 var(--k24f-s-6);
    max-width: 34ch;
    line-height: 1.65;
}

/* ── Shared social icons ── */
.k24-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--k24f-s-2);
    margin-bottom: var(--k24f-s-6);
}
.k24-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: var(--k24f-ink);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    font-size: 14px;
}
.k24-footer__social-link:hover {
    background: var(--k24f-accent);
    color: #fff;
}
/* Social icon glyphs — unicode fallbacks (real icons via Material Symbols or SVG can replace) */
.k24-footer__social-icon::before { font-size: 14px; content: '↗'; }
.k24-footer__social-icon--facebook::before  { content: 'f'; font-family: inherit; font-weight: 900; }
.k24-footer__social-icon--twitter::before   { content: '𝕏'; }
.k24-footer__social-icon--instagram::before { content: '⬡'; }
.k24-footer__social-icon--youtube::before   { content: '▶'; }
.k24-footer__social-icon--tiktok::before    { content: '♪'; }
.k24-footer__social-icon--whatsapp::before  { content: '✆'; }
.k24-footer__social-icon--telegram::before  { content: '✈'; }

/* ── Shared subscribe ── */
.k24-footer__subscribe {
    display: flex;
    gap: 0;
    margin-bottom: var(--k24f-s-3);
}
.k24-footer__subscribe-input {
    flex: 1;
    height: 44px;
    padding: 0 var(--k24f-s-4);
    border: 1px solid rgba(255,255,255,.15);
    border-inline-end: none;
    border-radius: 6px 0 0 6px;
    background: rgba(255,255,255,.05);
    color: var(--k24f-ink);
    font-size: 13px;
    outline: none;
}
.k24-footer__subscribe-input:focus {
    border-color: var(--k24f-accent);
    background: rgba(255,255,255,.08);
}
.k24-footer__subscribe-button {
    height: 44px;
    padding: 0 var(--k24f-s-4);
    border: 1px solid var(--k24f-accent);
    border-radius: 0 6px 6px 0;
    background: var(--k24f-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
}
.k24-footer__subscribe-button:hover { background: color-mix(in srgb, var(--k24f-accent) 85%, #000); }
.k24-footer__subscribe-terms {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: var(--k24f-ink-dim);
    cursor: pointer;
}
.k24-footer__subscribe-terms input { margin-top: 3px; flex-shrink: 0; }

/* ── Shared copyright bar ── */
.k24-footer__bottom {
    border-top: 1px solid var(--k24f-border);
    padding-block: var(--k24f-s-4);
}
.k24-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--k24f-s-4);
    flex-wrap: wrap;
}
.k24-footer__copy {
    font-size: 12px;
    color: var(--k24f-ink-dim);
}
.k24-footer__bottom-menu {
    font-size: 12px;
}
.k24-footer__bottom-menu a {
    color: var(--k24f-ink-dim);
    text-decoration: none;
    margin-inline-start: var(--k24f-s-4);
    transition: color .15s ease;
}
.k24-footer__bottom-menu a:hover { color: #fff; }

/* =========================================================================
   Style 1 — Classic 4-column grid
   ========================================================================= */
.k24-footer--style-1 .k24-footer__grid--4col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--k24f-s-8);
    align-items: start;
}
@media (max-width: 1199.98px) {
    .k24-footer--style-1 .k24-footer__grid--4col {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767.98px) {
    .k24-footer--style-1 .k24-footer__grid--4col {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Style 2 — Centered minimal
   ========================================================================= */
.k24-footer--style-2 .k24-footer__main--centered {
    text-align: center;
}
.k24-footer--style-2 .k24-footer__centered-body {
    max-width: 520px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.k24-footer--style-2 .k24-footer__brand--centered { margin-inline: auto; }
.k24-footer--style-2 .k24-footer__tagline--centered { text-align: center; }
.k24-footer--style-2 .k24-footer__description--centered {
    text-align: center;
    max-width: 40ch;
}
.k24-footer--style-2 .k24-footer__social--centered {
    justify-content: center;
    margin-bottom: var(--k24f-s-6);
}
.k24-footer--style-2 .k24-footer__inline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--k24f-s-3) var(--k24f-s-6);
    justify-content: center;
    margin-bottom: var(--k24f-s-6);
}
.k24-footer--style-2 .k24-footer__inline-nav a {
    color: var(--k24f-ink);
    text-decoration: none;
    font-size: 13px;
    transition: color .15s ease;
}
.k24-footer--style-2 .k24-footer__inline-nav a:hover { color: #fff; }
.k24-footer--style-2 .k24-footer__subscribe--inline {
    width: 100%;
    max-width: 360px;
}
.k24-footer--style-2 .k24-footer__bottom-inner { justify-content: center; }

/* =========================================================================
   Style 3 — Magazine wide
   ========================================================================= */
.k24-footer--style-3 .k24-footer__magazine-brand-bar {
    background: rgba(0,0,0,.25);
    padding-block: var(--k24f-s-6);
    border-bottom: 1px solid var(--k24f-border);
    margin-bottom: var(--k24f-s-8);
}
.k24-footer--style-3 .k24-footer__magazine-brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--k24f-s-6);
    flex-wrap: wrap;
}
.k24-footer--style-3 .k24-footer__magazine-tagline {
    font-size: 13px;
    color: var(--k24f-ink-dim);
    margin: 0;
    flex: 1;
    text-align: center;
}
.k24-footer--style-3 .k24-footer__social { margin-bottom: 0; }
.k24-footer--style-3 .k24-footer__grid--3col {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: var(--k24f-s-8);
    align-items: start;
    padding-bottom: var(--k24f-s-8);
}
@media (max-width: 991.98px) {
    .k24-footer--style-3 .k24-footer__grid--3col {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575.98px) {
    .k24-footer--style-3 .k24-footer__grid--3col {
        grid-template-columns: 1fr;
    }
    .k24-footer--style-3 .k24-footer__magazine-brand-inner { flex-direction: column; text-align: center; }
}
.k24-footer__list--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--k24f-s-2) var(--k24f-s-4);
}
.k24-footer__recent-list {
    display: flex;
    flex-direction: column;
    gap: var(--k24f-s-3);
}
.k24-footer__recent-item {
    display: flex;
    align-items: flex-start;
    gap: var(--k24f-s-3);
    text-decoration: none;
    color: var(--k24f-ink);
    transition: color .15s ease;
}
.k24-footer__recent-item:hover { color: #fff; }
.k24-footer__recent-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
}
.k24-footer__recent-thumb--placeholder { background: rgba(255,255,255,.08); }
.k24-footer__recent-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.k24-footer--style-3 .k24-footer__main--magazine { padding-block: 0; }

/* =========================================================================
   Style 4 — Compact single bar
   ========================================================================= */
.k24-footer--style-4 .k24-footer__main--compact {
    padding-block: var(--k24f-s-6);
    border-bottom: 1px solid var(--k24f-border);
}
.k24-footer--style-4 .k24-footer__compact-bar {
    display: flex;
    align-items: center;
    gap: var(--k24f-s-6);
    flex-wrap: wrap;
}
.k24-footer--style-4 .k24-footer__brand--compact { margin-bottom: 0; }
.k24-footer--style-4 .k24-footer__logo--compact { max-height: calc(var(--k24f-logo-h) * .7); }
.k24-footer--style-4 .k24-footer__compact-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--k24f-s-2) var(--k24f-s-4);
    flex: 1;
}
.k24-footer--style-4 .k24-footer__compact-nav a {
    color: var(--k24f-ink);
    text-decoration: none;
    font-size: 13px;
    transition: color .15s ease;
}
.k24-footer--style-4 .k24-footer__compact-nav a:hover { color: #fff; }
.k24-footer--style-4 .k24-footer__compact-right {
    display: flex;
    align-items: center;
    gap: var(--k24f-s-4);
    flex-shrink: 0;
}
.k24-footer--style-4 .k24-footer__social--compact {
    margin-bottom: 0;
    flex-wrap: nowrap;
}
.k24-footer--style-4 .k24-footer__subscribe--compact {
    margin-bottom: 0;
}
.k24-footer--style-4 .k24-footer__subscribe-input--compact {
    height: 36px;
    min-width: 160px;
}
.k24-footer--style-4 .k24-footer__subscribe-button--compact {
    height: 36px;
    padding: 0 var(--k24f-s-3);
    font-size: 12px;
}
@media (max-width: 767.98px) {
    .k24-footer--style-4 .k24-footer__compact-bar { flex-direction: column; align-items: flex-start; }
    .k24-footer--style-4 .k24-footer__compact-right { flex-direction: column; align-items: flex-start; }
}
