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

:root {
  --color-primary: #E4002B;
  --color-accent: #B3001F;
  --color-dark: #15171C;
  --color-bg: #FFFFFF;
  --color-surface: #F4F5F7;
  --color-surface-border: #E6E8EC;
  --color-odds: #15171C;
  --color-live: #00A14B;
  --color-text: #15171C;
  --color-muted: #6B7280;
  --color-white: #FFFFFF;
  --color-green-flag: #009C3B;
  --color-yellow-flag: #FFDF00;
  --color-blue-flag: #002776;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 56px;
  --sidebar-width: 220px;
  --betslip-width: 300px;
  --mobile-bar-height: 60px;
  --border-radius: 8px;
  --border-radius-sm: 6px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--color-dark); }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; margin-top: 1.25rem; }
p { margin-bottom: 0.75rem; }
strong { font-weight: 700; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* Typography */
.section-text h2 { padding-top: 2rem; border-top: 1px solid var(--color-surface-border); margin-top: 2.5rem; }
.section-text h2:first-child { border-top: none; margin-top: 0; }
.section-text p { font-size: 1rem; color: var(--color-text); }
.section-text ul, .section-text ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.section-text ul { list-style: disc; }
.section-text ol { list-style: decimal; }
.section-text li { margin-bottom: 0.4rem; font-size: 0.95rem; }

/* Container */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1rem; }
.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem; border-radius: var(--border-radius);
  font-weight: 600; font-size: 0.85rem; text-transform: uppercase;
  transition: all var(--transition); white-space: nowrap; min-height: 44px;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent); color: var(--color-white); }
.btn-outline-white { border: 2px solid var(--color-white); color: var(--color-white); background: transparent; }
.btn-outline-white:hover { background: var(--color-white); color: var(--color-primary); }
.btn-white { background: var(--color-white); color: var(--color-primary); border: 2px solid var(--color-white); }
.btn-white:hover { background: #f0f0f0; }
.btn-go { background: var(--color-primary); color: var(--color-white); }
.btn-go:hover { background: var(--color-accent); color: var(--color-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Table responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
}
.table-responsive table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}
.table-responsive th, .table-responsive td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-surface-border);
  font-size: 0.9rem;
}
.table-responsive th {
  background: var(--color-surface);
  font-weight: 700;
  color: var(--color-dark);
}
.table-responsive tr:hover { background: var(--color-surface); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.badge-primary { background: var(--color-primary); color: #fff; }
.badge-live { background: var(--color-live); color: #fff; }
.badge-dark { background: var(--color-dark); color: #fff; }
.badge-surface { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-surface-border); }

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

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

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

/* Disclaimer strip */
.disclaimer-strip {
  background: #FFF3CD; border: 1px solid #FFECB5; color: #856404;
  padding: 0.5rem 1rem; font-size: 0.75rem; text-align: center;
  border-radius: var(--border-radius-sm); margin-bottom: 1rem;
}

/* Anchor offset for fixed header */
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }

/* Mobile bar offset */
body { padding-bottom: 0; }
@media (max-width: 600px) {
  body { padding-bottom: var(--mobile-bar-height); }
}

@media (min-width: 601px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.3rem; }
}