/* ═══════════════════════════════════════════════
   bet2222.me — Emerald Trust Gaming UI
   Design System: Original dark emerald theme
   ═══════════════════════════════════════════════ */

:root {
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-primary-soft: rgba(16,185,129,0.12);
  --color-secondary: #f472b6;
  --color-accent: #fbbf24;
  --color-bg: #0c1a14;
  --color-bg-soft: #132a1f;
  --color-surface: #163326;
  --color-surface-strong: #1a4030;
  --color-card: #1a3d2e;
  --color-card-alt: #1e4a37;
  --color-border: #245a3f;
  --color-border-strong: #2d7a55;
  --color-text: #ecfdf5;
  --color-text-soft: #a7f3d0;
  --color-text-muted: #6ee7b7;
  --color-footer-bg: #091410;
  --color-footer-text: #86efac;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-card: 12px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 8px 28px rgba(16,185,129,0.18);
  --shadow-header: 0 2px 16px rgba(0,0,0,0.35);
  --container-max: 1200px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --motion-normal: 0.25s;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--motion-normal); }
a:hover { color: var(--color-accent); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
}

.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, .8vw, 14px);
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(4px, .65vw, 12px);
  white-space: nowrap;
  overflow: visible;
}

.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(5px, .6vw, 11px);
  font-size: clamp(12.5px, .82vw, 14.5px);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--motion-normal), background var(--motion-normal);
}

.primary-nav a:hover {
  color: var(--color-secondary);
  background: rgba(244,114,182,0.08);
}

.primary-nav a.active {
  color: var(--color-secondary);
  background: rgba(244,114,182,0.1);
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--motion-normal), opacity var(--motion-normal);
}

.mobile-menu {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(var(--header-h) + 8px);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.mobile-menu.is-open { display: block; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--motion-normal);
}

.mobile-nav a:hover { background: var(--color-primary-soft); color: var(--color-text); }

/* ═══════════════════════════════════════════════
   HERO — Homepage
   ═══════════════════════════════════════════════ */
.hero-home {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg-soft) 100%);
  border-bottom: 3px solid var(--color-primary);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  position: relative;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(244,114,182,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-text p {
  color: var(--color-text-soft);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-primary);
  box-shadow: 6px 6px 0 var(--color-border);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-normal), transform 0.15s;
  min-height: 48px;
}

.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-normal);
  min-height: 48px;
}

.btn-outline:hover { background: rgba(244,114,182,0.1); color: var(--color-secondary); }

.btn-full { width: 100%; }

/* ─── Stats Band ─── */
.stats-band {
  background: var(--color-surface);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-card {
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid var(--color-border);
}

.stat-card:last-child { border-right: none; }

.stat-num {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.stat-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════
   SEO BODY SECTIONS
   ═══════════════════════════════════════════════ */
section[data-seo-body="true"] {
  padding: clamp(40px, 6vw, 72px) 0;
}

section[data-seo-body="true"]:nth-of-type(even) {
  background: var(--color-bg-soft);
}

section[data-seo-body="true"] h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

section[data-seo-body="true"] h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 28px 0 12px;
  line-height: 1.35;
}

section[data-seo-body="true"] p {
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  line-height: 1.85;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  max-width: 860px;
}

section[data-seo-body="true"] a { color: var(--color-secondary); }
section[data-seo-body="true"] a:hover { color: var(--color-accent); }

/* ─── Image Break ─── */
.img-break {
  padding: 24px 0;
}

.img-break img {
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-primary);
  box-shadow: 4px 4px 0 var(--color-border);
}

/* ─── Table ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 2px solid var(--color-primary); margin: 20px 0; }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  font-size: 0.88rem;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.88rem;
}

.data-table tr:nth-child(even) td { background: rgba(16,185,129,0.04); }
.data-table tr:hover td { background: rgba(244,114,182,0.04); }

/* ─── CTA Band ─── */
.cta-band {
  padding: 48px 0 64px;
}

.cta-card {
  background: linear-gradient(135deg, var(--color-surface), var(--color-card-alt));
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 12px;
  color: var(--color-text);
}

.cta-card p {
  color: var(--color-text-soft);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════
   PAGE HERO VARIANTS
   ═══════════════════════════════════════════════ */
.page-hero {
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 3px solid var(--color-primary);
}

.game-hero { background: linear-gradient(135deg, #0a2018, #163326, #0c1a14); }
.slot-hero { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.category-intro { background: linear-gradient(135deg, var(--color-bg), var(--color-surface)); }
.auth-hero { background: linear-gradient(135deg, #0c1a14, #1a3d2e); }
.policy-intro { background: var(--color-bg-soft); }
.faq-intro { background: linear-gradient(135deg, var(--color-bg), #132a1f); }

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-text-soft);
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  line-height: 1.8;
  max-width: 800px;
}

.policy-updated { color: var(--color-text-muted); font-size: 0.85rem; font-style: italic; }

/* ─── Auth Layout ─── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.auth-form-card {
  background: var(--color-card);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 32px;
}

.auth-form-card h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--motion-normal);
}

.form-group input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-group input::placeholder { color: var(--color-text-muted); opacity: 0.5; }

.auth-help {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ─── Breadcrumb ─── */
.breadcrumb-nav {
  padding: 14px 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.breadcrumb-list li::after { content: "›"; margin-left: 8px; color: var(--color-text-muted); }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--color-text-muted); }
.breadcrumb-list li:last-child { color: var(--color-text-soft); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 2px solid var(--color-primary);
  padding: clamp(40px, 6vw, 64px) 0 24px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img { margin-bottom: 14px; }
.footer-brand p { color: var(--color-footer-text); font-size: 0.88rem; line-height: 1.7; }

.footer-links-group h4, .footer-contact h4 {
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-links-group a {
  display: block;
  color: var(--color-footer-text);
  font-size: 0.88rem;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color var(--motion-normal);
}

.footer-links-group a:hover { color: var(--color-secondary); }

.footer-contact p { color: var(--color-footer-text); font-size: 0.88rem; margin-bottom: 8px; }
.footer-warning { color: var(--color-text-muted); font-size: 0.82rem; margin-top: 12px; line-height: 1.6; font-style: italic; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer-bottom p { color: var(--color-text-muted); font-size: 0.82rem; }

/* ═══════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════ */
.error-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--color-secondary); margin-bottom: 16px; }
.error-page p { color: var(--color-text-soft); font-size: 1.05rem; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .site-header .header-inner {
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    min-height: var(--mobile-header-h);
    gap: clamp(6px, 1.8vw, 10px);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .nav-toggle { width: 38px; height: 38px; }
  body { font-size: 15px; }
}
