/* ═══════════════════════════════════════════
   LIVES IEQ — main.css
   Variáveis, reset, componentes globais
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }

/* ─── VARIÁVEIS ─── */
:root {
  --blue:        #1a56db;
  --blue-mid:    #2563eb;
  --blue-light:  #3b82f6;
  --blue-bright: #60a5fa;
  --blue-glow:   rgba(37,99,235,0.35);
  --orange:      #f97316;
  --orange-glow: rgba(249,115,22,0.3);
  --bg:          #000000;
  --bg-dark:     #080808;
  --card:        #0d0d0d;
  --border:      #1a1a1a;
  --text:        #e8e8e8;
  --muted:       #5a6070;
  --dim:         #2a2a2a;
}

/* ─── BASE ─── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
  cursor: default;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 2px; }

/* ─── PAGES ─── */
.page { display: none; }
.page.active { display: block; }

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  /* garante que nunca ultrapasse a viewport */
  width: 100%;
  overflow: hidden;
}

.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* impede que filhos fujam da tela */
  min-width: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-logo-texts { min-width: 0; }
.nav-logo-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo-title span { color: #3b82f6; }
.nav-logo-sub {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: -2px;
  font-family: 'Barlow', sans-serif;
  white-space: nowrap;
}

/* Desktop links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 0;
  font-family: 'Barlow', sans-serif;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--blue-light);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.99);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }

/* ═══════════════════════════════════════════
   BOTÕES
═══════════════════════════════════════════ */
.btn-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: 'Barlow', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-orange:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249,115,22,0.45); filter: brightness(1.1); }

.btn-gold {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; padding: 10px 22px; border-radius: 6px;
  cursor: pointer; transition: all 0.25s; border: none;
  font-family: 'Barlow', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249,115,22,0.45); filter: brightness(1.1); }

.btn-blue {
  background: linear-gradient(135deg, #3b82f6, #1a56db);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: 'Barlow', sans-serif;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.55); filter: brightness(1.1); }

.btn-indigo {
  background: linear-gradient(135deg, #3b82f6, #1a56db);
  color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; padding: 12px 28px; border-radius: 8px;
  cursor: pointer; transition: all 0.25s; border: none;
  font-family: 'Barlow', sans-serif;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-indigo:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.55); filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-weight: 500; font-size: 13px;
  padding: 10px 20px; border-radius: 6px;
  cursor: pointer; transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.14);
  font-family: 'Barlow', sans-serif;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

/* ═══════════════════════════════════════════
   COMPONENTES GLOBAIS
═══════════════════════════════════════════ */
.glass {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
}

.grad-blue {
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #1a56db 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-orange {
  background: linear-gradient(135deg, #fdba74 0%, #f97316 60%, #ea580c 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-gold { background: linear-gradient(135deg, #fdba74 0%, #f97316 60%, #ea580c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Badges */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4);
  color: #f87171; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-family: 'Barlow Semi Condensed', sans-serif;
}
.live-dot {
  width: 6px; height: 6px; background: #ef4444; border-radius: 50%;
  animation: pulse-red 1.2s ease-in-out infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.upcoming-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.35);
  color: #60a5fa; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-family: 'Barlow Semi Condensed', sans-serif;
}

/* Section title */
.section-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-bright); font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(96,165,250,0.4), transparent);
}

/* Chip filter */
.chip {
  padding: 6px 16px; border-radius: 100px; font-size: 12px;
  font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
  transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); background: transparent;
  font-family: 'Barlow', sans-serif;
  white-space: nowrap;
}
.chip.active, .chip:hover {
  background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.4);
  color: #60a5fa;
}

/* Video card */
.video-card {
  position: relative; overflow: hidden; border-radius: 10px;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s; background: var(--card);
}
.video-card:hover {
  border-color: rgba(59,130,246,0.4); transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.15);
}
.video-card .thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.video-card .thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.video-card:hover .thumb::after { opacity: 1; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: brightness(0.85); }
.video-card:hover .thumb img { transform: scale(1.05); filter: brightness(0.95); }

.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-circle {
  width: 52px; height: 52px; background: rgba(37,99,235,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); box-shadow: 0 0 30px rgba(37,99,235,0.5);
  transition: transform 0.2s;
}
.video-card:hover .play-circle { transform: scale(1.1); }

/* Progress bar */
.progress-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue-mid), var(--blue-bright)); border-radius: 2px; }

/* Rank */
.rank-bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1a56db, #3b82f6); transition: width 1s ease; }
.rank-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05); transition: all 0.2s; cursor: pointer;
}
.rank-row:hover { background: rgba(255,255,255,0.03); border-color: rgba(59,130,246,0.2); }
.rank-pos { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 18px; font-weight: 600; width: 32px; text-align: center; flex-shrink: 0; }
.rank-1 { color: #fbbf24; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #b45309; }

/* Premio card */
.premio-card {
  position: relative; overflow: hidden; border-radius: 16px;
  padding: 32px; border: 1px solid rgba(255,255,255,0.07); transition: all 0.3s;
}
.premio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
}
.premio-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); border-color: rgba(59,130,246,0.2); }

/* Input */
.iq-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 12px 16px; color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 14px; outline: none; transition: all 0.2s;
}
.iq-input:focus { border-color: rgba(59,130,246,0.5); background: rgba(59,130,246,0.04); box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.iq-input::placeholder { color: var(--muted); }

/* Divider */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }

/* Comment */
.comment-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: fade-up 0.3s ease forwards;
}

/* Player container */
.player-container {
  position: relative; background: #000; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 80px rgba(0,0,0,0.8);
}

/* Stat box */
.stat-box {
  text-align: center; padding: 20px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02);
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.animate-fade-up { animation: fade-up 0.6s ease forwards; }
.animate-fade-in { animation: fade-in 0.4s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* Skeleton */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, #111111 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite; border-radius: 6px;
}

/* Regulamento */
.regulamento-card {
  border-radius: 16px;
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(10,10,10,0.9);
  position: relative; overflow: hidden; transition: all 0.3s;
}
.regulamento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0;
}
.regulamento-card.blue::before { background: linear-gradient(90deg, #1a56db, #3b82f6, transparent); }
.regulamento-card.orange::before { background: linear-gradient(90deg, #f97316, #fdba74, transparent); }
.regulamento-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }

.req-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.req-item:last-child { border-bottom: none; padding-bottom: 0; }
.req-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.req-icon.blue { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.2); }
.req-icon.orange { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.2); }
