/* games/games.css — A3 kart: temiz görsel + kısa alt panel (v6.3)
   Kart = ÜST PANEL YOK. Görsel (315x236) üzerinde sol-üst provider cam etiketi
        (legend'lerde + sağ-üst altın rütbe rozeti) + ALT PANEL (kısa):
        solda oyun ismi, sağda neon play▸ + canlı oyuncu sayısı.
   Hover'da PLAY/DEMO görseli kaplar. Sol aksan çizgisi yok. RTP gösterilmez.
*/

/* ───────────────────────── CARD ───────────────────────── */
.game-card {
    position: relative;
    width: 158px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0d0f18;
    cursor: pointer;
    transition: transform .32s cubic-bezier(.25, .8, .25, 1), box-shadow .3s ease;
    will-change: transform;
}

@media (min-width: 768px) {
    .game-card { width: 210px; }
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .6), 0 0 0 1px var(--goji-neon);
    z-index: 5;
}

/* ───────── THUMB = sadece görsel ───────── */
.gc-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 315 / 236;
    overflow: hidden;
    background: #060810;
}

.gc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.game-card:hover .gc-img,
.game-card.is-active .gc-img { transform: scale(1.07); }

/* ───────── ALT PANEL (kısa): solda isim · sağda play▸ + oyuncu ───────── */
.gc-body {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 11px 8px;
    background: linear-gradient(180deg, #141826 0%, #0f1320 100%);
    border-top: 1px solid rgba(255, 255, 255, .06);
    transition: border-color .3s ease;
}
@media (min-width: 768px) { .gc-body { padding: 8px 12px 9px; } }
.game-card:hover .gc-body { border-top-color: rgba(0, 255, 135, .32); }

.gc-name {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .2px;
}
@media (min-width: 768px) { .gc-name { font-size: 14px; } }

/* ── canlı oyuncu sayısı: neon play üçgeni + rakam (mono değil, tabular) ── */
.gc-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #eef1f6;
    font-size: 10.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}
@media (min-width: 768px) { .gc-count { font-size: 11px; } }
.gc-tri {
    width: 0; height: 0;
    border-left: 6px solid var(--goji-neon);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    filter: drop-shadow(0 0 3px rgba(0, 255, 135, .7));
}

/* ───────── GÖRSEL ÜZERİ PROVIDER ETİKETİ (sol-üst, cam) ───────── */
.gc-prov-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(8, 10, 16, .6);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #d7dbe5;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 768px) { .gc-prov-chip { font-size: 8.5px; } }

/* legend kartlarda provider etiketi altın tonlu */
.game-card--legend .gc-prov-chip {
    color: #ffe0a3;
    border-color: rgba(240, 180, 41, .35);
}

/* ───────── LEGEND RÜTBE ROZETİ (sağ-üst, görsel üzeri, altın) ───────── */
.gc-rank {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: #1a1205;
    background: linear-gradient(135deg, #ffe796 0%, #f0b429 55%, #d99100 100%);
    box-shadow: 0 2px 7px rgba(217, 145, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* ───────── HOVER OVERLAY (PLAY / DEMO — sadece görsel üstünde) ───────── */
.gc-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(6, 8, 13, .72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.game-card:hover .gc-overlay,
.game-card.is-active .gc-overlay { opacity: 1; pointer-events: auto; }

.gc-play,
.gc-demo {
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 8px;
    transform: translateY(9px);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1),
                background .2s ease, color .2s ease, filter .2s ease;
}

.game-card:hover .gc-play,  .game-card.is-active .gc-play,
.game-card:hover .gc-demo,  .game-card.is-active .gc-demo { transform: translateY(0); }

.gc-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--goji-neon);
    color: #04150c;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 9px 24px;
    box-shadow: 0 0 18px rgba(0, 255, 135, .28);
}
.gc-play iconify-icon { font-size: 14px; }
.gc-play:hover { filter: brightness(1.08); }

.gc-demo {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .3);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 6px 20px;
    transition-delay: .04s;
}
.gc-demo:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* legend kart hover → altın çerçeve/parıltı + altın panel ayracı */
.game-card--legend:hover {
    box-shadow: 0 16px 34px rgba(0, 0, 0, .6), 0 0 0 1px #f0b429;
}
.game-card--legend:hover .gc-body { border-top-color: rgba(240, 180, 41, .4); }
/* legend kartlarda oyuncu üçgeni altın tonlu (rütbe ile uyumlu) */
.game-card--legend .gc-tri {
    border-left-color: #f0b429;
    filter: drop-shadow(0 0 3px rgba(240, 180, 41, .7));
}

/* ─────── SKELETON (görsel + kısa alt panel yüksekliği) ─────── */
.game-card.gapi-skeleton {
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(90deg, #131620 25%, #1c2030 50%, #131620 75%);
    background-size: 200% 100%;
    animation: gapi-shimmer 1.5s infinite;
}
@media (min-width: 768px) {
    .game-card.gapi-skeleton { height: 190px; }
}
@keyframes gapi-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═════════════════════ GAME LIBRARY (mini library: search + grid + show more) ═════════════════════ */
.glib-count { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #6b7280; font-family: 'Montserrat', sans-serif; }

.glib-controls { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
@media (min-width: 1024px) {
    .glib-controls { flex-direction: row; align-items: center; }
    .glib-search { flex: 0 0 300px; }
    #glib-tabs.glib-tabs { flex: 1; min-width: 0; }
}

/* search — dark surface, subtle border, neon focus; input 16px → iOS auto-zoom yok */
.glib-search {
    display: flex; align-items: center; gap: 10px;
    background: #0d0f18; border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px; padding: 0 14px; height: 46px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.glib-search:focus-within { border-color: rgba(0,255,135,.40); box-shadow: 0 0 0 3px rgba(0,255,135,.12); }
.glib-search iconify-icon { color: #6b7280; flex-shrink: 0; }
.glib-search input {
    flex: 1; min-width: 0; background: transparent; border: none; outline: none;
    color: #fff; font-size: 16px; font-family: inherit; letter-spacing: .2px;
}
.glib-search input::placeholder { color: #6b7280; }
.glib-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* grid — responsive; carousel'ın sabit .game-card genişliğini grid hücresine ez */
.glib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
@media (min-width: 768px) { .glib-grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 16px; } }
.glib-grid .game-card { width: 100%; }

.glib-empty { text-align: center; color: #9ca3af; font-size: 14px; padding: 44px 16px; }

.glib-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.glib-more {
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12px;
    letter-spacing: .08em; text-transform: uppercase; color: #fff;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px; padding: 13px 30px; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.glib-more:hover { background: rgba(0,255,135,.10); border-color: rgba(0,255,135,.40); color: #00ff87; transform: translateY(-1px); }
