/* ─── Hero "wheel" (3D çark) — apechain.com SectionHomepageHero uyarlaması ─────────────────
   Ölçüler ve davranışlar referansın Tailwind sınıflarından birebir alındı:
   grid 6/12 kolon, px-container (6.15vw / 2.22vw ≥1024), pb-44, metin kolon 2-7, yan kolon 8-11,
   başlık text-56/text-120 leading-.785, thumbnail size-48 rounded-8, ok butonu 4rem.
   Font: Manuka ticari → Bebas Neue (--hw-display). Lisans varsa @font-face ile değiştirin.  */

:root {
    --hw-display: "Bebas Neue", "Anton", Impact, "Arial Narrow", sans-serif;
    --hw-sans: "DM Sans", Inter, system-ui, sans-serif;
    --hw-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --hw-margin: 6.153846vw;   /* --container-margin */
    --hw-gutter: .5rem;        /* --container-gutter-width */
    --hw-grad: linear-gradient(135deg, #A281FF 10%, #EB8280 33%, #EBBF9A 66%, #89D0FF 90%);
}
@media (min-width: 1024px) {
    :root { --hw-margin: 2.222222vw; --hw-gutter: 1.5rem; }
}

/* ── Bölüm ─────────────────────────────────────────────────────────────── */
.hw {
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Açılış zemini: ilk slaytın iki rengi (inline --hw-c1/--hw-c2) — WebGL gradyanı aynı renklerle üzerine biner. */
    background: #0b1a2a linear-gradient(180deg, var(--hw-c2, #0b1a2a) 0%, var(--hw-c2, #0b1a2a) 12%, var(--hw-c1, #0b1a2a) 88%, var(--hw-c1, #0b1a2a) 100%);
    /* Header şeffaf → hero header'ın altına kayar (HeroSlider ile aynı kural). */
    margin-top: calc(-1 * var(--header-h, 0px));
    min-height: calc(100vh - var(--ann-h, 0px));
    min-height: calc(100svh - var(--ann-h, 0px));
    display: grid;
    grid-template-rows: 1fr auto;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
}
.hw canvas { display: block; }
.hw-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.hw-layers {
    position: absolute; inset: 0; z-index: 1;
}
.hw-lines {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; touch-action: none;
}
.hw-wheel {
    position: absolute; inset: 0; width: 100%; height: 100%;
    /* Kartlar dokular yüklenince yumuşakça belirir (giriş animasyonu gibi) */
    opacity: 0; transform: scale(.985); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1);
    cursor: move; cursor: grab;
    user-select: none; -webkit-user-select: none;
    touch-action: pan-y;
}
.hw-wheel.is-dragging { cursor: grabbing; }
.hw-fallback {
    position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
    object-fit: cover; opacity: .9; transition: opacity .6s;
}
.hw-thumb picture, .hw > picture { display: contents; }
.hw.is-ready .hw-wheel { opacity: 1; transform: none; }
/* Yedek görsel yalnız WebGL2 yokken (JS kapalıyken <noscript> stili gösterir) */
.hw-fallback { display: none; }
.hw.is-nogl .hw-fallback { display: block; }
.hw.is-nogl .hw-layers { display: none; }
.hw.is-nogl .hw-fallback::after { content: ""; }

/* ── Oklar (sağ orta, dikey) ──────────────────────────────────────────── */
.hw-arrows {
    display: none;
    position: absolute; right: 2rem; top: 2rem; bottom: 2rem; z-index: 4;
    flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
@media (min-width: 768px) { .hw-arrows { display: flex; } }
.hw-arrow {
    position: relative; width: 4rem; height: 4rem; padding: 0;
    border: 0; background: none; color: #fff; cursor: pointer;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font: inherit;
}
.hw-arrow-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hw-arrow-ring circle { transform-origin: 50% 50%; transform-box: fill-box; }
.hw-ring-fill { opacity: 0; transition: opacity .6s cubic-bezier(.45,.03,.52,.96); filter: drop-shadow(0 0 10px rgba(255,255,255,.45)); }
.hw-ring-echo { opacity: 0; }
.hw-arrow:hover .hw-ring-fill, .hw-arrow:focus-visible .hw-ring-fill { opacity: 1; }
.hw-arrow:hover .hw-ring-echo { animation: hwEcho .9s cubic-bezier(.45,.03,.52,.96) .3s both; }
.hw-arrow:hover .hw-ring-echo2 { animation-delay: .45s; }
@keyframes hwEcho {
    0%   { opacity: 0;  transform: scale(.78); }
    40%  { opacity: .4; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.3); }
}
.hw-arrow-icon { position: relative; width: .875rem; height: .875rem; display: block; z-index: 1; }
.hw-arrow-icon svg { width: 100%; height: 100%; display: block; }
.hw-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ── Metin ızgarası (alt hizalı) ──────────────────────────────────────── */
.hw-grid {
    position: relative; z-index: 3; pointer-events: none;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: .5rem; row-gap: 1rem;
    padding: 0 var(--hw-margin) 2.75rem;
    align-items: end;
    /* Header boşluğu: içerik hiçbir zaman header'ın altına girmez. */
    margin-top: calc(var(--header-h, 0px) + 2rem);
}
/* İki sütunlu (metin sol / küçük resimler sağ) düzen yalnız ≥1024: tablet dikey ve yatay telefonda sütunlar
   üst üste biniyordu (başlık kolonundan taşan 120px başlık, 384px küçük resim satırı). */
@media (min-width: 1024px) {
    .hw-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: baseline; }
}
.hw-text {
    grid-column: 1 / span 6;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
}
.hw-side {
    grid-column: 1 / span 6;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1rem;
    margin-top: 3rem; padding-bottom: .25rem; text-align: right;
}
.hw-text, .hw-side { min-width: 0; }
@media (min-width: 768px) and (max-width: 1023.98px) {
    .hw-text { justify-self: center; max-width: 40rem; }
}
@media (min-width: 1024px) {
    .hw-text { grid-column: 2 / span 6; align-items: flex-start; text-align: left; }
    .hw-side { grid-column: 8 / span 4; align-items: flex-end; margin-top: 0; padding-bottom: 0; }
}
.hw-text > *, .hw-side > * { pointer-events: auto; }

/* Etiket satırı: ateş ikonu + HOT + kategori pill'i */
.hw-tagrow { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; row-gap: .5rem; max-width: 100%; }
@media (min-width: 1024px) { .hw-tagrow { justify-content: flex-start; } }
.hw-fire { width: auto; height: 1.5625rem; flex: none; }
.hw-label {
    font-family: var(--hw-display); font-size: 1.375rem; line-height: 1.12; text-transform: uppercase;
    margin-right: .25rem; letter-spacing: .01em; white-space: nowrap;
}
@media (min-width: 768px) { .hw-label { font-size: 1.75rem; } }
@media (min-width: 1280px) { .hw-label { font-size: 2rem; margin-right: .5rem; } }
.hw-pill {
    display: inline-block; border-radius: .5rem; padding: .3125rem .5rem;
    background: rgba(255,255,255,.3); color: #fff;
    font-family: var(--hw-mono); font-size: .75rem; font-weight: 500; line-height: 14px;
    letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.hw-pill.is-empty { display: none; }

/* Başlık / açıklama — kayan (roll) geçiş için overflow hidden sarmalayıcı */
.hw-rollwrap { position: relative; overflow: hidden; margin: 0; }
.hw-roll { display: block; }
.hw-roll-in  { animation: hwRollIn .2s ease-out both; }
.hw-roll-out { position: absolute; left: 0; top: auto; width: 100%; animation: hwRollOut .2s ease-out both; }
@keyframes hwRollIn  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes hwRollOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }
/* Bootstrap h2/p renk ve kenar boşluklarını ezer: hero yazıları her zaman beyaz. */
.hw-title {
    font-family: var(--hw-display); font-weight: 400; text-transform: uppercase; color: #fff;
    font-size: 3.5rem; line-height: .785; letter-spacing: .005em;
    /* .785 satır yüksekliğinde İ noktası üstten, Ç/Ş çengeli alttan taşar; rollwrap'in overflow:hidden'ı kırpmasın diye
       iç boşluk verilir, negatif kenar boşluğu yerleşimi eskisiyle aynı tutar. */
    padding: .2em 0 .16em; margin: -.14em 0 -.16em;
}
.hw-title { font-size: min(3.5rem, 13vw); }
@media (min-width: 768px) { .hw-title { font-size: clamp(3.5rem, min(9vw, 14vh), 7.5rem); } }
.hw-excerpt {
    font-family: var(--hw-sans); font-size: .75rem; line-height: 1.3; letter-spacing: .24px;
    text-transform: uppercase; min-height: 2rem; color: #fff;
}
.hw-label, .hw-tagrow { color: #fff; }
@media (min-width: 768px) { .hw-excerpt { max-width: 420px; } }
@media (min-width: 1024px) { .hw-excerpt { max-width: 300px; } }

/* ── CTA butonu (UIBtn primary/big): beyaz zemin + gradyan çerçeve; hover: mavi radyal dolgu ── */
.hw-btn {
    position: relative; display: inline-block; min-width: 156px; align-self: center;
    border-radius: 1rem; color: #000; text-decoration: none;
    font-family: var(--hw-mono); font-size: .75rem; font-weight: 500; line-height: 1;
    letter-spacing: .1em; text-transform: uppercase;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--hw-grad) border-box;
    transition: color .3s, box-shadow .6s;
}
@media (min-width: 1024px) { .hw-btn { align-self: flex-start; } }
.hw-btn.is-hidden { display: none; }
.hw-btn::before {
    content: ""; position: absolute; inset: -2px; border-radius: 1rem; opacity: 0;
    background: radial-gradient(90% 120% at 30% 10%, #00A7FA 0%, #0054FA 100%) padding-box, var(--hw-grad) border-box;
    border: 2px solid transparent; transition: opacity .6s cubic-bezier(.45,.03,.52,.96);
}
.hw-btn:hover, .hw-btn:focus-visible { color: #fff; box-shadow: 0 0 24px rgba(255,255,255,.5); }
.hw-btn:hover::before, .hw-btn:focus-visible::before { opacity: 1; }
.hw-btn-inner {
    position: relative; display: inline-flex; width: 100%; align-items: center; justify-content: center;
    gap: .375rem; padding: .9375rem 1.5rem; overflow: hidden; text-align: center; pointer-events: none;
}
/* Etiket kayması: ana etiket yukarı, klon alttan gelir */
.hw-lbl { position: relative; display: inline-block; overflow: hidden; }
.hw-lbl-main, .hw-lbl-clone { display: block; transition: transform .4s cubic-bezier(.76,0,.24,1); }
.hw-lbl-clone { position: absolute; top: 100%; left: 0; width: 100%; height: 100%; }
.hw-btn:hover .hw-lbl-main, .hw-link:hover .hw-lbl-main { transform: translateY(-100%); }
.hw-btn:hover .hw-lbl-clone, .hw-link:hover .hw-lbl-clone { transform: translateY(-100%); }

/* ── "Tümünü gör" linki (UILink + arrowLink) ─────────────────────────── */
.hw-link {
    display: inline-flex; align-items: center; gap: .375rem; color: #fff; text-decoration: none;
    font-family: var(--hw-mono); font-size: .75rem; line-height: 1.12; letter-spacing: .1em; text-transform: uppercase;
}
.hw-link-inner { position: relative; display: inline-block; overflow: hidden; padding-bottom: 1px; }
.hw-link-inner::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.hw-link:hover .hw-link-inner::after { transform: scaleX(1); transform-origin: left; }
.hw-link-icon { width: .75rem; height: .75rem; flex: none; }

/* ── Thumbnail'ler ───────────────────────────────────────────────────── */
.hw-thumbs { display: flex; gap: .5rem; max-width: 100%; justify-content: center; }
@media (min-width: 1024px) { .hw-thumbs { justify-content: flex-end; } }
.hw-thumb {
    position: relative; flex: 0 1 3rem; min-width: 2.25rem; aspect-ratio: 1 / 1; height: auto; padding: 0; overflow: hidden; cursor: pointer;
    border-radius: .5rem; border: 2px solid transparent; background: rgba(255,255,255,.14);
    box-shadow: 0 0 0 0 rgba(255,255,255,.7);
    transition: all .3s ease-in-out;
}
.hw-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-thumb-shade {
    position: absolute; inset: 0; transition: all .3s ease-in-out;
    background: #000; opacity: .5;
}
.hw-thumb.is-active { border-color: #fff; box-shadow: 0 0 24px 0 rgba(255,255,255,.7); }
.hw-thumb.is-active .hw-thumb-shade { opacity: 1; background: linear-gradient(to bottom, transparent, transparent, #000); }
.hw-thumb-bar {
    position: absolute; left: .5rem; right: .5rem; bottom: .375rem; height: 2px;
    opacity: 0; transition: opacity .3s ease-in-out;
}
.hw-thumb.is-active .hw-thumb-bar { opacity: 1; }
.hw-thumb-track, .hw-thumb-fill { position: absolute; left: 0; top: 0; width: 100%; height: 2px; border-radius: 2px; }
.hw-thumb-track { background: #000; opacity: .2; }
.hw-thumb-fill { background: #fff; transform-origin: left; transform: scaleX(0); display: none; }
.hw-thumb.is-active .hw-thumb-fill { display: block; }
.hw-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Kısa/yatay ekran (telefon yatay): dikey boşluklar ve çağrı alanı sıkıştırılır. */
@media (max-height: 500px) and (orientation: landscape) {
    .hw-grid { margin-top: calc(var(--header-h, 0px) + .75rem); padding-bottom: 1.25rem; row-gap: .5rem; }
    .hw-text { gap: .6rem; }
    .hw-side { margin-top: 1rem; }
    .hw-excerpt { min-height: 0; }
    .hw-arrows { top: auto; bottom: 1rem; flex-direction: row; right: 1rem; }
    .hw-arrow { width: 3rem; height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hw-wheel { transition: none; transform: none; }
    .hw-roll-in, .hw-roll-out, .hw-ring-echo { animation: none !important; }
    .hw-roll-out { display: none; }
}
