/* =====================================================================
   LikedWin — Anasayfa Hero (likedwin.com referansı, açık tema)
   ===================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% -10%, var(--brand-soft) 0%, transparent 55%),
        var(--bg);
    padding: clamp(32px, 4vw, 56px) 0 0;
    text-align: center;
}
/* Köşe ışık huzmeleri (overlay svg) */
.hero__overlay {
    position: absolute; inset: 0; z-index: 0;
    background: url('/assets/img/home-hero-overlay.svg') center top / cover no-repeat;
    pointer-events: none; opacity: .9;
}
.hero__inner { position: relative; z-index: 2; max-width: 980px; }

/* ---------- Başlık ---------- */
.hero__title {
    font-size: clamp(22px, 2.7vw, 36px);
    font-weight: 800; line-height: 1.22; letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 auto 16px;
}
.hero__title .hl { color: inherit; }
/* "ilk" kelimesinin sağ üst çaprazında eğik kuruluş yılı rozeti (menü badge stili) */
.hl-first { position: relative; }
.hl-est {
    position: absolute;
    bottom: 100%;
    right: -1.6em;
    margin-bottom: -.5em;
    transform: rotate(16deg);
    font-size: .3em;
    font-weight: 800;
    letter-spacing: .05em;
    color: #b45309;
    background: #fef3c7;
    padding: .3em .6em;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}
.hero__title .hl--u { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
/* Satır içi Lottie ikonları (verified + ai) */
.hero-ico {
    display: inline-block; vertical-align: middle;
    width: clamp(24px, 3vw, 38px); height: clamp(24px, 3vw, 38px);
    margin: -5px 2px 0;
}
/* AI Lottie beyaz içerikli → koyu yuvarlak kutu içinde göster (referanstaki gibi) */
.hero-ico-box {
    display: inline-flex; align-items: center; justify-content: center;
    vertical-align: middle;
    width: clamp(28px, 3.2vw, 42px); height: clamp(28px, 3.2vw, 42px);
    margin: -5px 3px 0;
    background: linear-gradient(150deg, #3138a6 0%, #171a3a 100%);
    border-radius: 28%;
    box-shadow: 0 4px 12px rgba(23, 26, 58, .3);
}
.hero-ico-box .hero-ico { width: 76%; height: 76%; margin: 0; }

/* Başlık ile alt metin arasında mobilde görsel ayraç (masaüstünde gizli) */
.hero__divider { display: none; }

/* ---------- Hero başlık rotatörü: Gerçek Kullanıcılardan [platform] [hizmet] ---------- */
.hero-rotate { display: inline; }
.hero-rotate__lead { font-weight: 800; color: var(--ink); }

/* ---------- Etkileşimli platform + hizmet seçici ---------- */
/* Kullanılan gradyan temaya göre seçilir: satır içi style yalnızca iki kaynağı
   (--pf-grad-l / --pf-grad-d) verir, hangisinin geçerli olacağına burası karar
   verir. Satır içinde doğrudan --pf-grad yazılsaydı tema kuralı ezilemezdi. */
.hero-pick { display: inline-flex; align-items: center; gap: .26em; font-weight: 800; vertical-align: baseline;
    --pf-grad: var(--pf-grad-l); }
:root[data-theme="dark"] .hero-pick { --pf-grad: var(--pf-grad-d, var(--pf-grad-l)); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .hero-pick { --pf-grad: var(--pf-grad-d, var(--pf-grad-l)); }
}
.hero-pick__field { position: relative; display: inline-flex; }

/* Tıklanabilir chip (gradyan metin + karet) */
.hero-pick__chip {
    display: inline-flex; align-items: center; gap: .22em;
    border: 0; background: none; margin: 0; padding: .02em .16em; cursor: pointer;
    font: inherit; font-weight: 800; line-height: inherit; color: inherit;
    border-radius: .3em; transition: background .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-pick__chip:hover,
.hero-pick__chip[aria-expanded="true"] { background: rgba(37, 68, 216, .08); }
.hero-pick__ico { font-size: .82em; }
.hero-pick__ico,
.hero-pick__txt,
.hero-pick__go i {
    background-image: var(--pf-grad); background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
/* Karet: sabit koyu renk koyu temada zeminle aynı tona düşüp kayboluyordu */
.hero-pick__caret {
    font-size: .46em; color: var(--muted-2); flex: none;
    -webkit-text-fill-color: currentColor; transition: transform .2s ease;
}
.hero-pick__chip[aria-expanded="true"] .hero-pick__caret { transform: rotate(180deg); }

/* Sabit kuyruk: "Hizmetleri" + ok (aralarında satır kırılmaz) */
.hero-pick__tail { display: inline-flex; align-items: center; gap: .5em; }
.hero-pick__word { font-weight: 800; color: var(--ink); }

/* Linke git oku */
.hero-pick__go {
    display: inline-flex; align-items: center; margin-left: .04em;
    text-decoration: none; transition: transform .18s ease;
}
.hero-pick__go i { font-size: .8em; }
.hero-pick__go:hover { transform: translateX(.14em); }

/* Seçim değişince yumuşak takla */
.hero-pick__ico.is-swap,
.hero-pick__txt.is-swap { animation: heroPickSwap .34s cubic-bezier(.2, .9, .25, 1); }
@keyframes heroPickSwap {
    from { opacity: 0; transform: translateY(.32em); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Açılır menü — H1 ölçeğinden kurtulup normal boyuta döner */
.hero-pick__menu {
    position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60;
    transform: translateX(-50%) translateY(-8px) scale(.96); transform-origin: top center;
    min-width: max(200px, 100%);
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 50px -16px rgba(16, 24, 40, .34), 0 4px 12px -8px rgba(16, 24, 40, .2);
    padding: 7px;
    font-family: 'Inter', -apple-system, sans-serif; font-size: 14.5px; font-weight: 600;
    line-height: 1.3; letter-spacing: normal; text-align: left; text-transform: none;
    -webkit-text-fill-color: currentColor; color: var(--ink);
    max-height: 320px; overflow-y: auto;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .22s cubic-bezier(.2, .9, .25, 1), visibility .18s;
}
.hero-pick__menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); }
.hero-pick__menu::-webkit-scrollbar { width: 8px; }
.hero-pick__menu::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 2px solid var(--surface); }
.hero-pick__opt {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer;
    font: inherit; color: var(--ink); text-align: left; white-space: nowrap;
    transition: background .14s ease;
}
.hero-pick__opt:hover { background: var(--brand-soft); }
.hero-pick__opt.is-active { background: var(--brand-soft); color: var(--brand); }
/* Menü ikonları marka renginde; koyu temada siyah markalar (X, TikTok, Threads,
   App Store) için hero-data.php'nin ürettiği açılmış ton kullanılır. */
.hero-pick__opt i:first-child {
    font-size: 17px; width: 22px; text-align: center; flex: none;
    color: var(--opt-c, currentColor); -webkit-text-fill-color: currentColor;
}
:root[data-theme="dark"] .hero-pick__opt i:first-child { color: var(--opt-c-d, var(--opt-c, currentColor)); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .hero-pick__opt i:first-child { color: var(--opt-c-d, var(--opt-c, currentColor)); }
}
.hero-pick__opt-check { margin-left: auto; font-size: 12px; color: var(--brand); -webkit-text-fill-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
    .hero-pick__ico.is-swap, .hero-pick__txt.is-swap { animation: none; }
    .hero-pick__menu, .hero-pick__caret, .hero-pick__go { transition: none; }
}
/* ---------- Alt metin ---------- */
.hero__sub {
    font-size: clamp(13px, 1.4vw, 15.5px);
    line-height: 1.65; color: var(--muted); font-weight: 500;
    margin: 0 auto 22px; max-width: 560px;
}
.hero__hl-yellow {
    /* İki katman:
       1) fosforlu kalem dolgusu — TEK renk, hover'da sağdan sola açılır
       2) durağan hâldeki yatay gradyan (soldan solar)
       Dolgu tek renk olduğu için hover'da gradyan/renk farkı görünmez. */
    background-image: linear-gradient(var(--hl-yellow-hover), var(--hl-yellow-hover)), var(--hl-yellow-bg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0 100%, 100% 100%;
    background-color: transparent;
    padding: 1px 6px; font-weight: 700; color: var(--hl-yellow-fg);
    border-radius: 3px;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
    transition: background-size .35s ease;
}
/* Üstüne gelince tam kaplama (şeffaf kısımlar da dolar) */
.hero__hl-yellow:hover { background-size: 100% 100%, 100% 100%; }
@media (prefers-reduced-motion: reduce) {
    .hero__hl-yellow { transition: none; }
}

/* ---------- CTA butonları ---------- */
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero__btn {
    height: 46px; padding: 0 22px; border-radius: 12px; font-size: 14.5px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
    transition: transform var(--ease), background var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.hero__btn i { font-size: 14px; }
.hero__btn--primary {
    /* Renk site.css'teki --cta-* tokenlarından gelir: koyu temada --brand
       açıldığı için düz beyaz yazıyla soluk kalıyordu, orada doygun gradyan
       kullanılıyor. */
    position: relative;
    overflow: hidden;                /* parıltı köşelerden taşmasın */
    background: var(--cta-bg); color: var(--cta-fg); border: 1px solid transparent;
    box-shadow: var(--cta-shadow);
}
.hero__btn--primary:hover { background: var(--cta-bg-hover); transform: translateY(-2px); }

/* Soldan sağa geçen parıltı — her iki temada da çalışır */
.hero__btn--primary::after {
    content: '';
    position: absolute;
    top: -50%; bottom: -50%; left: 0;
    width: 42%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-180%) skewX(-18deg);
    animation: lwCtaShine 3.6s cubic-bezier(.35, 0, .25, 1) infinite;
    pointer-events: none;
}
@keyframes lwCtaShine {
    0%        { transform: translateX(-180%) skewX(-18deg); }
    45%, 100% { transform: translateX(340%)  skewX(-18deg); }
}
.hero__btn--ghost {
    background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
}
.hero__btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Güven rozetleri ---------- */
.hero__trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
    margin: 0 auto 26px; font-size: 13px; font-weight: 600; color: var(--text);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust i { color: var(--brand); font-size: 12px; }

/* ---------- Sosyal kanıt (çerçevesiz) ---------- */
.hero__proof {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 auto 4px; flex-wrap: wrap; justify-content: center;
}
.hero__avatars { display: inline-flex; align-items: center; }
.hero__avatars img,
.hero__avatars-count {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface);
    object-fit: cover; margin-left: -10px; box-shadow: 0 2px 6px rgba(16, 24, 40, .12);
}
.hero__avatars img:first-child { margin-left: 0; }
.hero__avatars-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--solid-dark); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: -.02em;
}
.hero__rating { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.hero__stars { color: #fbbf24; font-size: 14px; letter-spacing: 1px; }
.hero__rating .num { font-weight: 800; color: var(--ink); font-size: 14px; }
.hero__rating .num span { font-weight: 600; color: var(--muted); }
.hero__rating-sub { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- Hero görseli ---------- */
.hero__visual-wrap { position: relative; z-index: 1; margin-top: clamp(16px, 2.4vw, 30px); }
.hero__visual {
    display: block; width: 100%; max-width: 700px; height: auto; margin: 0 auto;
    filter: drop-shadow(0 24px 50px rgba(16, 24, 40, .15));
}

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
    .hero__title { max-width: 100%; font-size: clamp(16px, 5.3vw, 23px); margin-bottom: 12px; }
    .hero-title__nowrap { display: inline-block; white-space: nowrap; }
    /* Yükselen grafik + yapay zeka parıltısı; iki yanında sönümlenen çizgi */
    .hero__divider {
        display: flex; align-items: center; justify-content: center; gap: 9px;
        margin: 8px auto 10px;
        /* Yan çizgiler işaretin gradyanıyla aynı ailede (mor); iki temada da okunur */
        color: #a855f7;
    }
    .hero__divider::before, .hero__divider::after {
        content: ''; flex: none; width: 44px; height: 2px; border-radius: 999px; opacity: .38;
    }
    .hero__divider::before { background: linear-gradient(90deg, transparent, currentColor); }
    .hero__divider::after  { background: linear-gradient(90deg, currentColor, transparent); }
    .hero__divider-mark { flex: none; width: 36px; height: 22px; max-width: none; overflow: visible; }
    /* Sayfa açılışında BİR KEZ oynar; `both` ile son karede (tam görünür) kalır */
    .hero__divider-trend {
        stroke-dasharray: 100;
        animation: hero-trend-draw 1.8s cubic-bezier(.55, 0, .3, 1) both;
    }
    .hero__divider-spark {
        transform-box: fill-box; transform-origin: center;
        animation: hero-spark-pop 1.8s ease-in-out both;
    }
    @keyframes hero-trend-draw {
        0%        { stroke-dashoffset: 100; opacity: 0; }
        10%       { opacity: 1; }
        70%, 100% { stroke-dashoffset: 0; opacity: 1; }
    }
    @keyframes hero-spark-pop {
        0%, 60%   { opacity: 0; transform: scale(.3) rotate(-40deg); }
        82%       { opacity: 1; transform: scale(1.15) rotate(0deg); }
        100%      { opacity: 1; transform: scale(1) rotate(0deg); }
    }

    /* "Gerçek Kullanıcılardan" üst satırda (sabit metin → kımıldamaz),
       kategori seçici kendi satırında ve ortalı. En uzun kategori adı bile
       tek satıra sığdığı için seçim değişince yükseklik sabit kalır
       (alttaki metin zıplamaz) ve merkez sabit kalır (yatay kayma olmaz). */
    .hero-rotate { display: block; line-height: 1.32; }
    .hero-rotate__lead { display: block; }
    .hero-pick {
        display: inline-flex;
        margin-top: 0;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: .12em .26em;
        font-size: .9em;
    }
    .hero-pick__chip { padding: .08em .32em; background: rgba(37, 68, 216, .05); border-radius: .5em; }
    .hero-pick__caret { font-size: .5em; }

    .hero__btn { width: 100%; max-width: 340px; justify-content: center; }
    .hero__cta { flex-direction: column; align-items: center; }
    .hero__trust { gap: 10px 18px; font-size: 13px; }
    .hero__proof { gap: 12px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__btn--primary::after { animation: none; opacity: 0; }
    .hero-ico { display: none; }
    .hero__divider-trend, .hero__divider-spark { animation: none; }
    .hero__divider-trend { stroke-dashoffset: 0; }
}
