/* ============================================================
   BC.Game Affiliate Review — Base Styles
   Brand: BC.Game | Dark theme + Neon Green
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
: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;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 20px rgba(0,231,1,0.15);
  --transition: 0.25s ease;
  --container-max: 1280px;
  --sidebar-width: 240px;
  --header-height: 60px;
  --bottom-bar-height: 60px;
}

/* --- 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-family);
  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;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-primary);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.875rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.625rem; margin-top: 1.25rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

/* --- Utilities --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.text-live { color: var(--color-live); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
}
.btn-primary:hover {
  background: #1fa845;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover {
  background: rgba(0,231,1,0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  color: var(--color-muted);
}
.btn-ghost:hover {
  color: var(--color-text);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

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

/* --- Table Responsive --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}
.table-responsive table {
  width: 100%;
  min-width: 550px;
  border-collapse: collapse;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

table th {
  background: var(--color-dark);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table td {
  font-size: 0.9rem;
}

table tr:hover td {
  background: rgba(0,231,1,0.03);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-live {
  background: rgba(239,68,68,0.15);
  color: var(--color-live);
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-live);
  animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.badge-accent {
  background: rgba(0,231,1,0.12);
  color: var(--color-accent);
}
.badge-21 {
  background: var(--color-live);
  color: #fff;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
}

/* --- Disclaimers --- */
.disclaimer-block {
  background: rgba(239,68,68,0.08);
  border-left: 3px solid var(--color-live);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.disclaimer-block strong {
  color: var(--color-live);
}

.info-block {
  background: rgba(0,231,1,0.06);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

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

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover {
  background: rgba(255,255,255,0.03);
}
.faq-question .icon {
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}
.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* --- Sections --- */
.section {
  padding: 2.5rem 0;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title .icon {
  font-size: 1.4rem;
}

/* --- Content area article styles --- */
.article-content h2 {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.article-content ul,
.article-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}
.article-content ul {
  list-style: disc;
}
.article-content ol {
  list-style: decimal;
}
.article-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.65;
}
.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(0,231,1,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-muted);
  font-style: italic;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--color-muted);
}
.breadcrumbs a:hover {
  color: var(--color-accent);
}
.breadcrumbs .sep {
  color: var(--color-muted);
  opacity: 0.5;
}

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

/* --- Mobile bottom bar --- */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 9000;
  height: var(--bottom-bar-height);
  padding: 0 0.5rem;
}
.bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}
.bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--color-muted);
  font-size: 0.65rem;
  padding: 0.25rem;
  text-decoration: none;
  min-width: 56px;
}
.bottom-bar a.active {
  color: var(--color-accent);
}
.bottom-bar a svg {
  width: 22px;
  height: 22px;
}

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

/* --- Selection --- */
::selection {
  background: rgba(0,231,1,0.25);
  color: #fff;
}

/* --- Responsive: Tablet (601–1024px) --- */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}

/* --- Responsive: Mobile (≤600px) --- */
@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
  .container { padding: 0 0.75rem; }
  .section { padding: 1.5rem 0; }
  .author-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }
  .bottom-bar {
    display: block;
  }
  body {
    padding-bottom: var(--bottom-bar-height);
  }
}