/* ============================================
   7K (bet7k) Brasil — base.css
   Tema escuro bet7k · magenta + roxo
   ============================================ */

:root {
  --color-dark: #140A17;
  --color-bg: #1A1020;
  --color-surface: #241730;
  --color-primary: #E6007E;
  --color-accent: #B026FF;
  --color-odds: #F2F3F5;
  --color-live: #EF4444;
  --color-text: #F3EEF7;
  --color-muted: #9A8FA6;

  --font-heading: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 28px rgba(230, 0, 126, 0.35);
  --shadow-accent: 0 0 24px rgba(176, 38, 255, 0.3);

  --container: 1240px;
  --header-h: 68px;
  --bottomnav-h: 64px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --grad-primary: linear-gradient(135deg, #E6007E 0%, #B026FF 100%);
  --grad-dark: linear-gradient(180deg, #1A1020 0%, #140A17 100%);
  --grad-card: linear-gradient(160deg, rgba(176, 38, 255, 0.18) 0%, rgba(230, 0, 126, 0.08) 100%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.45rem;
}

p {
  margin: 0 0 1rem;
}

figure {
  margin: 0 0 1.25rem;
}

hr {
  border: 0;
  border-top: 1px solid rgba(154, 143, 166, 0.25);
  margin: 2rem 0;
}

/* ---------- Tipografia ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 0.85rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  letter-spacing: -0.015em;
  margin-top: 0;
}

h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

.lead {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--color-odds);
  line-height: 1.75;
}

.muted {
  color: var(--color-muted);
}

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

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

.small {
  font-size: 0.875rem;
}

.tiny {
  font-size: 0.78rem;
}

strong,
b {
  color: var(--color-text);
  font-weight: 700;
}

/* ---------- Layout utilitário ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-tight {
  padding: 1.75rem 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 1.75rem;
}

.section-head p {
  color: var(--color-muted);
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

/* Адаптив: элементы сетки не должны растягиваться шире экрана
   из-за широкого содержимого (таблицы, длинные слова) */
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  text-align: center;
  overflow-wrap: anywhere;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: #ff1493;
  color: #fff;
  box-shadow: 0 0 36px rgba(230, 0, 126, 0.55);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: #c44dff;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(243, 238, 247, 0.35);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(230, 0, 126, 0.1);
}

.btn-ghost {
  background: rgba(243, 238, 247, 0.08);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(230, 0, 126, 0.18);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 54px;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid transparent;
}

.badge-primary {
  background: rgba(230, 0, 126, 0.18);
  color: #ff7ab8;
  border-color: rgba(230, 0, 126, 0.4);
}

.badge-accent {
  background: rgba(176, 38, 255, 0.18);
  color: #d79bff;
  border-color: rgba(176, 38, 255, 0.4);
}

.badge-live {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.badge-muted {
  background: rgba(154, 143, 166, 0.15);
  color: var(--color-odds);
  border-color: rgba(154, 143, 166, 0.3);
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-live);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(176, 38, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.card-glow {
  background: var(--grad-card), var(--color-surface);
  border-color: rgba(230, 0, 126, 0.28);
}

.card h3,
.card h4 {
  margin-top: 0;
}

/* ---------- Tabelas responsivas (OBRIGATÓRIO) ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(176, 38, 255, 0.18);
  background: var(--color-surface);
}

.table-responsive table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table-responsive th,
.table-responsive td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(154, 143, 166, 0.18);
  vertical-align: top;
}

.table-responsive th {
  background: rgba(20, 10, 23, 0.65);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.table-responsive tr:last-child td {
  border-bottom: 0;
}

.table-responsive tbody tr:hover {
  background: rgba(230, 0, 126, 0.07);
}

/* ---------- Listas estilizadas ---------- */
.check-list,
.cross-list,
.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.check-list li,
.cross-list li,
.feature-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 800;
}

.cross-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-live);
  font-weight: 800;
}

.feature-list li::before {
  content: "◆";
  position: absolute;
  left: 0.15rem;
  top: 0;
  color: var(--color-primary);
  font-size: 0.75rem;
}

/* ---------- Bloco de destaque ---------- */
.highlight {
  background: var(--grad-card), var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}

.highlight-accent {
  border-left-color: var(--color-accent);
}

.highlight-warning {
  border-left-color: var(--color-live);
  background: rgba(239, 68, 68, 0.1);
}

.highlight p:last-child {
  margin-bottom: 0;
}

/* ---------- Formulários ---------- */
.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(154, 143, 166, 0.35);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.25);
}

.input::placeholder {
  color: var(--color-muted);
}

/* ---------- Imagens de conteúdo ---------- */
.content-img,
.banner-slot {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(176, 38, 255, 0.2);
  background: var(--color-surface);
  margin: 1.5rem 0 1.75rem;
}

.img-caption {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: -1.15rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---------- Acessibilidade ---------- */
.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;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 8px;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 601px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .container {
    padding: 0 1.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
