/* ========================================================================
   Relatório .bet.br - Custom CSS (sobre Tailwind)
   ======================================================================== */

* { box-sizing: border-box; }

html, body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ---------- Glow effects ---------- */

.glow-accent {
  box-shadow: 0 0 20px rgba(74, 96, 240, 0.15), 0 0 60px rgba(74, 96, 240, 0.05);
}
.glow-accent-strong {
  box-shadow: 0 0 30px rgba(74, 96, 240, 0.25), 0 0 80px rgba(74, 96, 240, 0.1);
}
.glow-red {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), 0 0 60px rgba(239, 68, 68, 0.05);
}
.glow-green {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15), 0 0 60px rgba(34, 197, 94, 0.05);
}

/* Neon line decorators */
.neon-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 96, 240, 0.6), rgba(168, 85, 247, 0.4), transparent);
}
.neon-line-red {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), rgba(249, 115, 22, 0.3), transparent);
}
.neon-line-green {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), rgba(6, 182, 212, 0.3), transparent);
}

/* Neon border on hover */
.card-neon:hover {
  border-color: rgba(74, 96, 240, 0.4);
  box-shadow: 0 0 20px rgba(74, 96, 240, 0.08), inset 0 0 20px rgba(74, 96, 240, 0.03);
}

/* ---------- Navigation ---------- */

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9ca3af;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: #e5e7eb;
  background-color: rgba(255,255,255,0.04);
}
.nav-link-active {
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  border: 1px solid rgba(99,102,241,0.2);
}

/* ---------- Cards ---------- */

.card {
  background: linear-gradient(135deg, rgba(21,22,26,1) 0%, rgba(17,17,20,1) 100%);
  border: 1px solid #26272c;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: #3a3b40;
}
.card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.card-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ---------- KPI ---------- */

.kpi-value {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.kpi-card-accent {
  border-color: rgba(74, 96, 240, 0.25);
  background: linear-gradient(135deg, rgba(74, 96, 240, 0.06) 0%, rgba(21,22,26,1) 100%);
}
.kpi-card-red {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(21,22,26,1) 100%);
}
.kpi-card-green {
  border-color: rgba(34, 197, 94, 0.2);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(21,22,26,1) 100%);
}
.kpi-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* ---------- State pills ---------- */

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.state-ok      { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.state-warn    { background: rgba(234,179,8,0.12);  color: #fde047; border: 1px solid rgba(234,179,8,0.25); }
.state-risk    { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.state-bad     { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.state-unknown { background: rgba(107,114,128,0.12); color: #9ca3af; border: 1px solid rgba(107,114,128,0.25); }

/* ---------- Tables ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.data-table th {
  text-align: left;
  padding: 0.75rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #26272c;
  background-color: rgba(15,16,20,0.5);
  position: sticky;
  top: 0;
  z-index: 1;
}
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(38,39,44,0.5);
  color: #d1d5db;
}
.data-table tbody tr:hover {
  background-color: rgba(255,255,255,0.015);
}
.data-table .num {
  text-align: right;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
}

/* ---------- Delta (up/down/zero) ---------- */

.delta-up    { color: #4ade80; }
.delta-down  { color: #f87171; }
.delta-zero  { color: #6b7280; }

/* ---------- Charts wrappers ---------- */

.chart-container {
  width: 100%;
  height: 320px;
  background-color: #15161a;
  border: 1px solid #26272c;
  border-radius: 0.75rem;
  padding: 1rem;
}
.chart-container-sm { height: 240px; }
.chart-container-lg { height: 480px; }

/* ---------- Hero (LP) ---------- */

.hero-gradient {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(74,96,240,0.2), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(168,85,247,0.1), transparent),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(6,182,212,0.08), transparent),
    linear-gradient(to bottom, #0a0a0b 0%, #0d0e12 100%);
}

.hero-grid-bg {
  background-image:
    linear-gradient(to right, rgba(74,96,240,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74,96,240,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  animation: gridPulse 8s ease-in-out infinite;
}

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

/* Floating particles effect */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 12s ease-in-out infinite;
}
.hero-particles::before {
  background: rgba(74, 96, 240, 0.12);
  top: 20%;
  left: 10%;
}
.hero-particles::after {
  background: rgba(168, 85, 247, 0.08);
  bottom: 20%;
  right: 15%;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ---------- External link button ---------- */

.btn-external {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  color: #6b7280;
  border: 1px solid rgba(38,39,44,0.6);
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-external:hover {
  color: #a5b4fc;
  border-color: rgba(74, 96, 240, 0.3);
  background: rgba(74, 96, 240, 0.06);
}
.btn-external svg {
  width: 10px;
  height: 10px;
}

/* ---------- Section headlines ---------- */

.section-headline {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}
.section-headline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #4a60f0, #a855f7);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.badge-primary { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.badge-muted   { background: rgba(107,114,128,0.15); color: #9ca3af; }
.badge-ok      { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-bad     { background: rgba(239,68,68,0.15);  color: #f87171; }

/* ---------- Scrollbar dark ---------- */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0b; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }

/* ---------- Code blocks ---------- */

code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8em;
  background: rgba(255,255,255,0.06);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: #c4b5fd;
}

/* ---------- Responsive mobile ---------- */

@media (max-width: 640px) {
  .kpi-value { font-size: 1.5rem; }
  .card { padding: 1rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.375rem; font-size: 0.6875rem; }
  .chart-container { height: 260px; }
  .chart-container-lg { height: 340px; }
  .nav-link { padding: 0.5rem 0.625rem; font-size: 0.75rem; }
  .hero-gradient h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .kpi-value { font-size: 1.25rem; }
  .state-pill { font-size: 0.625rem; padding: 0.125rem 0.375rem; }
  .badge { font-size: 0.5625rem; }
}

/* Print styles */
@media print {
  body { background: white; color: black; }
  .card { border: 1px solid #ddd; background: white; }
  nav, footer, button, .chart-container { display: none !important; }
  .state-pill { border: 1px solid #999; }
  .data-table th { background: #f5f5f5; }
}

/* ---------- Utility ---------- */

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #26272c, transparent);
  margin: 2rem 0;
}
