/* HoYoverse Modern Theme for TopSpeedBoost */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@600;800&family=Poppins:wght@500;600;700&display=swap');

:root {
  --hy-bg-dark: #070913;
  --hy-card-bg: rgba(15, 23, 42, 0.75);
  --hy-card-border: rgba(99, 102, 241, 0.2);
  --hy-glow-genshin: rgba(99, 102, 241, 0.4);
  --hy-glow-hsr: rgba(168, 85, 247, 0.4);
  --hy-glow-zzz: rgba(234, 179, 8, 0.4);
  --hy-glow-wuwa: rgba(34, 197, 94, 0.4);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--hy-bg-dark);
  color: #f1f5f9;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

.font-game {
  font-family: 'Orbitron', 'Poppins', sans-serif;
  letter-spacing: 0.05em;
}

/* Glassmorphism containers */
.hy-glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hy-glass-nav {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.hy-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Game Gradients & Glows */
.gacha-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

.hy-gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Custom Range Sliders */
input[type=range].hy-slider {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range].hy-slider:focus {
  outline: none;
}

input[type=range].hy-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

input[type=range].hy-slider::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #a855f7);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.8);
  transition: transform 0.15s ease;
}

input[type=range].hy-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Number inputs without spinners */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type="number"] { 
    -moz-appearance: textfield; 
}

/* Sidebar navigation */
.sidebar-link {
  transition: all 0.2s ease;
  border-radius: 0.875rem;
}
.sidebar-link:hover {
  background-color: rgba(30, 41, 59, 0.7);
  color: #ffffff;
  transform: translateX(3px);
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.1) 100%);
  color: #ffffff;
  border-left: 3px solid #818cf8;
}

/* Badges */
.hy-badge-genshin { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.hy-badge-hsr { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.hy-badge-zzz { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.hy-badge-wuwa { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }

/* Modal animation */
.modal-pop {
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}
