/* Yekbet — Bonus & Geçerli Oyunlar iframe sayfaları */

:root {
    --bg: #05070f;
    --ink: #eaf2ff;
    --muted: #8fa1c4;
    --line: rgba(120, 165, 255, .16);
    --glass: rgba(16, 26, 48, .62);
    --blue: #1d8cff;
    --cyan: #48d8ff;
    --gold: #ffc247;
    --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Arka plan: yavaş süzülen gradyan lekeler ─────────────────────── */

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 26s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, #1d8cff, transparent 70%); }
.b2 { width: 460px; height: 460px; top: 30%; right: -140px; background: radial-gradient(circle, #7a3dff, transparent 70%); animation-delay: -9s; }
.b3 { width: 400px; height: 400px; bottom: -140px; left: 35%; background: radial-gradient(circle, #00d3a7, transparent 70%); animation-delay: -17s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(.95); }
}

/* ── Başlık ───────────────────────────────────────────────────────── */

.head { position: relative; z-index: 1; padding: 34px 22px 10px; text-align: center; }
.head h1 { margin: 0; font-size: clamp(23px, 4.4vw, 34px); font-weight: 800; letter-spacing: -.4px; }

.head h1 span {
    background: linear-gradient(100deg, var(--cyan), var(--blue) 55%, #a77bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.head p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }

.tabs { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin: 20px auto 0; max-width: 900px; }

.tab {
    padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px);
    color: var(--muted); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: .18s; white-space: nowrap;
}

.tab:hover { color: var(--ink); border-color: rgba(120, 165, 255, .4); }

.tab.on {
    color: #04121f;
    background: linear-gradient(100deg, var(--cyan), var(--blue));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(29, 140, 255, .35);
}

/* ── Kart ızgarası ────────────────────────────────────────────────── */

.grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px; padding: 26px 22px 60px; max-width: 1320px; margin: 0 auto;
}

.skeleton {
    height: 300px; border-radius: var(--radius);
    background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 70%);
    background-size: 220% 100%;
    animation: shine 1.4s linear infinite;
}

@keyframes shine { to { background-position: -220% 0; } }

.card {
    display: block; position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--glass);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), box-shadow .28s, border-color .28s;
    animation: rise .5s backwards;
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.card:hover, .card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(72, 216, 255, .45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(72, 216, 255, .12);
    outline: none;
}

/* Banner'lar 960×650 geliyor — kırpmamak için oran birebir aynı */
.card-img { position: relative; aspect-ratio: 96 / 65; background: #0b1424; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 7, 15, .92) 3%, transparent 34%); }

.card-count {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(5, 10, 22, .8);
    border: 1px solid rgba(72, 216, 255, .38);
    backdrop-filter: blur(8px);
    font-size: 12px; font-weight: 700; color: var(--cyan);
}

.card-count::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 9px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

.card-body { padding: 0 16px 16px; margin-top: -26px; position: relative; z-index: 2; }
.card-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.card-note { margin: 6px 0 0; font-size: 12.5px; color: var(--gold); }

.strip-games { display: flex; gap: 6px; align-items: center; padding: 13px 0 2px; overflow: hidden; }

.strip-games img {
    width: 60px; height: 42px; flex: 0 0 auto;
    border-radius: 10px; object-fit: cover;
    border: 1px solid var(--line);
    animation: pop .3s backwards;
}

.strip-more {
    height: 42px; padding: 0 9px; flex: 0 0 auto;
    border-radius: 10px; border: 1px dashed rgba(120, 165, 255, .4);
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700; color: var(--cyan);
}

@keyframes pop { from { opacity: 0; transform: scale(.82); } }

/* İkonu olmayan/404 dönen oyunlar için nötr dolgu */
img.noimg { background: linear-gradient(135deg, #16233f, #0d1526); }

.card-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--cyan);
}

.card-cta span:last-child { transition: transform .25s; }
.card:hover .card-cta span:last-child { transform: translateX(4px); }

.card.no-games .card-cta { color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; position: relative; z-index: 1; }

/* ── Hover popup ──────────────────────────────────────────────────── */

.pop {
    position: absolute; z-index: 60;
    width: 340px; padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(72, 216, 255, .3);
    background: linear-gradient(180deg, rgba(17, 28, 50, .97), rgba(8, 13, 26, .97));
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .68);
    animation: popIn .18s cubic-bezier(.2, .9, .3, 1);
    pointer-events: auto;
}

.pop[hidden] { display: none; }

@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.pop-head { margin-bottom: 12px; }
.pop-title { font-size: 14px; font-weight: 700; line-height: 1.35; }
.pop-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pop-meta b { color: var(--cyan); }

.pop-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

/* min-width:0 şart — grid öğesinin varsayılan auto minimumu görselin doğal genişliğine (300px) kadar şişip kutuyu patlatıyor */
.pop-game { text-align: center; min-width: 0; animation: pop .26s backwards; }

.pop-game img {
    width: 100%; aspect-ratio: 44 / 31; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--line); display: block;
}

.pop-game span {
    display: block; font-size: 10.5px; color: var(--muted);
    margin-top: 4px; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pop-link {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 13px; padding: 9px;
    border-radius: 11px;
    background: linear-gradient(100deg, var(--cyan), var(--blue));
    color: #04121f; font-size: 13px; font-weight: 700;
}

.pop-link span { transition: transform .22s; }
.pop-link:hover span { transform: translateX(4px); }

/* ── Bonus detay sayfası ──────────────────────────────────────────── */

.detail { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 22px 22px 60px; }

.back { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.back:hover { color: var(--cyan); }

.hero {
    display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
    padding: 20px; margin-bottom: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--glass);
    backdrop-filter: blur(14px);
}

.hero-img { flex: 0 0 320px; max-width: 100%; border-radius: 15px; overflow: hidden; border: 1px solid var(--line); }
.hero-img img { width: 100%; aspect-ratio: 96/65; object-fit: cover; display: block; }

.hero-txt { flex: 1 1 300px; }
.hero-txt h1 { margin: 0; font-size: clamp(19px, 3vw, 26px); font-weight: 800; line-height: 1.25; }
.hero-note { margin: 9px 0 0; color: var(--gold); font-size: 14px; }

.hero-stats { display: flex; gap: 26px; margin: 18px 0; }
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--cyan); line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); }

.hero-cta {
    display: inline-block; padding: 10px 20px; border-radius: 999px;
    border: 1px solid rgba(72, 216, 255, .4);
    background: rgba(5, 10, 22, .5);
    color: var(--cyan); font-size: 13px; font-weight: 700;
}

.hero-cta:hover { background: rgba(72, 216, 255, .12); }

.tools { margin-bottom: 14px; }

.tools input {
    width: 100%; padding: 12px 16px; border-radius: 13px;
    border: 1px solid var(--line); background: rgba(5, 10, 22, .55);
    color: var(--ink); font: inherit; font-size: 14px;
}

.tools input:focus { outline: none; border-color: var(--cyan); }

.chips { display: flex; gap: 7px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
.chips::-webkit-scrollbar { display: none; }

.chip {
    padding: 6px 13px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(5, 10, 22, .5);
    color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: .16s;
}

.chip:hover { color: var(--ink); }
.chip.on { background: linear-gradient(100deg, var(--cyan), var(--blue)); color: #04121f; border-color: transparent; }

.count-line { color: var(--muted); font-size: 12.5px; margin: 16px 0 12px; }
.count-line span { color: var(--cyan); font-weight: 700; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 14px; }
.games > * { min-width: 0; }

.game { text-align: center; min-width: 0; animation: pop .28s backwards; }
.game[hidden] { display: none; }

.game-img { position: relative; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 44 / 31; background: #0b1424; }
.game-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.game:hover .game-img img { transform: scale(1.09); }
.game:hover .game-img { border-color: rgba(72, 216, 255, .6); box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }

.game-play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(4, 10, 22, .62); opacity: 0; transition: opacity .22s;
    font-size: 12px; font-weight: 700; color: var(--cyan);
}

.game:hover .game-play { opacity: 1; }

.game-name { font-size: 12px; margin-top: 7px; line-height: 1.3; }
.game-prov { font-size: 11px; color: var(--muted); }

/* "Daha fazla göster" — oyunlar 48'erli açılıyor (hepsini birden istemek CDN'i taşkın sayıyor) */
.modal-more { text-align: center; padding: 26px 0 6px; }

.more-btn {
    padding: 11px 26px;
    border-radius: 999px;
    border: 1px solid rgba(72, 216, 255, .4);
    background: rgba(5, 10, 22, .55);
    color: var(--cyan);
    font: inherit; font-weight: 700; font-size: 13px;
    cursor: pointer;
    transition: .18s;
}

.more-btn:hover { background: rgba(72, 216, 255, .12); border-color: var(--cyan); }
.more-btn[hidden] { display: none; }

/* ── Mobil ────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
    .head { padding: 22px 16px 6px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; padding: 20px 15px 44px; }
    .pop { display: none !important; }  /* dokunmatikte popup yok, tıklama detay sayfasına gider */
    .detail { padding: 16px 15px 44px; }
    .hero { padding: 15px; gap: 16px; }
    .hero-img { flex: 1 1 100%; }
    .games { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
