/*
 * Pro Station — main.css
 * Arquivo de estilos base e animações customizadas.
 * Complementa o Tailwind CSS com efeitos que não existem
 * nas classes utilitárias padrão.
 *
 * Regra: estilo_visual.md — Dark Mode obrigatório,
 *        neon limpo, tipografia tech.
 * Regra: skill.md §2 — PROIBIDO <style> inline no HTML.
 */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=JetBrains+Mono:wght@400;600&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #09090b; /* zinc-950 */
  color: #f4f4f5;            /* gray-100 */
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Fonte Mono para Dados ────────────────────────────── */
.font-data {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ── Gradiente de Fundo Animado ───────────────────────── */
.bg-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(16, 185, 129, 0.10) 0%, transparent 70%),
    #09090b;
}

/* ── Efeito Neon Glow no Título ───────────────────────── */
.glow-text {
  text-shadow:
    0 0 20px rgba(99, 102, 241, 0.6),
    0 0 60px rgba(99, 102, 241, 0.3);
}

/* ── Linha decorativa neon ────────────────────────────── */
.neon-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #10b981, transparent);
  border: none;
  border-radius: 999px;
}

/* ── Botão Principal (CTA) ───────────────────────────── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow:
    0 0 20px rgba(99, 102, 241, 0.45),
    0 0 60px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

/* ── Cards de Feature ─────────────────────────────────── */
.feature-card {
  background: #18181b; /* zinc-900 */
  border: 1px solid #27272a; /* zinc-800 */
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: #1c1c21;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

/* ── Badge de Status Online ───────────────────────────── */
.badge-online {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981; /* emerald-500 */
  letter-spacing: 0.05em;
}

.badge-online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Stat Card ────────────────────────────────────────── */
.stat-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 600;
  color: #a5b4fc; /* indigo-300 */
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: #71717a; /* zinc-500 */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ── Animações ───────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.animate-fade-up {
  animation: fade-up 0.7s ease forwards;
}

.animate-fade-up-delay-1 { animation: fade-up 0.7s ease 0.15s both; }
.animate-fade-up-delay-2 { animation: fade-up 0.7s ease 0.30s both; }
.animate-fade-up-delay-3 { animation: fade-up 0.7s ease 0.45s both; }
.animate-fade-up-delay-4 { animation: fade-up 0.7s ease 0.60s both; }

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ── Scanline decorativa (estética gamer) ─────────────── */
.scanline-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Divider decorativo ───────────────────────────────── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 999px;
  margin: 0 auto 1.5rem auto;
}

/* ── Nav ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.7);
}

/* ── Footer ──────────────────────────────────────────── */
.footer-text {
  font-size: 0.8rem;
  color: #52525b; /* zinc-600 */
}

/* ── CTA Gradient Card (index.html) ──────────────────── */
.cta-gradient-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 120%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD — Hero com Background Dinâmico
   regras_negocio.md §3: background = capa do jogo top 1
   Aplicado via JS (dashboard.js) usando data-cover attribute.
   skill.md §2: ZERO style inline no HTML.
   ══════════════════════════════════════════════════════════ */
.dashboard-hero-wrapper {
  position: relative;
  min-height: 100vh;
}

.dashboard-bg-cover {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* URL injetada via JS — nunca via style="..." inline */
  transition: opacity 0.8s ease;
  opacity: 0;
}

.dashboard-bg-cover.loaded {
  opacity: 1;
}

.dashboard-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  /* Escurece fortemente para manter legibilidade do texto */
  background: linear-gradient(
    135deg,
    rgba(9, 9, 11, 0.92) 0%,
    rgba(9, 9, 11, 0.85) 50%,
    rgba(9, 9, 11, 0.88) 100%
  );
}
