/* Game (slot) detail page — 1:1 Stake-style layout.
   Relies on css/guide.css for :root vars, base reset, .hd8 header and footer. */

.game-main {
  padding-top: 24px;
  padding-bottom: 70px;
  overflow-x: hidden;
  /* Stake-like dark surfaces (kept brand-neutral; accent stays site yellow) */
  --surface: #1b2531;
  --surface-2: #131b24;
  --surface-3: #2a3744;
  --line: rgba(255,255,255,.07);
  --muted: #93a1b5;
  --pos: #4caf50;
}
.gp-wrap { max-width: var(--maxWidthContainer); }

/* Breadcrumb */
.gp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.gp-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.gp-breadcrumb a:hover { color: var(--accent); }
.gp-breadcrumb span { color: var(--textColor1); }
.gp-breadcrumb .sep { color: var(--muted); opacity: .5; }

/* ---- Game stage (demo frame) ---- */
.gp-stage { width: 100%; }
.gp-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0f14;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gp-frame__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.4); transform: scale(1.15); z-index: 0; }
.gp-frame__poster { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.gp-frame__thumb { width: 190px; height: 190px; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.6); margin-bottom: 18px; }
.gp-frame__title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.gp-frame__provider { font-size: 14px; color: var(--accent); margin-bottom: 22px; }
.gp-frame__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.gp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

.gp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: filter .2s, transform .1s, background .2s; white-space: nowrap; }
.gp-btn--real { background: var(--accent); color: #111; }
.gp-btn--real:hover { filter: brightness(1.1); }
.gp-btn--demo { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.gp-btn--demo:hover { background: rgba(255,255,255,.2); }
.gp-btn:active { transform: translateY(1px); }

/* control strip under frame */
.gp-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 12px 12px; padding: 9px 14px;
}
.gp-controls__left, .gp-controls__right { display: flex; align-items: center; gap: 6px; }
.gp-tool { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 8px; color: var(--muted); font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.gp-tool:hover { background: rgba(255,255,255,.07); color: var(--accent); }
.gp-tool.active { color: var(--accent); }

/* ---- Provider bar ---- */
.gp-provider { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 16px; }
.gp-provider__left { display: flex; align-items: center; gap: 14px; }
.gp-provider__logo { width: 56px; height: 56px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; }
.gp-provider__name { font-size: 17px; font-weight: 700; color: var(--textColor1); }
.gp-provider__players { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.gp-provider__players .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--pos); }
.gp-pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; background: var(--surface-3); color: var(--textColor1); border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: filter .2s, background .2s; }
.gp-pill-btn:hover { background: #38485a; }
.gp-pill-btn.active i { color: var(--accent3); }

.gp-hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---- Game header (title + max win) ---- */
.gp-gamehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; }
.gp-gamehead__left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gp-gamehead__left h1 { font-size: 22px; font-weight: 800; color: var(--textColor1); margin: 0; }
.gp-save { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--textColor1); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.gp-save:hover { background: var(--surface-3); }
.gp-save.active i { color: var(--accent); }
.gp-gamehead__right { display: flex; align-items: center; gap: 10px; }
.gp-maxwin { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--textColor1); }
.gp-maxwin i { color: var(--accent); }
.gp-maxwin .gp-hidden { color: var(--muted); font-weight: 500; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; padding-left: 10px; border-left: 1px solid var(--line); }
.gp-chevron { width: 38px; height: 38px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }

/* ---- Tabs ---- */
.gp-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 6px; width: fit-content; max-width: 100%; }
.gp-tab { padding: 10px 20px; border-radius: 999px; border: none; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.gp-tab:hover { color: var(--textColor1); }
.gp-tab.active { background: var(--surface-3); color: var(--textColor1); }

.gp-panel { display: none; padding-top: 26px; }
.gp-panel.active { display: block; }

/* ---- Description panel ---- */
.gp-desc { display: block; }
.gp-desc__body { display: block; }
.gp-desc__body::after { content: ""; display: table; clear: both; }
.gp-desc__thumb { float: left; width: 200px; margin: 4px 24px 14px 0; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.gp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gp-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--textColor1); font-size: 12.5px; font-weight: 500; }
.gp-tag--accent { background: rgba(241,196,15,.12); border-color: rgba(241,196,15,.3); color: var(--accent); }
.gp-desc__body p { color: var(--textSecondary); line-height: 1.8; margin-bottom: 14px; font-size: 15px; }
.gp-desc__body h2 { font-size: 21px; font-weight: 700; color: var(--textColor1); margin: 28px 0 12px; }
.gp-desc__body h3 { font-size: 16px; font-weight: 600; color: var(--textColor1); margin: 24px 0 10px; }
.gp-desc__body ol, .gp-desc__body ul { padding-left: 22px; margin-bottom: 16px; }
.gp-desc__body li { color: var(--textSecondary); line-height: 1.8; margin-bottom: 6px; }
a.gp-home-link { color: var(--accent); text-decoration: underline; font-weight: 600; }
a.gp-home-link:hover { opacity: .85; }

/* Content tables (paytable + game info spec) */
.gp-ctable { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.gp-ctable th { background: var(--surface-2); color: var(--textColor1); font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.gp-ctable th.num, .gp-ctable td.num { text-align: right; }
.gp-ctable td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--textSecondary); }
.gp-ctable td:first-child { color: var(--textColor1); font-weight: 500; }
.gp-ctable tr:nth-child(even) td { background: rgba(255,255,255,.012); }
.gp-ctable--spec td:first-child { color: var(--muted); font-weight: 500; width: 42%; }
.gp-ctable--spec td:last-child { color: var(--textColor1); font-weight: 600; }

.gp-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.gp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.gp-feature i { font-size: 20px; color: var(--accent); margin-bottom: 9px; display: block; }
.gp-feature strong { display: block; color: var(--textColor1); font-size: 14.5px; margin-bottom: 5px; }
.gp-feature span { color: var(--textSecondary); font-size: 13px; line-height: 1.6; }

/* ---- Tables (leaderboards + live bets) ---- */
.gp-tablewrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.gp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.gp-table thead th { background: var(--surface-2); color: var(--muted); font-weight: 600; text-align: left; padding: 14px 16px; white-space: nowrap; }
.gp-table thead th.num, .gp-table td.num { text-align: right; }
.gp-table tbody td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--textSecondary); white-space: nowrap; }
.gp-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.012); }
.gp-table .g-game { display: inline-flex; align-items: center; gap: 9px; color: var(--textColor1); font-weight: 600; }
.gp-table .g-game i { color: var(--accent); width: 16px; text-align: center; }
.gp-table .g-user { display: inline-flex; align-items: center; gap: 7px; }
.gp-table .g-user i { color: var(--muted); }
.gp-table .g-cur { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.gp-table .g-pos { color: var(--pos); font-weight: 600; }
.gp-table .g-rank i { font-size: 16px; }
.gp-rank-1 { color: #f1c40f; } .gp-rank-2 { color: #c0c7d0; } .gp-rank-3 { color: #cd7f32; }
.gp-table tr.is-new td { animation: gpRowIn .5s ease; }
@keyframes gpRowIn { from { background: rgba(241,196,15,.14); } to { background: transparent; } }

/* Live bets section */
.gp-bets { margin-top: 14px; }
.gp-bets__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gp-bets__tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 5px; }
.gp-bets__tabs button { padding: 9px 16px; border-radius: 999px; border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gp-bets__tabs button.active { background: var(--surface-3); color: var(--textColor1); }
.gp-bets__count { margin-left: auto; }
.gp-bets__count select { background: var(--surface); border: 1px solid var(--line); color: var(--textColor1); border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: pointer; }

.gp-h2 { font-size: 20px; font-weight: 700; color: var(--textColor1); margin: 0 0 16px; }
.gp-section { margin-top: 44px; }

/* FAQ */
.gp-faq__item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.gp-faq__q { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--textColor1); cursor: pointer; font-size: 15px; }
.gp-faq__q::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 300; line-height: 1; flex-shrink: 0; }
.gp-faq__item.open .gp-faq__q::after { content: '\2212'; }
.gp-faq__a { display: none; color: var(--textSecondary); line-height: 1.8; font-size: 14px; padding-top: 10px; }
.gp-faq__item.open .gp-faq__a { display: block; }

/* Similar games */
.gp-similar__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gp-sim-card { display: block; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s; }
.gp-sim-card:hover { transform: translateY(-4px); }
.gp-sim-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.gp-sim-card span { display: block; padding: 9px; font-size: 12px; font-weight: 600; color: var(--textColor1); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .gp-desc__thumb { width: 150px; margin: 4px 18px 12px 0; }
  .gp-features { grid-template-columns: 1fr; }
  .gp-similar__row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  /* No horizontal scroll: lay tab pills out in a grid instead of one long row */
  .gp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; border-radius: 14px; }
  .gp-tab { text-align: center; }
  .gp-bets__bar { flex-wrap: wrap; }
  .gp-bets__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; border-radius: 14px; }
  .gp-bets__tabs button { text-align: center; }
  /* Provider bar: let the Takip Et button drop under the provider info if needed */
  .gp-provider { flex-wrap: wrap; }
  .gp-provider__left { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .gp-desc__thumb { float: none; display: block; width: 60%; margin: 0 auto 18px; }
  .gp-frame__thumb { width: 130px; height: 130px; }
  .gp-similar__row { grid-template-columns: repeat(2, 1fr); }
  .gp-provider__players { font-size: 12px; }
  /* Stack the bet tabs one under another on the smallest screens */
  .gp-bets__tabs { grid-template-columns: 1fr; }
  /* Data tables still scroll horizontally inside their own wrapper only */
  .gp-table { min-width: 520px; font-size: 12.5px; }
  .gp-table thead th, .gp-table tbody td { padding: 10px 10px; }
}
