/* =====================================================================
   LikedWin — Ortak Footer (ana site + üye paneli)  ·  2026-09
   İşaretleme: includes/lw-footer.php · davranış: assets/js/lw-footer.js
   ---------------------------------------------------------------------
   Renkler iki tarafın token'larından okunur: panelde --lwh-* (panel-header.css),
   ana sitede site.css token'ları. Böylece iki yerde de koyu tema kendiliğinden
   çalışır. Gradyan YOK; düz renk.
   ===================================================================== */
.lwft {
    --f-bg:          var(--lwh-bg, var(--bg));
    --f-soft:        var(--lwh-bg-soft, var(--bg-soft));
    --f-surface:     var(--lwh-surface, var(--surface));
    --f-surface-2:   var(--lwh-surface-2, var(--surface-2));
    --f-line:        var(--lwh-line, var(--line));
    --f-line-strong: var(--lwh-line-strong, var(--line-strong));
    --f-ink:         var(--lwh-ink, var(--ink));
    --f-text:        var(--lwh-text, var(--text));
    --f-muted:       var(--lwh-muted, var(--muted));
    --f-muted-2:     var(--lwh-muted-2, var(--muted-2));
    --f-brand:       var(--lwh-brand, var(--brand));
    --f-brand-soft:  var(--lwh-brand-soft, var(--brand-soft));
    --f-brand-line:  var(--lwh-brand-line-2, var(--brand-line-2));
    --f-ok-fg:       var(--lwh-ok-fg, var(--ok-fg));
    --f-ok-bg:       var(--lwh-ok-bg, var(--ok-bg));
    --f-warn-fg:     var(--lwh-warn-fg, var(--warn-fg));
    --f-warn-bg:     var(--lwh-warn-bg, var(--warn-bg));
    --f-pink-fg:     var(--lwh-pink-fg, var(--pink-fg));
    --f-pink-bg:     var(--lwh-pink-bg, var(--pink-bg));
    --f-success:     var(--lwh-success, var(--success));
    --f-btn:         #2544d8;          /* beyaz yazılı dolgun düğme */
    --f-btn-hover:   #1c34a8;
    --f-pay-plate:   transparent;
    --f-pay-pad:     0;

    position: relative;
    z-index: 1;
    background: var(--f-bg);
    border-top: 1px solid var(--f-line);
    color: var(--f-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}
:root[data-theme="dark"] .lwft { --f-btn: #3f5cff; --f-btn-hover: #5570ff; --f-pay-plate: #ffffff; --f-pay-pad: 5px 9px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .lwft { --f-btn: #3f5cff; --f-btn-hover: #5570ff; --f-pay-plate: #ffffff; --f-pay-pad: 5px 9px; }
}
/* Panelde sayfa zemini açık gri; footer beyaz kartla ayrışsın */
.lwft--app { margin-top: 60px; background: var(--f-surface); }

.lwft a { color: inherit; text-decoration: none; }
.lwft ul { list-style: none; margin: 0; padding: 0; }
.lwft img { display: block; max-width: none; }

.lwft__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 20px 0;
}

/* =====================================================================
   1) Üst: marka bloğu + bağlantı sütunları
   ===================================================================== */
.lwft-top {
    display: grid;
    grid-template-columns: minmax(250px, 1.15fr) minmax(0, 3fr);
    gap: 56px;
    padding-bottom: 48px;
}

.lwft-logo { display: inline-flex; align-items: center; gap: 10px; }
.lwft-logo__icon { width: 30px; height: 30px; filter: var(--logo-filter); transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.lwft-logo:hover .lwft-logo__icon { transform: rotate(360deg) scale(.92); }
.lwft-logo__text { height: 21px; width: auto; filter: var(--logo-filter); }
.lwft-brand__text {
    max-width: 320px;
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--f-muted);
}

.lwft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lwft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--f-line-strong);
    border-radius: 12px;
    background: var(--f-surface);
    color: var(--f-ink) !important;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .15s ease;
}
.lwft-btn:hover { border-color: var(--f-brand-line); color: var(--f-brand) !important; }
.lwft-btn:active { transform: scale(.97); }
.lwft-btn i { font-size: 12px; }
.lwft-btn--primary { border-color: transparent; background: var(--f-btn); color: #fff !important; }
.lwft-btn--primary:hover { background: var(--f-btn-hover); border-color: transparent; color: #fff !important; }
.lwft-live {
    width: 8px; height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--f-success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--f-success) 22%, transparent);
}

.lwft-mail {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--f-ink) !important;
    transition: color .2s ease;
}
.lwft-mail span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.lwft-mail small { font-size: 11.5px; font-weight: 600; color: var(--f-muted); }
.lwft-mail__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: none;
    border-radius: 11px;
    background: var(--f-brand-soft);
    color: var(--f-brand);
    font-size: 15px;
}
.lwft-mail:hover { color: var(--f-brand) !important; }

/* Sütunlar */
.lwft-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.lwft-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    list-style: none;
    cursor: default;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--f-ink);
}
.lwft-col__head::-webkit-details-marker { display: none; }
.lwft-col__head::marker { content: ''; }
.lwft-col__chev { display: none; }
.lwft-col__list { display: flex; flex-direction: column; gap: 12px; }
.lwft-col__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--f-muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .2s ease, transform .2s ease;
}
.lwft-col__list a:hover { color: var(--f-brand); transform: translateX(3px); }
.lwft-col__ico { width: 15px; flex: none; text-align: center; color: var(--f-muted-2); font-size: 14px; transition: color .2s ease; }
.lwft-col__list a:hover .lwft-col__ico { color: var(--f-brand); }

/* =====================================================================
   2) Güven şeridi
   ===================================================================== */
.lwft-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--f-line);
    border-radius: 18px;
    background: var(--f-soft);
    overflow: hidden;
}
.lwft--app .lwft-trust { background: var(--f-surface-2); }
.lwft-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 18px 20px;
}
.lwft-trust__item + .lwft-trust__item { border-left: 1px solid var(--f-line); }
.lwft-trust__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: none;
    border-radius: 12px;
    font-size: 16px;
}
.lwft-trust__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lwft-trust__txt b { font-size: 14px; font-weight: 800; color: var(--f-ink); letter-spacing: -.01em; }
.lwft-trust__txt small { font-size: 12.5px; color: var(--f-muted); line-height: 1.4; }

.lwft-tone--brand { background: var(--f-brand-soft); color: var(--f-brand); }
.lwft-tone--ok    { background: var(--f-ok-bg);    color: var(--f-ok-fg); }
.lwft-tone--warn  { background: var(--f-warn-bg);  color: var(--f-warn-fg); }
.lwft-tone--pink  { background: var(--f-pink-bg);  color: var(--f-pink-fg); }

/* =====================================================================
   3) Alt bar — ödeme + başa dön · telif + yasal
   ===================================================================== */
.lwft-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 0;
    border-bottom: 1px solid var(--f-line);
}
.lwft-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.lwft-pay__label {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--f-muted-2);
}
.lwft-pay__label i { font-size: 11px; color: var(--f-ok-fg); }
.lwft-pay img {
    height: 28px; width: auto;
    opacity: .9;
    background: var(--f-pay-plate); padding: var(--f-pay-pad); border-radius: 8px;
    box-sizing: content-box;
}
.lwft-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--f-line-strong);
    border-radius: 999px;
    background: var(--f-surface);
    color: var(--f-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.lwft-top-btn i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--f-brand-soft);
    color: var(--f-brand);
    font-size: 11px;
    transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.lwft-top-btn:hover { border-color: var(--f-brand-line); color: var(--f-brand); }
.lwft-top-btn:hover i { transform: translateY(-3px); }

.lwft-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 20px 0 28px;
}
.lwft-copy { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--f-muted); }
.lwft-legal__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lwft-legal__links a { font-size: 12.5px; color: var(--f-muted); transition: color .2s ease; }
.lwft-legal__links a:hover { color: var(--f-brand); }

/* =====================================================================
   4) Dar ekran
   ===================================================================== */
@media (max-width: 1080px) {
    .lwft-top { grid-template-columns: 1fr; gap: 40px; }
    .lwft-brand { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 0 24px; }
    .lwft-logo, .lwft-brand__text { grid-column: 1; }
    .lwft-brand__text { max-width: 460px; }
    .lwft-actions { grid-column: 1; }
    .lwft-mail { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
    .lwft-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lwft-trust__item:nth-child(3) { border-left: 0; }
    .lwft-trust__item:nth-child(n+3) { border-top: 1px solid var(--f-line); }
}

/* Telefon: sütunlar akordeon, her şey tek sütun */
@media (max-width: 760px) {
    .lwft__inner { padding: 44px 16px 0; }
    .lwft-top { gap: 28px; padding-bottom: 28px; }
    .lwft-brand { display: block; }
    .lwft-brand__text { margin: 14px 0 18px; font-size: 13.5px; }
    .lwft-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .lwft-btn { height: 46px; }
    .lwft-mail { display: flex; margin-top: 18px; padding: 12px; border: 1px solid var(--f-line); border-radius: 14px; background: var(--f-soft); }

    .lwft-cols {
        display: block;
        border: 1px solid var(--f-line);
        border-radius: 18px;
        background: var(--f-surface);
        overflow: hidden;
    }
    .lwft-col + .lwft-col { border-top: 1px solid var(--f-line); }
    .lwft-col__head {
        min-height: 54px;
        margin: 0;
        padding: 0 16px;
        cursor: pointer;
        font-size: 12.5px;
        -webkit-tap-highlight-color: transparent;
    }
    .lwft-col__head:active { background: var(--f-soft); }
    .lwft-col__chev {
        display: inline-flex; align-items: center; justify-content: center;
        width: 28px; height: 28px;
        border-radius: 9px;
        background: var(--f-surface-2);
        color: var(--f-muted);
        font-size: 10px;
        transition: transform .3s cubic-bezier(.3, .8, .25, 1), background .2s ease, color .2s ease;
    }
    .lwft-col[open] .lwft-col__chev { transform: rotate(180deg); background: var(--f-brand-soft); color: var(--f-brand); }
    .lwft-col__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 0 10px 14px;
        animation: lwftFold .32s cubic-bezier(.2, .9, .25, 1) both;
    }
    @keyframes lwftFold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    .lwft-col__list a {
        display: flex;
        min-height: 40px;
        padding: 0 8px;
        border-radius: 10px;
        font-size: 14px;
    }
    .lwft-col__list a:hover { transform: none; }
    .lwft-col__list a:active { background: var(--f-soft); }

    .lwft-trust { grid-template-columns: 1fr 1fr; border-radius: 16px; }
    .lwft-trust__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .lwft-trust__ico { width: 36px; height: 36px; font-size: 14px; }
    .lwft-trust__txt b { font-size: 13.5px; }
    .lwft-trust__txt small { font-size: 12px; }

    .lwft-bottom { flex-direction: column; align-items: center; gap: 18px; padding: 24px 0; text-align: center; }
    .lwft-pay { justify-content: center; gap: 10px; }
    .lwft-pay__label { width: 100%; justify-content: center; }
    .lwft-pay img { height: 24px; max-width: 100%; }
    .lwft-legal { flex-direction: column-reverse; align-items: center; gap: 14px; padding: 20px 0 24px; text-align: center; }
    .lwft-legal__links { justify-content: center; gap: 6px 14px; }
    .lwft--app { margin-top: 40px; }
}
@media (max-width: 360px) {
    .lwft-actions { grid-template-columns: 1fr; }
    .lwft-col__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .lwft-col__list { animation: none; }
    .lwft-logo__icon, .lwft-top-btn i, .lwft-col__chev { transition: none; }
}
