/* ============================================================
   BC.Game O'zbekiston — Base Styles
   Dark theme + neon-green accent
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-dark: #0F1014;
  --color-bg: #17181C;
  --color-surface: #24262C;
  --color-primary: #23C552;
  --color-accent: #00E701;
  --color-odds: #E8EAED;
  --color-live: #EF4444;
  --color-text: #F2F3F5;
  --color-muted: #8A8F98;
  --color-border: #2E3138;
  --color-glow: rgba(0,231,1,0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(0,231,1,0.2);

  --header-h: 60px;
  --sidebar-w: 240px;
  --mobile-bar-h: 60px;
  --max-w: 1280px;

  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; outline: none; }
button { cursor: pointer; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2rem 0 1rem; padding-top: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin: 1.5rem 0 0.75rem; }
p { margin-bottom: 1rem; }
strong, b { font-weight: 600; color: var(--color-text); }
small { font-size: 0.85em; color: var(--color-muted); }

/* --- Utility classes --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--color-primary);
  color: #000;
}
.btn-primary:hover {
  background: #2ddb5f;
  box-shadow: var(--shadow-glow);
  color: #000;
}
.btn-outline {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(0,231,1,0.1);
  color: var(--color-accent);
}
.btn-ghost {
  color: var(--color-muted);
  background: transparent;
}
.btn-ghost:hover { color: var(--color-text); }

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-live {
  background: var(--color-live);
  color: #fff;
}
.badge-new {
  background: var(--color-accent);
  color: #000;
}
.badge-hot {
  background: linear-gradient(135deg, #ff6b35, #ef4444);
  color: #fff;
}

/* --- Table responsive wrapper --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.table-responsive table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.table-responsive th {
  background: var(--color-dark);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table-responsive tr:hover { background: rgba(35,197,82,0.04); }

/* --- Lists in content --- */
.content-list {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.content-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* --- Section divider --- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 2.5rem 0;
}

/* --- Banner placeholder --- */
.banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark), #1a1d24);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Content prose --- */
.prose { max-width: 800px; }
.prose p { color: var(--color-odds); line-height: 1.75; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-primary); }
.prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: rgba(0,231,1,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-muted);
  font-style: italic;
}
.prose blockquote p { margin-bottom: 0; }

/* --- Disclaimer banner --- */
.disclaimer-banner {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.disclaimer-banner .icon { font-size: 1.1rem; flex-shrink: 0; }

/* --- Author box --- */
.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  align-items: flex-start;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  flex-shrink: 0;
}
.author-box .author-info h4 { margin-bottom: 0.25rem; }
.author-box .author-info p { margin-bottom: 0.25rem; font-size: 0.85rem; color: var(--color-muted); }

/* --- FAQ accordion --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
}
.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(0,231,1,0.04); }
.faq-question .arrow {
  transition: transform 0.3s ease;
  color: var(--color-accent);
  font-size: 1.2rem;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.25rem 1rem;
}
.faq-answer p { color: var(--color-odds); font-size: 0.9rem; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-muted);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin-bottom: 0; flex: 1; min-width: 200px; }

/* --- Scroll-top button --- */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 100;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--color-primary);
  color: #000;
}

/* --- Responsive base helpers --- */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  .container { padding: 0 0.75rem; }
}