/* Estilos personalizados para Comando Gaming Cave */

:root {
  --cave-dark: #07090e;
  --cave-card: rgba(15, 23, 42, 0.75);
  --cave-border: rgba(56, 189, 248, 0.18);
  --cave-glow: rgba(56, 189, 248, 0.15);
  
  /* Los 4 Colores Oficiales del Logo de Comando Gaming Cave */
  --cmd-green: #22c55e;   /* Símbolo + */
  --cmd-blue: #2563eb;    /* Símbolo ■ */
  --cmd-yellow: #eab308;  /* Símbolo ▲ */
  --cmd-red: #ef4444;     /* Símbolo ● */
  
  --accent-gold: #fbbf24;
  --accent-cyan: #38bdf8;
  --accent-purple: #c084fc;
  --accent-red: #f87171;
}

body {
  background-color: var(--cave-dark);
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

.font-heading {
  font-family: 'Orbitron', -apple-system, sans-serif;
}

.font-display {
  font-family: 'Rajdhani', sans-serif;
}

/* Cave Ambient Background Grid */
.cave-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.radial-glow-cyan {
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 60%);
}

.radial-glow-purple {
  background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* 4 Brand Colors Gradient Bar */
.brand-4-gradient {
  background: linear-gradient(90deg, #22c55e 0%, #2563eb 33%, #eab308 66%, #ef4444 100%);
}

.brand-glow-symbols {
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.2), 0 0 25px rgba(37, 99, 235, 0.2), 0 0 25px rgba(234, 179, 8, 0.2), 0 0 25px rgba(239, 68, 68, 0.2);
}

/* Glassmorphism Cards */
.logo-glow-card {
  position: relative;
}
.logo-glow-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(59, 130, 246, 0.4), rgba(234, 179, 8, 0.4), rgba(239, 68, 68, 0.4));
  filter: blur(14px);
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.logo-glow-card:hover::before {
  opacity: 0.85;
}

.cave-glass {
  background: rgba(13, 19, 33, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cave-glass-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cave-glass-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 30px -10px rgba(56, 189, 248, 0.2);
}

/* Gold, Silver, Bronze badges for Leaderboard */
.rank-1-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.rank-2-badge {
  background: linear-gradient(135deg, #94a3b8 0%, #e2e8f0 50%, #64748b 100%);
  box-shadow: 0 0 12px rgba(226, 232, 240, 0.3);
}

.rank-3-badge {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #78350f 100%);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.3);
}

/* Animated Neon pulse */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Zoom Transition for Match Detail Modal */
.modal-enter {
  opacity: 0;
  transform: scale(0.92);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 250ms ease-out, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge Shimmer */
.badge-certified {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.15));
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* TCG Active Pill */
.tab-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
  color: #ffffff;
  border-color: #38bdf8;
}

.game-tab-active {
  position: relative;
  font-weight: 700;
}

.game-tab-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
  box-shadow: 0 0 10px #38bdf8;
}
