/* ============================================
   base.css — Betano App Brasil Review
   Variáveis, Reset, Tipografia, Utilitários
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-dark: #15171C;
  --color-bg: #FFFFFF;
  --color-surface: #F4F5F7;
  --color-primary: #FF5000;
  --color-primary-hover: #E64800;
  --color-accent: #1AAE5A;
  --color-accent-hover: #179B4F;
  --color-odds: #1E8E46;
  --color-live: #E11900;
  --color-text: #15171C;
  --color-muted: #6B7280;
  --color-border: #E6E8EC;
  --color-white: #FFFFFF;
  --color-overlay: rgba(21, 23, 28, 0.85);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --header-height: 64px;
  --mobile-cta-height: 56px;
  --container-max: 1180px;
  --container-narrow: 820px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --- Tipografia --- */
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.5em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.6em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: 0.875rem;
}

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Section --- */
.section {
  padding: 60px 0;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p,
.section--dark li {
  color: rgba(255,255,255,0.88);
}

.section--surface {
  background-color: var(--color-surface);
}

/* --- Grid helpers --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 48px;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255,80,0,0.35);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(26,174,90,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  min-height: 56px;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* --- Card --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card--flat {
  border: none;
  background: var(--color-surface);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.badge--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  background: var(--color-white);
}

/* --- Listas estilizadas --- */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.icon-list .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

/* --- Tabelas --- */
.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: 540px;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.table-responsive th {
  background: var(--color-surface);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

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

.table-responsive tr:hover td {
  background: rgba(26,174,90,0.03);
}

/* --- Disclaimer / Nota --- */
.disclaimer-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 1.5rem 0;
}

.disclaimer-box strong {
  color: var(--color-text);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-live);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* --- Placeholder images --- */
.img-placeholder {
  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: 0.85rem;
  text-align: center;
  padding: 20px;
  min-height: 200px;
}

/* --- Scrollbar para gallery no mobile --- */
.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.gallery-scroll > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 40px 0;
  border: none;
}

.section--dark .divider {
  background: rgba(255,255,255,0.12);
}

/* --- Visually hidden (a11y) --- */
.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;
}

/* --- Utilities --- */
.mb-0  { margin-bottom: 0 !important; }
.mb-1  { margin-bottom: 0.5rem !important; }
.mb-2  { margin-bottom: 1rem !important; }
.mb-3  { margin-bottom: 1.5rem !important; }
.mb-4  { margin-bottom: 2rem !important; }
.mt-0  { margin-top: 0 !important; }
.mt-2  { margin-top: 1rem !important; }
.mt-3  { margin-top: 1.5rem !important; }
.pt-0  { padding-top: 0 !important; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* --- Responsive breakpoint helpers --- */
.mobile-only  { display: block; }
.tablet-up    { display: none; }
.desktop-up   { display: none; }

@media (min-width: 601px) {
  .mobile-only  { display: none !important; }
  .tablet-up    { display: block; }
}

@media (min-width: 1025px) {
  .desktop-up   { display: block; }
}

/* --- Animações de entrada --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    animation: none;
    opacity: 1;
  }
}