/* Tokens de marca compartilhados entre o feed (convidado) e o admin — portados de
 * app-feed/src/styles/tokens.css e app-admin/src/styles/tokens.css do protótipo React original.
 * --accent/--accent-contrast/--bg/--surface/--surface-2 por evento são definidos inline no layout
 * Blade (a partir de acento_hex/tema), então aqui só ficam os valores padrão + o que não muda.
 */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/fonts/CabinetGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0B10;
  --surface: #15171F;
  --surface-2: #1D202B;
  --text: #F2F1ED;
  --text-secondary: #9195A3;
  --accent: #FF6B4A;
  --accent-contrast: #0A0B10;
  --success: #3FBF8F;
  --error: #E8524A;

  --font-display: 'Cabinet Grotesk', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.evt-ao-vivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--error);
}

.evt-ao-vivo::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error);
  animation: evt-pulso 1.8s ease-in-out infinite;
}

@keyframes evt-pulso {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.evt-coracao-pop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(48px, 25vw, 96px);
  pointer-events: none;
  animation: evt-coracao 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes evt-coracao {
  0% { transform: scale(0.3); opacity: 0; }
  30% { transform: scale(1.15); opacity: 1; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

[x-cloak] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
