/* ==========================================================================
   SportsDatos.com - Hoja de Estilos Oficial
   Diseño Ultra-Limpio, Minimalista y Profesional
   ========================================================================== */

/* Variables de Color y Tema */
:root {
  --bg-main: #07090e;
  --bg-surface: #0c101a;
  --bg-card: rgba(13, 18, 30, 0.7);
  --bg-card-hover: rgba(18, 25, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(16, 185, 129, 0.4);
  
  --brand-green: #10b981;
  --brand-green-hover: #059669;
  --accent-blue: #0ea5e9;
  --accent-amber: #f59e0b;
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

/* Reset y Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar refinado */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green);
}

/* Fondos limpios y sutiles */
.bg-subtle-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.bg-ambient-light {
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.09), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(14, 165, 233, 0.05), transparent 60%);
}

/* Paneles y Tarjetas Glassmorphism Minimalistas */
.glass-nav {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.glass-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Marquesina de Resultados (Live Ticker) */
@keyframes tickerSlide {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
}

.ticker-move {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: tickerSlide 45s linear infinite;
  will-change: transform;
}

.ticker-wrap:hover .ticker-move {
  animation-play-state: paused;
}

/* Botones con estilo ejecutivo */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #10b981;
  color: #05080e;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-solid:hover {
  background: #34d399;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  color: #ffffff;
}

/* Pestañas Interactivas (Tabs) */
.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  color: var(--brand-green);
  border-bottom-color: var(--brand-green);
  background: rgba(16, 185, 129, 0.06);
}

/* Pastillas de Selección */
.pill-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: #0d121d;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-badge:hover {
  color: #ffffff;
  border-color: var(--border-hover);
}

.pill-badge.active {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

/* Tablas Limpias */
.clean-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.clean-table th {
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}

.clean-table td {
  padding: 0.9rem 1rem;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.clean-table tr:last-child td {
  border-bottom: none;
}

.clean-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* Modal Minimalista */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #0c101a;
  border: 1px solid var(--border-hover);
  border-radius: 1.25rem;
  max-width: 30rem;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

/* Controles de Formulario */
.input-clean {
  width: 100%;
  background: #07090e;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-size: 0.825rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-clean:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}
