/* ============================================================
   R7.Bet Brasil — Base Styles
   Dark theme: orange + gold accent on near-black
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --color-dark: #121316;
  --color-bg: #17191E;
  --color-surface: #20232B;
  --color-primary: #F5A623;   /* gold CTA buttons — text BLACK */
  --color-accent: #FF6A00;   /* orange brand accent */
  --color-odds: #F5A623;
  --color-live: #EF4444;
  --color-text: #F2F3F5;
  --color-muted: #8A8F98;
  --color-border: #2A2D35;
  --color-success: #22C55E;
  --color-link: #F5A623;
  --color-link-hover: #FF6A00;
  --font-sans: 'Inter', 'Segoe UI', Arial, Helvetica, 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,.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
  --transition: .2s ease;
  --header-h: 56px;
  --sidebar-w: 220px;
  --bottom-nav-h: 56px;
  --container-max: 1200px;
  --container-pad: 1rem;
}

/* --- 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-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-link-hover); text-decoration: underline; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: .65rem; color: var(--color-accent); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin-bottom: .5rem; color: var(--color-text); }
p { margin-bottom: 1rem; }
strong { font-weight: 600; }
small { font-size: .85em; color: var(--color-muted); }

/* --- Utility Classes --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.text-live { color: var(--color-live); }
.text-success { color: var(--color-success); }
.bg-surface { background: var(--color-surface); }
.bg-dark { background: var(--color-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-md); font-weight: 700; font-size: .95rem;
  transition: all var(--transition); min-height: 44px; min-width: 44px;
  text-decoration: none !important;
}
.btn:hover { text-decoration: none !important; }
.btn-primary {
  background: var(--color-primary); color: #000;
}
.btn-primary:hover { background: #e0951e; color: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; min-height: 36px; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }

/* --- Badge --- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge-live { background: var(--color-live); color: #fff; }
.badge-18 { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.badge-spa { background: rgba(34,197,94,.15); color: var(--color-success); border: 1px solid rgba(34,197,94,.3); }
.badge-pix { background: rgba(245,166,35,.12); color: var(--color-primary); border: 1px solid rgba(245,166,35,.3); }

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

/* --- Table (responsive wrapper) --- */
.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: 500px; border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
  padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border);
}
.table-responsive th {
  background: var(--color-dark); color: var(--color-primary); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.table-responsive td { font-size: .92rem; }
.table-responsive tr:hover td { background: rgba(255,255,255,.03); }

/* --- Section --- */
.section { padding: 2.5rem 0; }
.section-title {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.25rem;
}
.section-title .icon { font-size: 1.4rem; }
.section-divider {
  width: 100%; height: 1px; background: var(--color-border); margin: 2rem 0;
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }

@media (min-width: 601px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1025px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- List styles --- */
.list-check { list-style: none; }
.list-check li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; }
.list-check li::before {
  content: '✓'; position: absolute; left: 0; color: var(--color-success); font-weight: 700;
}
.list-disc { list-style: disc; padding-left: 1.5rem; }
.list-disc li { margin-bottom: .5rem; }

/* --- Disclaimer bar --- */
.disclaimer-bar {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: .75rem 1rem; font-size: .82rem;
  color: var(--color-muted); line-height: 1.5; margin-bottom: 1.5rem;
}
.disclaimer-bar strong { color: var(--color-text); }

/* --- 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; flex-wrap: wrap; align-items: center; gap: .75rem;
  font-size: .85rem; color: var(--color-muted);
  transform: translateY(100%); transition: transform .3s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { flex: 1; min-width: 200px; margin-bottom: 0; }

/* --- Scroll margin for anchor links (fixed header) --- */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.animate-in { animation: fadeInUp .4s ease both; }

/* --- Scrollbar (webkit) --- */
::-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-accent); color: #000; }