
/* ============================================
   REFEREE ACADEMIA - Custom Styles
   Paleta: Azul institucional #1e3a8a, Amarillo #fbbf24
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --ra-blue: #1e3a8a;
  --ra-blue-dark: #1e293b;
  --ra-blue-light: #3b82f6;
  --ra-yellow: #fbbf24;
  --ra-yellow-dark: #f59e0b;
  --ra-sky: #0ea5e9;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
}

/* Card hover effects */
.ra-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.ra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Button styles */
.ra-btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ra-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.ra-btn-primary:hover::before {
  left: 100%;
}

.ra-btn-primary:hover {
  box-shadow: 0 10px 30px -5px rgba(30, 58, 138, 0.5);
  transform: translateY(-1px);
}

.ra-btn-yellow {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transition: all 0.3s ease;
}

.ra-btn-yellow:hover {
  box-shadow: 0 10px 30px -5px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}

/* Input focus */
.ra-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

/* Status badges */
.status-pendiente { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.status-confirmado { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.status-rechazado { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-jugado { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Sidebar */
.sidebar-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-item:hover, .sidebar-item.active {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #fbbf24;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Table styles */
.ra-table th {
  background: rgba(30, 58, 138, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.ra-table tr {
  transition: background 0.2s ease;
}

.ra-table tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #1e3a8a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
}

/* Modal */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.1);
}
/* LUZ TITILANTE EN JUEGO */
@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { opacity: 0.6; box-shadow: 0 0 8px 4px rgba(34, 197, 94, 0.4); }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
  animation: pulse-live 1.5s ease-in-out infinite;
}

/* BADGES DE CATEGORÍA */
.badge-cat-futbol-11 {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-cat-futbol-9 {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-cat-futbol-7 {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.badge-cat-futsal {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
