/**
 * TO NA TELA ESPORTE - DESIGN TOKENS
 * Baseado estritamente em SKILL/DESIGN.md
 * Estetica: "O placar e a camera" (Dark-first, inspirado em transmissao esportiva)
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,800;1,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Cores fundamentais */
  --ink: #0A0A0B;
  --surface-1: #121214;
  --surface-2: #1B1B1F;
  --line: #2A2A30;
  
  /* Textos no modo escuro */
  --text: #F5F5F2;
  --text-2: #A1A1A8;
  --text-3: #80808A;
  
  /* Faixa Paper (leitura clara) */
  --paper: #F4F4F0;
  --paper-line: #DEDED8;
  --paper-text: #0A0A0B;
  --paper-text-2: #54545C;
  
  /* Acentos de marca */
  --lime: #C8F31D;
  --lime-press: #A8D10F;
  --rec: #FF3B30;
  --success: #3DDC84;
  --warning: #FFB020;
  --whatsapp: #25D366;
  
  /* Tipografia */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  
  /* Raios de borda */
  --radius-chip: 9999px;
  --radius-button: 9999px;
  --radius-input: 12px;
  --radius-thumb: 16px;
  --radius-card: 20px;
  
  /* Transições suaves sem excessos */
  --ease-sports: cubic-bezier(.2, .8, .2, 1);
  --transition-fast: 150ms var(--ease-sports);
  --transition-normal: 250ms var(--ease-sports);
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tipografia de Alta Performance */
.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 11vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 0.95;
  text-transform: uppercase;
}

.heading-card {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mono-timecode {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Utilitários de Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Botões do Sistema (Pílulas Nike / Motorsport) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .btn-pill {
    height: 48px;
    padding: 0 22px;
    font-size: 14px;
  }
}

.btn-pill:active {
  transform: scale(0.98);
}

.btn-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--lime);
}

/* Variantes de Botão */
.btn-lime {
  background-color: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn-lime:hover {
  background-color: var(--lime-press);
  border-color: var(--lime-press);
  color: var(--ink);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text);
  border-color: rgba(245, 245, 242, 0.35);
}

.btn-outline-light:hover {
  background-color: var(--surface-2);
  border-color: var(--text);
  color: var(--text);
}

.btn-dark {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-dark:hover {
  background-color: var(--surface-2);
  color: #FFFFFF;
}

/* Indicador REC Oficial */
.rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rec);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
  animation: recPulse 1.4s infinite ease-in-out;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .rec-dot {
    animation: none;
  }
}

/* Inputs Padronizados */
.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--lime);
}

.form-input::placeholder {
  color: var(--text-3);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 28px;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-floating:hover {
  transform: scale(1.06);
  background-color: #20BA5A;
}

.whatsapp-floating:active {
  transform: scale(0.96);
}
