/* Gamble.Services — Premium Game Studio Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-dim: #92700c;
  --green: #10b981;
  --green-bright: #34d399;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --bg-0: #05060b;
  --bg-1: #0a0c14;
  --bg-2: #0f1119;
  --bg-3: #151722;
  --bg-4: #1c1f2e;
  --border: #1e2235;
  --border-light: #2a2e42;
  --text-0: #f1f5f9;
  --text-1: #cbd5e1;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-4: #475569;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow-gold: 0 0 30px rgba(245,158,11,0.15);
  --shadow-glow-green: 0 0 30px rgba(16,185,129,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-0);
  font-family: var(--font);
  color: var(--text-1);
  padding-bottom: 70px;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }

/* ================================================================ */
/* NAVBAR                                                           */
/* ================================================================ */
.navbar {
  background: rgba(5,6,11,0.85) !important;
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border) !important;
  padding: 0.5rem 1rem;
}
.navbar-brand {
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: 1.1rem;
  color: var(--gold) !important;
}
.nav-link {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-3) !important;
  transition: color 0.2s;
  padding: 0.6rem 0.8rem !important;
}
.nav-link:hover, .nav-link.active { color: var(--text-0) !important; }
.navbar .badge.bg-success {
  background: rgba(16,185,129,0.15) !important;
  color: var(--green-bright) !important;
  border: 1px solid rgba(16,185,129,0.25);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
  padding: 4px 10px;
}

/* ================================================================ */
/* GAME PAGE                                                        */
/* ================================================================ */
.game-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
}

/* Header */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}
.game-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}
.game-back-btn:hover { background: var(--bg-4); color: var(--text-0); }
.game-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-0);
  margin: 0;
  line-height: 1.2;
}
.game-meta { display: flex; gap: 6px; margin-top: 3px; }
.game-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-4);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.game-tag-rtp { background: rgba(16,185,129,0.08); color: var(--green); border-color: rgba(16,185,129,0.2); }
.game-tag-provider { background: rgba(139,92,246,0.08); color: var(--purple); border-color: rgba(139,92,246,0.2); }

/* Balance */
.game-header-right { display: flex; align-items: center; gap: 8px; }
.game-balance {
  text-align: right;
  line-height: 1.2;
}
.game-balance small { display: block; font-size: 0.65rem; color: var(--text-4); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.game-balance span { font-size: 1.15rem; font-weight: 800; color: var(--green-bright); }
.game-topup-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}
.game-topup-btn:hover { background: rgba(16,185,129,0.2); color: var(--green-bright); }

/* Canvas wrapper */
.game-canvas-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  box-shadow: var(--shadow-card);
}
.game-canvas {
  min-height: 540px;
  background: linear-gradient(180deg, #080a14 0%, #0c0e1a 100%);
  position: relative;
}

/* Guest CTA */
.game-guest-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 540px;
  text-align: center;
  padding: 2rem;
}
.game-guest-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  color: var(--gold);
}
.game-guest-cta h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 0.4rem;
}
.game-guest-cta p {
  color: var(--text-3);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}
.game-guest-btn {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.25);
}
.game-guest-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(245,158,11,0.35); filter: brightness(1.1); }
.game-guest-btn:disabled { opacity: 0.6; transform: none; }
.game-guest-cta small { color: var(--text-4); font-size: 0.8rem; margin-top: 1rem; }
.game-guest-cta small a { color: var(--gold); text-decoration: none; }

/* Info Bar */
.game-info-bar {
  display: flex;
  gap: 1px;
  margin-top: 2px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}
.game-info-item {
  flex: 1;
  background: var(--bg-2);
  padding: 10px 12px;
  text-align: center;
}
.game-info-item:first-child { border-radius: 0 0 0 var(--radius-lg); }
.game-info-item:last-child { border-radius: 0 0 var(--radius-lg) 0; }
.game-info-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-4);
  margin-bottom: 2px;
}
.game-info-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}
.game-info-green { color: var(--green-bright); }
.game-info-history { flex: 3; text-align: left; }
.game-results-strip {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.game-results-empty { color: var(--text-4); font-size: 0.75rem; }
.game-result-chip {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.game-result-chip.win { background: rgba(16,185,129,0.1); color: var(--green-bright); border: 1px solid rgba(16,185,129,0.2); }
.game-result-chip.loss { background: rgba(239,68,68,0.08); color: var(--red); border: 1px solid rgba(239,68,68,0.15); }

/* ================================================================ */
/* HERO / LANDING                                                   */
/* ================================================================ */
.hero-banner {
  background: linear-gradient(135deg, #0a0a14 0%, #0d1025 50%, #0a0e1a 100%);
  border-bottom: 1px solid var(--border);
}

/* ================================================================ */
/* CARDS                                                            */
/* ================================================================ */
.card {
  border-radius: var(--radius-md) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border) !important;
}
.card.bg-dark { background: var(--bg-2) !important; }
.event-card:hover, .game-card:hover, .game-playground-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ================================================================ */
/* BUTTONS                                                          */
/* ================================================================ */
.btn-warning, .btn-warning:focus {
  background: linear-gradient(135deg, var(--gold), #d97706) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(245,158,11,0.2);
}
.btn-warning:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-outline-warning {
  border-color: rgba(245,158,11,0.3) !important;
  color: var(--gold) !important;
}
.btn-outline-warning:hover {
  background: rgba(245,158,11,0.08) !important;
  color: var(--gold-bright) !important;
  border-color: var(--gold) !important;
}

/* ================================================================ */
/* FORMS                                                            */
/* ================================================================ */
.form-control, .form-select, .input-group-text {
  font-family: var(--font);
}
.form-control.bg-dark, .form-select.bg-dark,
.form-control.bg-black, .input-group-text.bg-black,
.input-group-text.bg-dark {
  background: var(--bg-1) !important;
  border-color: var(--border) !important;
  color: var(--text-1) !important;
}
.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1) !important;
}

/* ================================================================ */
/* BADGES                                                           */
/* ================================================================ */
.badge { border-radius: 8px; font-weight: 600; }
.badge.bg-danger { background: rgba(239,68,68,0.15) !important; color: var(--red) !important; border: 1px solid rgba(239,68,68,0.2); }

/* ================================================================ */
/* ODDS BUTTONS                                                     */
/* ================================================================ */
.odds-btn {
  min-width: 65px;
  border-radius: var(--radius-sm) !important;
  transition: all 0.15s ease;
  border: 1px solid rgba(245,158,11,0.2) !important;
  background: rgba(245,158,11,0.04) !important;
}
.odds-btn:hover { background: rgba(245,158,11,0.12) !important; border-color: var(--gold) !important; }
.odds-btn.selected {
  background: var(--gold) !important;
  color: #000 !important;
  border-color: var(--gold) !important;
  box-shadow: var(--shadow-glow-gold);
}

/* ================================================================ */
/* ALERTS                                                           */
/* ================================================================ */
.alert { border-radius: var(--radius-md); border: none; }

/* ================================================================ */
/* LIVE PULSE                                                       */
/* ================================================================ */
.pulse-badge { animation: pulseAnim 1.5s infinite; }
@keyframes pulseAnim { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ================================================================ */
/* BET SLIP                                                         */
/* ================================================================ */
.bet-slip { position: sticky; top: 70px; }
.bet-slip .selection-item { border-bottom: 1px solid rgba(255,255,255,0.04); padding: 10px 0; }

/* ================================================================ */
/* MOBILE NAV                                                       */
/* ================================================================ */
.mobile-nav {
  z-index: 1050;
  backdrop-filter: blur(16px);
  background: rgba(5,6,11,0.92) !important;
  border-top: 1px solid var(--border) !important;
}

/* ================================================================ */
/* SCROLLBAR                                                        */
/* ================================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ================================================================ */
/* TABLE                                                            */
/* ================================================================ */
.table-dark { --bs-table-bg: transparent; }
.table-hover > tbody > tr:hover { background-color: rgba(245,158,11,0.03); }

/* ================================================================ */
/* DROPDOWN                                                         */
/* ================================================================ */
.dropdown-menu-dark { background: var(--bg-2); border-color: var(--border); }
.dropdown-item { color: var(--text-2); transition: all 0.15s; }
.dropdown-item:hover { background: rgba(245,158,11,0.06); color: var(--text-0); }

/* ================================================================ */
/* FOOTER                                                           */
/* ================================================================ */
footer { background: var(--bg-0) !important; border-color: var(--border) !important; }

/* ================================================================ */
/* PLAYGROUND CARDS                                                 */
/* ================================================================ */
.game-playground-card {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: all 0.3s ease;
}
.game-playground-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
  border-color: rgba(245,158,11,0.3) !important;
}
.game-playground-card:hover .game-play-overlay { opacity: 1 !important; }

/* ================================================================ */
/* RESPONSIVE                                                       */
/* ================================================================ */
@media (max-width: 768px) {
  .game-page { padding: 8px; }
  .game-title { font-size: 1rem; }
  .game-canvas { min-height: 400px; }
  .game-info-bar { flex-wrap: wrap; }
  .game-info-item { flex-basis: 25%; }
  .game-info-history { flex-basis: 100%; }
}
