/* ============================================
   Chatki Bet Ethiopia — Base Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-dark: #0E1116;
  --color-bg: #151A21;
  --color-surface: #1E2530;
  --color-primary: #F5B301;
  --color-accent: #E63946;
  --color-odds: #F5B301;
  --color-live: #22C55E;
  --color-text: #F3F5F7;
  --color-muted: #93A0B0;
  --color-border: #2A3240;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --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 24px rgba(0,0,0,0.5);
  --header-height: 60px;
  --nav-height: 44px;
  --bottom-bar-height: 60px;
  --sidebar-width: 220px;
  --right-sidebar-width: 280px;
  --container-max: 1400px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s 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-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: #ffd24d; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  background: none; border: none; outline: none;
}
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.75em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-top: 2em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-top: 1.5em; }
h4 { font-size: 1.1rem; margin-top: 1.25em; }
p { margin-bottom: 1em; }
strong { font-weight: 600; }
.text-accent { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.text-live { color: var(--color-live); }
.text-danger { color: var(--color-accent); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* --- Table Responsive --- */
.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: 500px;
}
.table-responsive th,
.table-responsive td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.table-responsive th {
  background: var(--color-dark);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}
.table-responsive tr:hover {
  background: rgba(245, 179, 1, 0.05);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--color-primary);
  color: #000;
}
.btn-primary:hover {
  background: #ffc933;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 179, 1, 0.3);
}
.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #000;
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover {
  background: #ff4d5a;
  color: #fff;
}
.btn-sm { padding: 6px 16px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 14px 32px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-normal);
}
.card:hover {
  border-color: rgba(245, 179, 1, 0.3);
  box-shadow: var(--shadow-md);
}

/* --- Tags / Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-live);
}
.badge-primary {
  background: rgba(245, 179, 1, 0.15);
  color: var(--color-primary);
}
.badge-accent {
  background: rgba(230, 57, 70, 0.15);
  color: var(--color-accent);
}

/* --- Odds Display --- */
.odds-value {
  font-weight: 700;
  color: var(--color-odds);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* --- Age Badge --- */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}
.disclaimer-banner strong {
  color: var(--color-accent);
}

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 2rem 0;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  flex-shrink: 0;
}
.author-box .author-info h4 {
  margin: 0 0 4px;
  color: var(--color-primary);
}
.author-box .author-info .author-role {
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.author-box .author-info p {
  font-size: 14px;
  margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
  min-height: 44px;
}
.faq-question:hover { background: rgba(245, 179, 1, 0.08); }
.faq-question .faq-icon {
  transition: transform var(--transition-normal);
  color: var(--color-primary);
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  background: var(--color-bg);
}
.faq-item.active .faq-answer {
  max-height: 800px;
  padding: 16px 20px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  padding: 12px 0;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { color: var(--color-border); }

/* --- Images Placeholders --- */
.img-slot {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
  min-height: 200px;
  overflow: hidden;
}

/* --- Prose / Article Content --- */
.prose h2 { border-bottom: 2px solid var(--color-border); padding-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  background: rgba(245, 179, 1, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5em 0;
  font-style: italic;
}
.prose .note-box {
  background: rgba(245, 179, 1, 0.08);
  border: 1px solid rgba(245, 179, 1, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 1.5em 0;
  font-size: 14px;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  padding: 16px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner .cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 13px; color: var(--color-muted); margin: 0; flex: 1; }

/* --- 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: var(--color-primary); color: #000; }

/* --- Responsive: Mobile ≤600px --- */
@media (max-width: 600px) {
  body { font-size: 14px; padding-bottom: var(--bottom-bar-height); }
  .container { padding: 0 12px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; margin-top: 1.5em; }
  h3 { font-size: 1.1rem; }
  .btn-lg { padding: 12px 24px; font-size: 14px; }
  .author-box { flex-direction: column; text-align: center; align-items: center; }
  .cookie-banner .cookie-inner { flex-direction: column; text-align: center; }
}

/* --- Responsive: Tablet 601-1024px --- */
@media (min-width: 601px) and (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
    --right-sidebar-width: 0px;
  }
}
