/* BattleCat Ultra Modern UI/UX Design System */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121824;
  --bg-card: #1a2234;
  --bg-card-hover: #242f47;
  
  --border-color: rgba(255, 255, 255, 0.12);
  --border-active: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Premium Rarity Palette */
  --rarity-rare: #94a3b8;
  --rarity-supa: #fbbf24;
  --rarity-uber: #ef4444;
  --rarity-legend: #c084fc;

  --rarity-uber-bg: rgba(239, 68, 68, 0.18);
  --rarity-legend-bg: rgba(192, 132, 252, 0.22);
  --rarity-supa-bg: rgba(251, 191, 36, 0.18);

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 0%, #172033 0%, #0a0e17 75%) fixed !important;
  color: #f8fafc !important;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Hide Horizontal Scrollbar for Navbar on Mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Panels & Cards */
.glass-panel {
  background: rgba(18, 24, 36, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
  background: rgba(26, 34, 52, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
  background: rgba(36, 47, 71, 0.9) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0e17;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Rarity Badges & Glow Borders */
.badge-uber {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.35)) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.badge-legend {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.35)) !important;
  color: #f0abfc !important;
  border: 1px solid rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.badge-supa {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3)) !important;
  color: #fde047 !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
}

.badge-rare {
  background: rgba(51, 65, 85, 0.6) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(71, 85, 105, 0.6) !important;
}

/* Track Table Cell Highlight */
.cell-uber {
  background: rgba(239, 68, 68, 0.15) !important;
  border-left: 3px solid #ef4444 !important;
}

.cell-legend {
  background: rgba(168, 85, 247, 0.2) !important;
  border-left: 3px solid #a855f7 !important;
}

.cell-supa {
  background: rgba(245, 158, 11, 0.12) !important;
  border-left: 3px solid #f59e0b !important;
}

/* Tab Button Transition */
.tab-btn {
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Touch Friendly Utilities for Mobile */
@media (max-width: 640px) {
  .glass-panel {
    border-radius: 16px;
  }

  table {
    font-size: 11px;
  }
}
.cell-uber {
  background: rgba(239, 68, 68, 0.2) !important;
  border-left: 4px solid #ef4444 !important;
}

.cell-legend {
  background: rgba(168, 85, 247, 0.25) !important;
  border-left: 4px solid #a855f7 !important;
}

.cell-supa {
  background: rgba(245, 158, 11, 0.15) !important;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Rarity Badges & Borders */
.badge-uber {
  background: var(--rarity-uber-bg);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.badge-legend {
  background: var(--rarity-legend-bg);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.badge-supa {
  background: var(--rarity-supa-bg);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-rare {
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Track Table Cell Highlight */
.cell-uber {
  background: rgba(239, 68, 68, 0.12) !important;
  border-left: 3px solid #ef4444 !important;
}

.cell-legend {
  background: rgba(168, 85, 247, 0.15) !important;
  border-left: 3px solid #a855f7 !important;
}

.cell-supa {
  background: rgba(245, 158, 11, 0.08) !important;
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
