/* ============================================================
   PORTAL MAYER PRODUTORA — Design System
   Tokens, reset, tipografia e componentes globais
============================================================ */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ===== TOKENS ===== */
:root {
  /* Cores base */
  --bg-deep: #0A0A0F;
  --bg-surface: #13131A;
  --bg-elevated: #1C1C26;
  --bg-hover: #24242E;

  /* Ouro Mayer */
  --gold-primary: #D4AF37;
  --gold-soft: #E8C66B;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-dim: rgba(212, 175, 55, 0.15);

  /* Acentos */
  --accent-cinema: #E50914;
  --accent-success: #2ECC71;
  --accent-warning: #F5A623;
  --accent-info: #4A90E2;

  /* Texto */
  --text-primary: #F5F5F7;
  --text-secondary: #C7C7CC;
  --text-muted: #8E8E93;
  --text-disabled: #5A5A60;

  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(212, 175, 55, 0.4);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 24px rgba(212, 175, 55, 0.25);

  /* Tipografia */
  --font-display: 'Bebas Neue', 'Anton', sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Espaçamento */
  --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;

  /* Raios */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Easing cinematográfico */
  --ease-cinema: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-smooth);
}

ul, ol {
  list-style: none;
}

/* ===== TIPOGRAFIA UTIL ===== */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

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

.tracking-wide { letter-spacing: 0.08em; }
.tracking-wider { letter-spacing: 0.16em; }
.uppercase { text-transform: uppercase; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-cinema);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--gold-primary);
  color: #1A1500;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ===== INPUTS ===== */
.input,
.textarea,
.select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all 0.2s var(--ease-smooth);
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px var(--gold-dim);
}

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

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: all 0.3s var(--ease-cinema);
}

.card-hover:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge-gold {
  background: var(--gold-dim);
  color: var(--gold-soft);
  border: 1px solid var(--border-gold);
}

.badge-success {
  background: rgba(46, 204, 113, 0.15);
  color: var(--accent-success);
}

.badge-warning {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-warning);
}

.badge-muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

/* ===== CHIPS ===== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.chip:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.chip.active {
  background: var(--gold-dim);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ===== PROTOTIPO NAV (barrinha superior fixa) ===== */
.proto-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 6px;
  display: flex;
  gap: 4px;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.proto-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.proto-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.proto-nav a.current {
  background: var(--gold-primary);
  color: #1A1500;
}

.proto-nav .sep {
  width: 1px;
  background: var(--border-subtle);
  margin: 4px 4px;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 12px var(--gold-glow); }
  50% { box-shadow: 0 0 32px var(--gold-glow), 0 0 64px var(--gold-glow); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.animate-fade-up { animation: fadeUp 0.8s var(--ease-cinema) backwards; }
.animate-fade-in { animation: fadeIn 0.6s var(--ease-smooth) backwards; }

/* delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

/* ===== UTILS ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.hidden { display: none !important; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
