/* ==========================================================================
   BetVisa Bangladesh Official Design System (2026 iGaming Standard)
   Color Palette: Deep Luxury Obsidian (#0b0e14), Royal Gold (#ffb800 / #d4af37),
                  Emerald Green (#10b981), Card Dark (#141923)
   ========================================================================== */

:root {
  --bg-main: #0b0e14;
  --bg-surface: #131823;
  --bg-card: #181f2e;
  --bg-card-hover: #1e2638;
  --border-color: #242c3f;
  --border-gold: rgba(255, 184, 0, 0.35);
  
  --gold-primary: #ffb800;
  --gold-gradient: linear-gradient(135deg, #ffe066 0%, #ffb800 50%, #d4af37 100%);
  --gold-glow: 0 0 20px rgba(255, 184, 0, 0.25);
  
  --emerald: #10b981;
  --emerald-glow: 0 0 15px rgba(16, 185, 129, 0.3);
  --ruby: #ef4444;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-sub: #6b7280;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Language Toggle Logic */
.lang-bn {
  display: none !important;
}

body.bn-active .lang-en {
  display: none !important;
}

body.bn-active .lang-bn {
  display: revert !important;
}

body.bn-active span.lang-bn {
  display: inline !important;
}

body.bn-active div.lang-bn,
body.bn-active p.lang-bn,
body.bn-active h1.lang-bn,
body.bn-active h2.lang-bn,
body.bn-active h3.lang-bn,
body.bn-active section.lang-bn {
  display: block !important;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher Button */
.lang-switcher-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lang-switcher-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.lang-flag {
  font-size: 14px;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0e14;
  box-shadow: var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 184, 0, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #042f2e;
  box-shadow: var(--emerald-glow);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

/* Trust Ticker / Payment Bar */
.trust-bar {
  background: #0f141f;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 13px;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--gold-primary);
}

.breadcrumbs .separator {
  color: var(--text-sub);
}

.breadcrumbs .current {
  color: var(--gold-primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 40px 0 50px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 184, 0, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-content h1 .gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  text-align: center;
}

.hero-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

/* Answer Capsule (Direct Google AI Overview Answer Box) */
.answer-capsule {
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.08) 0%, rgba(20, 25, 35, 0.6) 100%);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
}

.answer-capsule h3 {
  font-size: 18px;
  color: var(--gold-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.answer-capsule p {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Category & Game Grids */
.section {
  padding: 50px 0;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 35px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--gold-glow);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #10141e;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  font-size: 13px;
  color: var(--gold-primary);
  font-weight: 600;
}

/* High-Contrast Data Tables */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

th {
  background: #182030;
  color: var(--gold-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Step Walkthroughs */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0;
}

.step-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-primary);
  min-width: 44px;
  height: 44px;
  background: rgba(255, 184, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 15px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 30px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-main);
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--gold-primary);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Comprehensive Footer Directory */
.footer {
  background: #07090e;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--gold-primary);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-sub);
}

/* Sticky Mobile Conversion Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(11, 14, 20, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.8);
}

.mobile-sticky-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 10px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions, .hero-pills {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Offset for sticky bar */
  }
  .mobile-sticky-bar {
    display: block;
  }
  .nav-links {
    display: none; /* Hide default nav on small screens */
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
