/* site.css — xSONICxPT (build estático, sem esbuild/Astro)
   Inclui o design-system (Fase 2) + utilitários usados nas páginas. */

/* ===== Design system (variáveis + base) ===== */
:root {
  --color-bg: #0A0A0C;
  --color-surface: #141418;
  --color-surface-lift: #1E1E26;
  --color-border: #2A2A30;
  --color-border-focus: #00F2FF;
  --color-text: #E8E8EA;
  --color-text-muted: #8E8E96;
  --color-neon-cyan: #00F2FF;
  --color-neon-red: #FF0055;
  --color-neon-magenta: #FF00CC;
  --color-neon-green: #00FF41;

  --font-display: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 4rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-snug: 1.375;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-neon: 0 0 16px rgba(0, 242, 255, 0.35);
  --shadow-neon-red: 0 0 16px rgba(255, 0, 85, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  line-height: var(--leading-normal);
  scroll-behavior: smooth;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p { margin-bottom: var(--space-4); }
a { color: var(--color-neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--color-border);
}
.footer {
  border-top: 1px solid var(--color-border);
}

/* ===== Espaçamento ===== */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: var(--space-7); }
.mb-16 { margin-bottom: 64px; }
.pt-2 { padding-top: var(--space-2); }
.pt-4 { padding-top: var(--space-4); }
.pt-10 { padding-top: 40px; }
.pt-12 { padding-top: 48px; }
.pb-6 { padding-bottom: var(--space-6); }
.pb-12 { padding-bottom: 48px; }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.pl-6 { padding-left: 24px; }

/* ===== Flex / Grid ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.grid { display: grid; gap: var(--space-4); }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ===== Tamanhos ===== */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-16 { width: 4rem; }
.w-28 { width: 7rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-16 { height: 4rem; }
.h-28 { height: 7rem; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* ===== Cores texto ===== */
.text-text { color: var(--color-text); }
.text-text-muted { color: var(--color-text-muted); }
.text-neon-cyan { color: var(--color-neon-cyan); }
.text-neon-red { color: var(--color-neon-red); }
.text-white { color: #FFFFFF; }
.text-\[\#0a0a0c\], .text-dark { color: #0A0A0C; }

/* ===== Cores fundo ===== */
.bg-bg { background-color: var(--color-bg); }
.bg-bg\/80 { background-color: rgba(10, 10, 12, 0.8); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-lift { background-color: var(--color-surface-lift); }
.bg-border { background-color: var(--color-border); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-neon-cyan { background-color: var(--color-neon-cyan); }
.bg-neon-red { background-color: var(--color-neon-red); }

/* ===== Bordas ===== */
.border { border: 1px solid var(--color-border); }
.border-border { border-color: var(--color-border); }
.border-b { border-bottom-width: 1px; }
.border-neon-cyan { border-color: var(--color-neon-cyan); }
.border-neon-red { border-color: var(--color-neon-red); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }

/* ===== Tipografia ===== */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.font-medium { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold { font-weight: var(--fw-bold); }
.font-black { font-weight: var(--fw-black); }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-snug { line-height: var(--leading-snug); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ===== Posição ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.left-2 { left: 0.5rem; }
.bottom-2 { bottom: 0.5rem; }
.right-2 { right: 0.5rem; }
.z-50 { z-index: 50; }
.backdrop-blur { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ===== Componentes ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:hover { border-color: var(--color-neon-cyan); box-shadow: var(--shadow-neon); }
.btn:focus-visible { outline-color: var(--color-border-focus); box-shadow: var(--shadow-neon); }
.btn-primary {
  background: var(--color-neon-cyan);
  color: #0A0A0C;
  border-color: var(--color-neon-cyan);
}
.btn-primary:hover { background: #33f8ff; }
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.btn-social:hover { border-color: var(--color-neon-magenta); box-shadow: var(--shadow-neon); }

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}
.player-wrap iframe { width: 100%; height: 100%; display: block; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-border);
  display: block;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Estados ===== */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: pulse 1.2s infinite linear;
  border-radius: var(--radius);
}
.empty-state, .error-state, .loading-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
}
.empty-state h2, .error-state h2 { color: var(--color-text); margin-bottom: var(--space-2); }
@keyframes pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton { animation: none; opacity: 0.6; }
}

/* ===== Utilitários adicionais usados nas páginas ===== */
.min-h-screen { min-height: 100vh; }
.font-display { font-family: var(--font-display); }
.border-neon-magenta { border-color: var(--color-neon-magenta); }
.transition-colors { transition: color 0.2s, background-color 0.3s, border-color 0.3s; }
.text-\[10px\] { font-size: 10px; }
.tracking-wider { letter-spacing: 0.05em; }
.flex-1 { flex: 1 1 0%; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.flex-row { flex-direction: row; }
.items-end { align-items: flex-end; }
.min-w-0 { min-width: 0; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.bg-neon-red\/10 { background-color: rgba(255, 0, 85, 0.1); }
.text-6xl { font-size: var(--text-6xl); }
.tracking-tight { letter-spacing: -0.025em; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-7 { grid-column: span 7; }
.col-span-5 { grid-column: span 5; }
.border-t { border-top-width: 1px; }
.border-collapse { border-collapse: collapse; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.bg-surface-lift\/50 { background-color: rgba(30, 30, 38, 0.5); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gap-3 { gap: 12px; }
.group { position: relative; }
.scale-110 { transform: scale(1.1); }
.transition-transform { transition: transform 0.3s; }
.duration-300 { transition-duration: 0.3s; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.scale-105 { transform: scale(1.05); }
.mb-1 { margin-bottom: 4px; }
.text-\[16px\] { font-size: 16px; }
.ml-2 { margin-left: 8px; }
.gap-10 { gap: 40px; }
.col-span-2 { grid-column: span 2; }
.space-y-4 > * + * { margin-top: 16px; }
.w-20 { width: 5rem; }

/* design-system.css — xSONICxPT design system (Fase 2, UI/UX Gamer) */
/* Dark/neon esports. CSS puro, sem framework. Variáveis + classes de base. */

/* ===== Tokens de cor (8 tons da paleta) ===== */
:root {
  --color-bg: #0A0A0C;
  --color-surface: #141418;
  --color-surface-lift: #1E1E26;
  --color-border: #2A2A30;
  --color-border-focus: #00F2FF;
  --color-text: #E8E8EA;
  --color-text-muted: #8E8E96;
  --color-neon-cyan: #00F2FF;
  --color-neon-red: #FF0055;
  --color-neon-magenta: #FF00CC;
  --color-neon-green: #00FF41;

  /* ===== Tipografia (2 famílias, Google Fonts, display=swap) ===== */
  --font-display: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* ===== Escala de texto ===== */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 4rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ===== Escala de espaçamento: 4/8/12/16/24/32/48/64/96 ===== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ===== Raio de canto ===== */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ===== Animações ===== */
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 500ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ===== Sombras neon ===== */
  --shadow-neon: 0 0 16px rgba(0, 242, 255, 0.35);
  --shadow-neon-red: 0 0 16px rgba(255, 0, 85, 0.35);
}

/* ===== Reset e base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  line-height: var(--leading-normal);
  scroll-behavior: smooth;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== Tipografia ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p { margin-bottom: var(--space-4); }

a {
  color: var(--color-neon-cyan);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ===== Foco visível (obrigatório em todos os interativos) ===== */
:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--color-border);
}
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

/* ===== Componentes base ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.btn:hover {
  border-color: var(--color-neon-cyan);
  box-shadow: var(--shadow-neon);
}
.btn:focus-visible {
  outline-color: var(--color-border-focus);
  box-shadow: var(--shadow-neon);
}
.btn-primary {
  background: var(--color-neon-cyan);
  color: #0A0A0C;
  border-color: var(--color-neon-cyan);
}
.btn-primary:hover { background: #33f8ff; }
.btn-danger {
  background: var(--color-neon-red);
  color: #FFFFFF;
  border-color: var(--color-neon-red);
}
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.btn-social:hover { border-color: var(--color-neon-magenta); box-shadow: var(--shadow-neon); }

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}
.player-wrap iframe { width: 100%; height: 100%; display: block; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-border);
  display: block;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid {
  display: grid;
  gap: var(--space-4);
}
.flex {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.flex-col {
  flex-direction: column;
}

/* ===== Utilitários de espaçamento ===== */
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.p-4 { padding: var(--space-4); }

/* ===== Estados ===== */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: pulse 1.2s infinite linear;
  border-radius: var(--radius);
}
.empty-state, .error-state, .loading-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
}
.empty-state h2, .error-state h2 { color: var(--color-text); margin-bottom: var(--space-2); }

@keyframes pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== prefers-reduced-motion: desliga animações ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton { animation: none; opacity: 0.6; }
}
