/* =====================================================================
   LikedWin — Kampanya kartları (.kc) · şerit · hizmet sayfası şeridi
   ---------------------------------------------------------------------
   Kart = BİLET. Üst gövde, delikli kesik çizgi, koparılan alt şerit.
   Düz renkler; gradyan / ışık halesi yok. site.css token'larına dayanır,
   kendi renk tanımlamaz. Delikler --kc-bg (kartın oturduğu zemin) ile
   boyanır — sarmalayıcıda mutlaka doğru zemin verilmeli.

   Hareket: giriş (stagger), fiyatın sayarak düşmesi (JS), kazanç hapının
   patlaması, rozet sallanması, süre/stok nabzı, hover'da hafif 3D eğilme.
   prefers-reduced-motion: tüm hareket kapanır, içerik anında görünür.
   ===================================================================== */

.kc-list { --kc-bg: var(--bg); position: relative; }

/* ---------- Izgara ---------- */
.kc-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

/* ---------- Şerit (yatay kaydırma) ---------- */
.kc-list--strip { margin-inline: calc(var(--kc-bleed, 0px) * -1); }
.kc-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--kc-bleed, 0px);
    padding: 6px var(--kc-bleed, 0px) 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.kc-track::-webkit-scrollbar { display: none; }
.kc-list--strip .kc-slot {
    flex: 0 0 min(300px, 84vw);
    scroll-snap-align: start;
}
.kc-nav {
    position: absolute; top: 42%; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-md);
    display: grid; place-items: center;
    cursor: pointer; font-size: 13px;
    transition: transform var(--ease), opacity var(--ease), background var(--ease);
}
.kc-nav--prev { left: -8px; }
.kc-nav--next { right: -8px; }
.kc-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.08); }
.kc-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .kc-nav { display: none; } }

/* ---------- Giriş animasyonu ---------- */
.kc-slot { min-width: 0; }
.kc-slot .kc { opacity: 0; transform: translateY(22px) scale(.97); }
.kc-list.is-in .kc-slot .kc {
    animation: kcIn .6s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes kcIn { to { opacity: 1; transform: none; } }

/* =====================================================================
   KART
   ===================================================================== */
.kc {
    --kc-r: 20px;
    position: relative;
    display: flex; flex-direction: column;
    height: 100%;
    border-radius: var(--kc-r);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    color: var(--text);
    text-decoration: none;
    isolation: isolate;
    transform-style: preserve-3d;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
    will-change: transform;
}
.kc:hover, .kc:focus-visible {
    border-color: var(--brand-line-2);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    transform: translateY(-4px) rotateX(var(--kc-rx, 0deg)) rotateY(var(--kc-ry, 0deg));
}
.kc:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
/* Sol kenardaki vurgu çubuğu: platform rengi, düz */
.kc::before {
    content: ''; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--kc-accent, var(--brand));
    z-index: 1;
}

/* ---------- Gövde ---------- */
.kc__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 16px 22px; flex: 1 1 auto; }

.kc__top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.kc__ico {
    flex: none; width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--kc-accent, var(--brand)); color: #fff; font-size: 17px;
    overflow: hidden;
}
.kc.is-light .kc__ico { color: var(--ink-on-light, #111); }
.kc__ico img { width: 100%; height: 100%; object-fit: cover; }
/* flex: 1 1 auto + min-width: 0 ŞART — yoksa blok içeriğine göre genişler,
   rozetle yarışır ve "Gerçek Kişiler" alt alta üç satıra bölünür. */
.kc__cat { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.kc__cat b,
.kc__cat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.kc__cat b { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.kc__cat small { font-size: 11.5px; font-weight: 600; color: var(--muted); }

.kc__badge {
    flex: none; white-space: nowrap;
    padding: 5px 9px; border-radius: 8px;
    background: var(--amber); color: #1a1400;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    transform-origin: 70% 50%;
}
.kc-list.is-in .kc__badge { animation: kcBadge 1.1s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 70ms + .35s) both; }
.kc:hover .kc__badge { animation: kcWobble .6s ease-in-out; }
@keyframes kcBadge {
    0%   { transform: scale(.4) rotate(-12deg); opacity: 0; }
    55%  { transform: scale(1.15) rotate(4deg); opacity: 1; }
    100% { transform: none; opacity: 1; }
}
@keyframes kcWobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg) scale(1.05); }
    60% { transform: rotate(4deg) scale(1.05); }
}

/* Adet: büyük sayı + birim */
.kc__qty { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.kc__qty-n {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(34px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1;
    color: var(--ink); font-variant-numeric: tabular-nums;
}
.kc__qty-u { font-size: 16px; font-weight: 800; color: var(--kc-accent, var(--brand)); text-transform: capitalize; }
.kc.is-light .kc__qty-u { color: var(--ink); }
.kc__svc { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc__sub { font-size: 12.5px; color: var(--muted-2); line-height: 1.45; }

/* Fiyat: eski üstü çizili, yeni büyük */
.kc__price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
/* --muted-2 + kırmızı çizgi koyu zeminde okunmuyordu (~3.6:1). --muted ve
   kendi renginde ince çizgi hem iki temada da okunur (~5.4:1) hem sakin. */
.kc__old {
    font-size: 15.5px; font-weight: 700; color: var(--muted);
    text-decoration-thickness: 2px; text-decoration-color: currentColor;
    text-underline-offset: 0; font-variant-numeric: tabular-nums;
}
.kc__new {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1;
    color: var(--brand); font-variant-numeric: tabular-nums;
}
.kc__new i { font-style: normal; font-size: .62em; margin-left: 3px; font-weight: 800; }
.kc__new.is-ticking { color: var(--danger); }
.kc__new.is-landed { animation: kcLand .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes kcLand { 0% { transform: scale(1.12); } 100% { transform: none; } }

/* Kazanç hapı — fiyat yerine oturunca patlar */
.kc__save {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    margin-top: 6px; padding: 6px 10px; border-radius: 999px;
    background: var(--ok-bg); color: var(--ok-fg);
    font-size: 12.5px; font-weight: 600;
    opacity: 0; transform: scale(.6);
}
.kc__save b { font-weight: 800; }
.kc__save.is-on { animation: kcPop .5s cubic-bezier(.2, .9, .3, 1.4) forwards; }
@keyframes kcPop { to { opacity: 1; transform: none; } }
/* JS yoksa ya da hareket kapalıysa hap direkt görünür */
.no-js .kc__save { opacity: 1; transform: none; }

/* ---------- Koparma çizgisi (bilet) ---------- */
.kc__tear {
    position: relative; height: 0; margin: 2px 14px 0;
    border-top: 2px dashed var(--line-strong);
}
.kc__tear::before, .kc__tear::after {
    content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--kc-bg, var(--bg));
    border: 1px solid var(--line);
}
.kc__tear::before { left: -25px; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
.kc__tear::after  { right: -25px; border-right-color: transparent; border-top-color: transparent; transform: rotate(-45deg); }
.kc:hover .kc__tear { border-top-color: var(--brand-line-2); }

/* ---------- Alt şerit ---------- */
.kc__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 18px 16px 22px;
}
/* Sayaç VE stok birlikte varsa yan yana sığmaz (sayaç kırpılıyordu):
   bilgiler üstte, buton tam genişlikte altta. */
.kc__foot--stack { flex-direction: column; align-items: stretch; gap: 12px; }
.kc__foot--stack .kc__cta { justify-content: center; }
.kc__meta { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
/* Hem sayaç hem stok varsa alt alta — yan yana sığmaz, ikisi de kırpılırdı */
.kc__stack { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.kc__meta--out { color: var(--err-fg); }

.kc__timer { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.kc__timer [data-kc-timer-text] { overflow: hidden; text-overflow: ellipsis; }
.kc__timer i { color: var(--warn-fg); animation: kcFlip 2.2s ease-in-out infinite; }
.kc__timer.is-urgent { color: var(--err-fg); }
.kc__timer.is-urgent i { color: var(--err-fg); }
.kc__timer.is-urgent [data-kc-timer-text] { animation: kcBlink 1s steps(2, start) infinite; }
@keyframes kcFlip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes kcBlink { to { opacity: .55; } }

.kc__left { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 104px; }
.kc__left-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc__left b { color: var(--ink); font-weight: 800; }
/* Stok azaldığında (%25 altı) kırmızıya döner */
.kc__left.is-low { color: var(--err-fg); }
.kc__left.is-low b { color: var(--err-fg); }
.kc__left.is-low .kc__left-bar > span { background: var(--danger); }
.kc__left-bar { position: relative; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.kc__left-bar > span {
    position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
    background: var(--kc-accent, var(--brand));
    transition: width 1.1s cubic-bezier(.2, .8, .2, 1) .5s;
}
.kc-list.is-in .kc__left-bar > span { width: var(--kc-pct, 100%); }
.kc.is-light .kc__left-bar > span { background: var(--brand); }

.kc__live { display: inline-flex; align-items: center; gap: 7px; color: var(--ok-fg); }
.kc__live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.kc__live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--success); animation: kcPulse 2s ease-out infinite; }
@keyframes kcPulse { 70%, 100% { transform: scale(2.4); opacity: 0; } }

.kc__cta {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--ink); color: var(--surface);
    font-size: 13.5px; font-weight: 800; white-space: nowrap;
    transition: background var(--ease), transform var(--ease);
}
.kc__cta i { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.kc:hover .kc__cta { background: var(--brand); color: #fff; }
.kc:hover .kc__cta i { transform: translateX(4px); }

/* ---------- Tükendi ---------- */
.kc.is-soldout { cursor: not-allowed; }
.kc.is-soldout .kc__body, .kc.is-soldout .kc__foot { opacity: .45; filter: grayscale(1); }
.kc.is-soldout:hover { transform: none; box-shadow: var(--shadow-md); border-color: var(--line); }
.kc__stamp {
    position: absolute; right: 14px; top: 44%; z-index: 2;
    padding: 6px 12px; border: 3px solid var(--err-fg); border-radius: 8px;
    color: var(--err-fg); font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 15px; font-weight: 800; letter-spacing: .14em;
    transform: rotate(-14deg);
    background: var(--surface);
}
.kc-list.is-in .kc.is-soldout .kc__stamp { animation: kcStamp .5s cubic-bezier(.2, .9, .3, 1.5) calc(var(--i, 0) * 70ms + .4s) both; }
@keyframes kcStamp { 0% { transform: rotate(-14deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-14deg) scale(1); opacity: 1; } }

/* ---------- Kompakt (panel / dar şerit) ---------- */
.kc--compact .kc__body { padding: 16px 16px 12px 18px; }
.kc--compact .kc__qty-n { font-size: 30px; }
.kc--compact .kc__new { font-size: 24px; }
.kc--compact .kc__foot { padding: 12px 14px 14px 18px; }
.kc--compact .kc__sub { display: none; }

/* =====================================================================
   BÖLÜM BAŞLIĞI (anasayfa + /kampanyalar) — düz eyebrow, gradyan yok
   ===================================================================== */
.kc-sec { position: relative; padding: clamp(44px, 6vw, 80px) 0; background: var(--bg-soft); }
.kc-sec .kc-list { --kc-bg: var(--bg-soft); }
.kc-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 32px); }
.kc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 8px;
    background: var(--brand-soft); color: var(--brand);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 12px;
}
.kc-eyebrow i { color: var(--danger); animation: kcFire 1.4s ease-in-out infinite alternate; }
@keyframes kcFire { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.18) rotate(5deg); } }
.kc-sec__title {
    margin: 0 0 8px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
    color: var(--ink);
}
.kc-sec__title .hl { color: var(--brand); }
.kc-sec__sub { margin: 0; max-width: 560px; font-size: clamp(14px, 1.4vw, 15.5px); line-height: 1.6; color: var(--muted); font-weight: 500; }
.kc-sec__all {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: border-color var(--ease), color var(--ease), transform var(--ease);
}
.kc-sec__all:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
@media (max-width: 720px) {
    .kc-sec__head { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   /kampanyalar SAYFASI
   ===================================================================== */
.kc-page { padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 88px); background: var(--bg); }
.kc-page .kc-list { --kc-bg: var(--bg); }
.kc-hero { text-align: center; max-width: 720px; margin: 0 auto clamp(26px, 4vw, 44px); }
.kc-hero .kc-eyebrow { margin-bottom: 14px; }
.kc-hero__title { margin: 0 0 12px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); }
.kc-hero__title .hl { color: var(--brand); }
.kc-hero__sub { margin: 0 auto; max-width: 560px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: var(--muted); }

/* Canlı sayaç şeridi: kaç kampanya · toplam kazanç */
.kc-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; }
.kc-stat { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); }
.kc-stat b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.kc-stat i { color: var(--brand); }

/* Kategori sekmeleri (filtre) */
.kc-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 clamp(20px, 3vw, 30px); }
.kc-tab {
    padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all var(--ease);
}
.kc-tab:hover { color: var(--ink); border-color: var(--brand-line-2); }
.kc-tab.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.kc-slot.is-hidden { display: none; }

.kc-empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }
.kc-empty i { display: block; font-size: 36px; margin-bottom: 12px; color: var(--muted-2); }
.kc-empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* Nasıl çalışır — üç adım */
.kc-how { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kc-how__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.kc-how__n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.kc-how__item b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.kc-how__item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* =====================================================================
   HİZMET SAYFASI ŞERİDİ (.kc-banner) — adet kartının hemen üstü
   ===================================================================== */
.kc-banner {
    position: relative;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin: 0 0 14px; padding: 14px 16px 14px 14px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--amber);
    background: var(--warn-bg);
    color: var(--text); text-decoration: none;
    overflow: hidden;
    animation: kcBannerIn .5s cubic-bezier(.2, .8, .2, 1) both;
    transition: transform var(--ease), box-shadow var(--ease);
}
.kc-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text); }
@keyframes kcBannerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.kc-banner__fire {
    flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--amber); color: #1a1400; font-size: 18px;
}
.kc-banner__fire i { animation: kcFire 1.2s ease-in-out infinite alternate; }
.kc-banner__text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; font-size: 14px; }
.kc-banner__text b { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 17px; font-weight: 800; color: var(--ink); }
.kc-banner__text s { color: var(--muted-2); font-weight: 600; text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.kc-banner__text em { font-style: normal; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 22px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.kc-banner__text em.is-ticking { color: var(--danger); }
.kc-banner__badge { padding: 4px 8px; border-radius: 6px; background: var(--amber); color: #1a1400; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.kc-banner__side { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.kc-banner__timer { font-size: 12.5px; font-weight: 700; color: var(--warn-fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-banner__timer.is-urgent { color: var(--err-fg); }
.kc-banner__cta {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--ink); color: var(--surface); font-size: 13.5px; font-weight: 800; white-space: nowrap;
}
.kc-banner__cta i { transition: transform .25s; }
.kc-banner:hover .kc-banner__cta i { transform: translateX(4px); }
@media (max-width: 560px) {
    .kc-banner__side { width: 100%; margin-left: 0; justify-content: space-between; }
    .kc-banner__cta { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   HAREKET KAPALI
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    .kc-slot .kc, .kc__save, .kc__stamp { opacity: 1; transform: none; animation: none !important; }
    .kc__badge, .kc__timer i, .kc__live-dot::after, .kc-eyebrow i, .kc-banner__fire i, .kc-banner { animation: none !important; }
    .kc, .kc__left-bar > span, .kc__cta i { transition: none !important; }
    .kc-list.is-in .kc__left-bar > span { width: var(--kc-pct, 100%); }
    .kc:hover { transform: none; }
}
