/* ═══════════════════════════════════════════
   GAME SHOWCASE — Vitrin + Rastgele Oyun (v3)
   Premium "mobil uygulama" kalitesinde slot deneyimi
   ═══════════════════════════════════════════ */

.game-showcase-section {
    margin: 0 0 28px 0;
}

/* ═══════════════════════════════════════════
   RASTGELE OYUN — Sinematik Infinite Slot Marquee
   ═══════════════════════════════════════════ */
.rgm {
    position: relative;
    margin-bottom: 18px;
    padding: 16px 0 18px;
    border-radius: 20px;
    background: linear-gradient(165deg, #0c1214 0%, #070d0f 60%, #05090b 100%);
    border: 1px solid rgba(16, 158, 202,.22);
    box-shadow: 0 16px 38px -16px rgba(16, 158, 202,.28), 0 0 0 1px rgba(255,255,255,.03) inset;
    overflow: hidden;
}
.rgm-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 20px 14px;
}
.rgm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: #5cccff;
    text-shadow: 0 0 12px rgba(0, 155, 224, .5);
    white-space: nowrap;
}
.rgm-eyebrow svg { flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(0, 155, 224, .6)); }
.rgm-headline { margin: 0; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.4); }

.rgm-viewport { position: relative; overflow: hidden; }
.rgm-viewport::before,
.rgm-viewport::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 64px;
    z-index: 4;
    pointer-events: none;
}
.rgm-viewport::before { left: 0; background: linear-gradient(90deg, #070d0f, transparent); }
.rgm-viewport::after  { right: 0; background: linear-gradient(-90deg, #070d0f, transparent); }

.rgm-track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 10px 20px 14px;
    animation: rgm-scroll linear infinite;
    animation-duration: 38s;
}
.rgm-viewport:hover .rgm-track { animation-play-state: paused; }
@keyframes rgm-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.rgm-card {
    position: relative;
    flex: 0 0 auto;
    width: 168px;
    aspect-ratio: 3 / 4;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #0a1114;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
    transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s, border-color .4s;
    will-change: transform;
}
.rgm-card:hover { transform: translateY(-8px) scale(1.1); z-index: 5; }
.rgm-card--gold:hover   { border-color: rgba(255,196,77,.6);  box-shadow: 0 22px 44px -10px rgba(255,196,77,.45), 0 0 0 1px rgba(255,196,77,.25) inset; }
.rgm-card--purple:hover { border-color: rgba(178,107,255,.6); box-shadow: 0 22px 44px -10px rgba(178,107,255,.45), 0 0 0 1px rgba(178,107,255,.25) inset; }
.rgm-card--green:hover  { border-color: rgba(0, 155, 224, .6);   box-shadow: 0 22px 44px -10px rgba(0, 155, 224, .45), 0 0 0 1px rgba(0, 155, 224, .25) inset; }

.rgm-glow {
    position: absolute;
    inset: -30%;
    z-index: 0;
    opacity: 0;
    filter: blur(28px);
    transition: opacity .4s;
    pointer-events: none;
}
.rgm-card--gold .rgm-glow   { background: radial-gradient(circle, rgba(255,196,77,.55), transparent 70%); }
.rgm-card--purple .rgm-glow { background: radial-gradient(circle, rgba(178,107,255,.55), transparent 70%); }
.rgm-card--green .rgm-glow  { background: radial-gradient(circle, rgba(0, 155, 224, .55), transparent 70%); }
.rgm-card:hover .rgm-glow { opacity: .85; }

.rgm-rtp {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 3;
    padding: 3px 7px;
    border-radius: 100px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .3px;
    color: rgba(255,255,255,.85);
    background: rgba(2, 6, 8, .6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.12);
}

.rgm-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 8, .46);
    opacity: 0;
    transition: opacity .3s;
}
.rgm-card:hover .rgm-overlay { opacity: 1; }
.rgm-play {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #040f14;
    background: linear-gradient(135deg,#1C87B7,#006ea0);
    box-shadow: 0 8px 18px -4px rgba(16, 158, 202,.6);
    transform: translateY(8px) scale(.9);
    transition: transform .3s cubic-bezier(.34,1.4,.64,1);
}
.rgm-card:hover .rgm-play { transform: translateY(0) scale(1); }

.rgm-meta {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 8px 10px 10px;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 8, .92) 80%);
}
.rgm-name {
    margin: 0 0 2px;
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rgm-provider {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════════
   ALT SATIR — sabit oyun ızgarası + hızlı erişim
   ═══════════════════════════════════════════ */
.showcase-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

/* ── Oyun ızgarası: gerçek 3:4 oranı korunur, sabit/kontrollü genişlik ── */
.showcase-grid-fixed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 124px));
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    flex: 0 0 auto;
}

.showcase-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3/4;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #0a1114;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.showcase-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(16, 158, 202,.45);
    box-shadow: 0 14px 28px -8px rgba(16, 158, 202,.32), 0 6px 18px rgba(0,0,0,.4);
}
.showcase-card:active { transform: scale(.96); }

.sc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px 9px 9px;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 8, .55) 62%, rgba(2, 6, 8, .95) 100%);
}
.sc-provider {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(0, 155, 224, .85);
    margin-bottom: 2px;
}
.sc-name {
    font-size: 10.5px;
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.sc-play {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    background: rgba(16, 158, 202,.14);
    border: 1px solid rgba(16, 158, 202,.35);
    color: #5cccff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s, background .25s;
}
.showcase-card:hover .sc-play {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(135deg,#1C87B7,#006ea0);
    border-color: transparent;
    color: #040f14;
}

/* ── Hızlı erişim kartları ── */
.showcase-side-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.ssa-btn {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(160deg,#0a181f 0%,#040e13 100%);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.ssa-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(0,0,0,.5); }
.ssa-btn:active { transform: scale(.98); }
.ssa-glow {
    position: absolute;
    width: 130px; height: 130px;
    border-radius: 50%;
    filter: blur(32px);
    opacity: .3;
    pointer-events: none;
    z-index: 0;
}
.ssa-btn--fire .ssa-glow { background: #ff7a3d; top: -50px; right: -40px; }
.ssa-btn--gift .ssa-glow { background: #c06bff; bottom: -50px; left: -40px; }
.ssa-icon {
    position: relative; z-index: 2;
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.ssa-btn--fire .ssa-icon { background: linear-gradient(135deg,#ff7a3d,#e8482c); box-shadow: 0 8px 18px -2px rgba(255,90,40,.5); }
.ssa-btn--fire:hover { border-color: rgba(255,122,61,.4); }
.ssa-btn--gift .ssa-icon { background: linear-gradient(135deg,#c06bff,#7b3fe4); box-shadow: 0 8px 18px -2px rgba(170,80,255,.5); }
.ssa-btn--gift:hover { border-color: rgba(192,107,255,.4); }
.ssa-text { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ssa-text strong { font-size: 14px; font-weight: 900; color: #fff; line-height: 1.2; }
.ssa-text small { font-size: 11px; color: rgba(255,255,255,.45); line-height: 1.4; }
.ssa-link {
    position: relative; z-index: 2;
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 800; letter-spacing: .3px;
    color: rgba(255,255,255,.55);
    transition: gap .25s, color .25s;
}
.ssa-btn--fire .ssa-link { color: #ffab7a; }
.ssa-btn--gift .ssa-link { color: #d4adff; }
.ssa-btn:hover .ssa-link { gap: 9px; }
.ssa-btn--fire:hover .ssa-link { color: #ffc9a8; }
.ssa-btn--gift:hover .ssa-link { color: #e6cdff; }

/* ─────────────────────────────
   Responsive
   ───────────────────────────── */
@media (max-width: 900px) {
    .showcase-row { flex-direction: column; }
    .showcase-grid-fixed { grid-template-columns: repeat(3, 1fr); width: 100%; }
    .showcase-side-actions { flex-direction: row; }
}

/* .tkw-* stilleri artık tek bir yerde: index.html içindeki modal markup'ının
   hemen altındaki <style> bloğunda (tasarım orada güncel/onaylı tutuluyor).
   Burada eskiden ikinci, çakışan bir kopya vardı — kaldırıldı. */

@media (max-width: 640px) {
    .rgm-headline { display: none; }
    .rgm-card { width: 128px; }
    .rgm-name { font-size: 10px; }
    .rgm-provider { font-size: 7px; }
}

@media (max-width: 560px) {
    .showcase-grid-fixed { gap: 8px; }
    .sc-name { font-size: 9.5px; }
    .sc-provider { display: none; }
    .ssa-text small { display: none; }
    .ssa-btn { padding: 13px; gap: 10px; }
    .ssa-icon { width: 38px; height: 38px; }
    .ssa-text strong { font-size: 12px; }
    .ssa-link span { display: none; }
}
