/* ============================================================
   VegasBet — Base CSS  (v2 — no blue, pure dark)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Backgrounds — black base, elevated panels */
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #1c1c1f;
  --bg-card:       #1e1e23;
  --bg-card-hover: #25252a;
  --bg-elevated:   #222228;
  --bg-input:      #1a1a1f;
  --bg-match:      #1a1a1f;

  /* Purple palette */
  --purple:        #7c3aed;
  --purple-light:  #9d5df5;
  --purple-glow:   rgba(124, 58, 237, 0.35);
  --purple-dim:    rgba(124, 58, 237, 0.12);
  --accent:        #a855f7;
  --purple-dark:   #5b21b6;

  /* Status */
  --gold:   #f59e0b;
  --green:  #10b981;
  --red:    #ef4444;
  --orange: #f97316;

  /* Text */
  --text-primary:   #f0eeff;
  --text-secondary: #8884aa;
  --text-muted:     #524e6e;

  /* Borders */
  --border:        rgba(124, 58, 237, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card:   rgba(255, 255, 255, 0.07);

  /* Header sizing */
  --header-height: 64px;
  --tabs-height:   44px;
  --header-total:  136px;

  /* Layout */
  --sidebar-sport:  280px;
  --floating-bar-h: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  /* Transitions */
  --transition: 0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 15px; scroll-behavior: smooth; }
body  {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.5;
}
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ── Page wrapper ───────────────────────────────────────────── */
.page-wrapper {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--floating-bar-h) + 8px);
  padding-left: 14px; padding-right: 14px;
  position: relative; z-index: 1;
}
.has-sport-tabs .page-wrapper {
  padding-top: var(--header-total);
}
.container { width: 100%; padding: 0 14px; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.03em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost   { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--purple-dim); border-color: var(--purple); color: var(--accent); }
.btn-primary { background: var(--purple); color: #fff; border: 1px solid transparent; box-shadow: 0 0 16px var(--purple-glow); }
.btn-primary:hover { background: var(--purple-light); box-shadow: 0 0 24px var(--purple-glow); transform: translateY(-1px); }
.btn-green   { background: var(--green); color: #fff; border: 1px solid transparent; }
.btn-green:hover { background: #0ea371; transform: translateY(-1px); }
.btn-sm   { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg   { padding: 11px 26px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
  background: var(--bg-input); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 10px 13px;
  color: var(--text-primary); font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-dim); }
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--red); }
.form-error { font-size: 0.75rem; color: var(--red); }
.form-hint  { font-size: 0.75rem; color: var(--text-muted); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 20px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-live  { background: var(--red); color: #fff; }
.badge-count { background: var(--purple-dim); color: var(--accent); border: 1px solid var(--border); }
.badge-green { background: rgba(16,185,129,.15); color: var(--green); border: 1px solid rgba(16,185,129,.3); }

/* ── Utilities ──────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }
.text-gold      { color: var(--gold); }
.text-green     { color: var(--green); }
.text-red       { color: var(--red); }
.font-condensed { font-family: 'Inter', sans-serif; }
.hidden         { display: none !important; }
.truncate       { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider        { height: 1px; background: var(--border-subtle); margin: 14px 0; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.8); } }
@keyframes fade-in   { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes slide-up  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-in { animation: fade-in 0.25s ease forwards; }

/* ── Alert ──────────────────────────────────────────────────── */
.alert         { padding: 9px 13px; border-radius: var(--radius-md); font-size: 0.83rem; font-weight: 500; }
.alert-error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }

/* ── Live dot ───────────────────────────────────────────────── */
.live-indicator { display: inline-flex; align-items: center; gap: 5px; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse-dot 1.2s ease-in-out infinite; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); margin-top: 32px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 36px 0 28px; }
.footer-brand-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-top: 10px; max-width: 240px; }
.footer-col-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 0.75rem; color: var(--text-muted); }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--text-muted); color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 0.68rem; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Mobile: floating pill fixed bottom center ──────────────── */
@media (max-width: 768px) {
  .floating-pill {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 90vw;
    right: auto;
  }

  /* Hide bottom bar on pages where it's not relevant */
  body.page-main-news .floating-pill,
  body.page-main-promotions .floating-pill,
  body.page-main-about .floating-pill,
  body.page-main-vip .floating-pill,
  body.page-main-feedback .floating-pill {
    display: none;
  }
}
