/* =========================================================
   Mostbet Casino India — Main Stylesheet
   Dark gambling theme, mobile-first responsive
   ========================================================= */

:root {
  /* Brand colors — Mostbet India */
  --brand: #1565C0;
  --brand-dark: #0D47A1;
  --brand-light: #1976D2;
  --accent: #FF6600;
  --accent-dark: #E55C00;
  --accent-light: #FF8533;
  --brand-green: #2E7D32;

  /* Neutral palette (uniform Mostbet blue theme) */
  --bg-primary: #1565C0;
  --bg-secondary: #1251A3;
  --bg-tertiary: #1040A0;
  --bg-card: #0D47A1;
  --bg-hover: #1251A3;

  --text-primary: #ffffff;
  --text-secondary: #d0e4ff;
  --text-muted: #90bce8;
  --text-accent: #ffd700;

  --border: #1976D2;
  --border-light: #2196F3;

  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 40px;
  --s-2xl: 64px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --glow: 0 0 20px var(--accent);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-normal: 0.3s ease;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: linear-gradient(160deg, #1251A3 0%, #1976D2 40%, #1565C0 100%) fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #90CAF9; text-decoration: underline; transition: color var(--t-fast); }
a:hover { color: #ffffff; text-decoration: underline; }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--s-md);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: var(--s-xl); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: var(--s-lg); }
h4 { font-size: 1.1rem; margin-top: var(--s-md); color: var(--accent-light); }

p { margin-bottom: var(--s-md); }
strong, b { color: var(--text-primary); font-weight: 600; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-md); }
.container-narrow { max-width: 900px; }

main { min-height: 60vh; padding-bottom: var(--s-2xl); }

section { margin-bottom: var(--s-2xl); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand);
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-md);
  padding-bottom: var(--s-md);
}

.logo {
  display: flex; align-items: center; gap: var(--s-sm);
  text-decoration: none; font-weight: 800; font-size: 1.25rem;
  color: var(--text-primary);
}
.logo img { max-height: 40px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-menu { display: flex; align-items: center; gap: var(--s-lg); list-style: none; }
.nav-menu li { position: relative; }
.nav-menu a { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.95rem; padding: var(--s-sm) 0; text-decoration: none; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-light); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-md);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none !important; box-shadow: var(--glow); transform: translateY(-1px); }

.mobile-actions {
  display: none;
}
.mob-btn {
  flex: 1;
  text-align: center;
  padding: 11px 8px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.mob-btn-reg { background: var(--accent); color: #fff; }
.mob-btn-reg:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.mob-btn-login { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.mob-btn-login:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

.hamburger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; background: none; padding: var(--s-sm);
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); transition: all var(--t-normal);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: var(--s-2xl) 0;
  background: transparent;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.08; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 800px; margin-bottom: var(--s-lg); }
.hero-lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 100%; margin-bottom: var(--s-xl); }
.hero-banner-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); margin: var(--s-lg) 0; }

.hero-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-md); margin: var(--s-xl) 0; }
.game-card {
  background: var(--bg-card); border-radius: var(--r-md); padding: var(--s-md);
  text-align: center; border: 1px solid var(--border); transition: all var(--t-normal);
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.game-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); margin-bottom: var(--s-sm); }
.game-card h3 { font-size: 1rem; margin: var(--s-sm) 0; }
.game-card .btn { width: 100%; }

/* =========================================================
   PROMO BANNER
   ========================================================= */
.promo-banner {
  background: var(--brand);
  color: #fff;
  padding: var(--s-xl);
  border-radius: var(--r-lg);
  text-align: center;
  margin: var(--s-xl) 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--accent);
}
.promo-banner::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,102,0,0.08) 0%, transparent 50%);
}
.promo-banner > * { position: relative; z-index: 2; }
.promo-banner h2 { color: #fff; font-size: 2rem; margin-top: 0; }
.promo-banner .promo-code {
  display: inline-block; background: rgba(0,0,0,0.3);
  padding: var(--s-sm) var(--s-lg); border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700;
  letter-spacing: 2px; border: 2px dashed rgba(255,255,255,0.5); margin: var(--s-md) 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: var(--s-md) var(--s-lg);
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--t-normal);
  cursor: pointer;
  text-align: center;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn { text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary:hover {
  background: var(--accent-dark); color: #fff;
  text-decoration: none; box-shadow: var(--glow); transform: translateY(-2px);
}

.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); text-decoration: none; }

.btn-green { background: var(--brand-green); color: #fff; }
.btn-green:hover { background: #1b5e20; color: #fff; text-decoration: none; }

.btn-large { padding: var(--s-lg) var(--s-xl); font-size: 1.125rem; }
.btn-block { display: block; width: 100%; }

/* =========================================================
   CONTENT IMAGES
   ========================================================= */
.content-img {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 1.5rem auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-md);
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-lg); transition: border-color var(--t-fast);
}
.card:hover { border-color: var(--border-light); }

.bonus-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bonus-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--accent);
}
.bonus-card h3 { color: var(--text-accent); font-size: 1.5rem; }
.bonus-card .amount { font-size: 2rem; font-weight: 800; color: var(--accent-light); margin: var(--s-md) 0; }

.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-lg); }

/* =========================================================
   TABLES
   ========================================================= */
table {
  width: 100%; border-collapse: collapse; margin: var(--s-lg) 0;
  background: var(--bg-card); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
thead th {
  background: var(--bg-tertiary); color: var(--text-primary);
  padding: var(--s-md); text-align: left; font-weight: 600;
  border-bottom: 2px solid var(--accent);
}
tbody td { padding: var(--s-md); border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td:first-child { color: var(--text-primary); font-weight: 500; }

.table-wrapper { overflow-x: auto; margin: var(--s-lg) 0; }

/* =========================================================
   LIVE WINNINGS FEED
   ========================================================= */
.winnings-feed {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-lg); margin: var(--s-xl) 0;
}
.winnings-feed h3 { display: flex; align-items: center; gap: var(--s-sm); margin-top: 0; }
.winnings-feed h3::before {
  content: ''; width: 10px; height: 10px;
  background: var(--success); border-radius: 50%; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.winnings-list { display: grid; gap: var(--s-sm); }
.winning-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-md); padding: var(--s-sm) var(--s-md);
  background: var(--bg-card); border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
}
.winning-row .player { color: var(--text-primary); font-weight: 500; }
.winning-row .game { color: var(--text-muted); font-size: 0.9rem; }
.winning-row .amount { color: var(--success); font-weight: 700; }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-list { display: grid; gap: var(--s-sm); }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left;
  padding: var(--s-md) var(--s-lg);
  background: transparent; color: var(--text-primary);
  font-size: 1rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--t-fast);
}
.faq-question:hover { background: var(--bg-hover); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; transition: transform var(--t-normal); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 var(--s-lg) var(--s-lg); color: var(--text-secondary); }
.faq-item.open .faq-answer { display: block; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs { font-size: 0.9rem; color: var(--text-muted); padding: var(--s-md) 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs .sep { margin: 0 var(--s-sm); }

/* =========================================================
   PROS/CONS
   ========================================================= */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); margin: var(--s-lg) 0; }
.pros, .cons {
  background: var(--bg-card); padding: var(--s-lg);
  border-radius: var(--r-md); border: 1px solid var(--border);
}
.pros h3 { color: var(--success); }
.cons h3 { color: var(--danger); }
.pros ul li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.cons ul li::before { content: '✗ '; color: var(--danger); font-weight: 700; }
.pros ul li, .cons ul li { padding: var(--s-sm) 0; }

/* =========================================================
   FLOATING BONUS POPUP
   ========================================================= */
.bonus-popup {
  position: fixed; bottom: var(--s-lg); right: var(--s-lg);
  max-width: 360px; z-index: 50;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; padding: var(--s-lg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(200%); transition: transform 0.5s ease;
}
.bonus-popup.show { transform: translateY(0); }
.bonus-popup h4 { color: #fff; margin: 0 0 var(--s-sm); }
.bonus-popup p { margin-bottom: var(--s-md); font-size: 0.9rem; }
.bonus-popup .close {
  position: absolute; top: var(--s-sm); right: var(--s-sm);
  background: rgba(0,0,0,0.3); color: #fff;
  width: 28px; height: 28px; border-radius: 50%; font-size: 1.25rem; line-height: 1;
}

/* =========================================================
   AUTHOR BOX
   ========================================================= */
.author-box {
  display: flex; gap: var(--s-lg); align-items: start;
  background: var(--bg-card); padding: var(--s-lg);
  border-radius: var(--r-md); margin: var(--s-xl) 0; border: 1px solid var(--border);
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h4 { margin: 0 0 var(--s-xs); color: var(--text-primary); }
.author-box .role { color: var(--accent-light); font-size: 0.9rem; font-weight: 500; margin-bottom: var(--s-sm); }
.author-box p { font-size: 0.95rem; margin: 0; }

/* =========================================================
   STEPS
   ========================================================= */
.steps { counter-reset: step; display: grid; gap: var(--s-md); margin: var(--s-lg) 0; }
.step {
  counter-increment: step;
  background: var(--bg-card); padding: var(--s-lg);
  border-radius: var(--r-md); border-left: 3px solid var(--accent);
  position: relative; padding-left: var(--s-2xl);
}
.step::before {
  content: counter(step);
  position: absolute; left: var(--s-lg); top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.125rem;
}
.step h3 { margin: 0 0 var(--s-xs); font-size: 1.05rem; color: var(--text-primary); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0D47A1;
  border-top: 3px solid var(--accent);
  padding: var(--s-2xl) 0 var(--s-lg);
  margin-top: var(--s-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-xl); margin-bottom: var(--s-xl);
}
.footer-col h4 { color: var(--text-primary); font-size: 1rem; margin-bottom: var(--s-md); }
.footer-col ul li { padding: var(--s-xs) 0; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-light); }

.footer-trust {
  display: flex; flex-wrap: wrap; gap: var(--s-md);
  align-items: center; justify-content: center;
  padding: var(--s-lg) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-lg);
}
.footer-trust img { height: 40px; opacity: 0.7; transition: opacity var(--t-fast); }
.footer-trust img:hover { opacity: 1; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); color: var(--text-secondary);
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border-light);
}

.footer-legal {
  text-align: center; color: var(--text-muted);
  font-size: 0.85rem; line-height: 1.7;
}
.footer-legal p { margin-bottom: var(--s-sm); }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.text-brand { color: var(--accent-light); }
.bg-card { background: var(--bg-card); padding: var(--s-lg); border-radius: var(--r-md); }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.hidden { display: none; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .site-header { position: relative; }
  .site-header nav { position: static; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
    background: var(--brand-dark);
    flex-direction: column; padding: var(--s-md);
    border-top: 1px solid var(--border); align-items: stretch;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: var(--s-md); border-bottom: 1px solid var(--border); }
  .nav-menu .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-actions {
    display: flex;
    gap: 8px;
    padding: 8px 5mm;
    border-top: 1px solid var(--border);
    background: var(--brand);
  }

  .hero-games { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .bonus-popup { left: var(--s-md); right: var(--s-md); max-width: none; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: var(--s-xl) 0; }
  .promo-banner { padding: var(--s-lg); }
  .promo-banner h2 { font-size: 1.5rem; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header, .site-footer, .bonus-popup, .hamburger, .mobile-actions { display: none; }
  body { background: #fff; color: #000; }
}
