/* YTCache Studio - Professional Futuristic Design System */

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

:root {
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent-glow: rgba(236, 72, 153, 0.3);
}

/* 3D WebGL Background Canvas */
#bg-3d-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Ambient gradient overlays with high contrast for both modes */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(140px);
  z-index: -5;
  transition: all 0.5s ease;
}

/* Modern Glassmorphic Surfaces with High Contrast */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.95) inset;
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Drawer Surface */
.drawer-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: -15px 0 35px -5px rgba(15, 23, 42, 0.12);
}

.dark .drawer-panel {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 0 45px -5px rgba(0, 0, 0, 0.5);
}

/* Interactive Button Ripple Animation */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-grow 600ms cubic-bezier(0, 0, 0.2, 1);
  background-color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

/* Darker ripple on light buttons */
.btn-light-ripple .ripple-effect {
  background-color: rgba(79, 70, 229, 0.25) !important;
}

@keyframes ripple-grow {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Button Micro-Interactions & Glow */
.btn-primary-action {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.4);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -2px rgba(79, 70, 229, 0.55);
}

.btn-primary-action:active {
  transform: translateY(1px) scale(0.985);
}

.btn-secondary-action {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px -2px rgba(219, 39, 119, 0.4);
}

.btn-secondary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -2px rgba(219, 39, 119, 0.55);
}

.btn-secondary-action:active {
  transform: translateY(1px) scale(0.985);
}

/* Glowing Border Animation */
@keyframes border-glow-cycle {
  0%, 100% { border-color: rgba(99, 102, 241, 0.5); }
  50% { border-color: rgba(236, 72, 153, 0.7); }
}

.active-input-glow:focus-within {
  animation: border-glow-cycle 3s infinite ease-in-out;
  box-shadow: 0 0 30px -4px rgba(99, 102, 241, 0.3);
}

/* Shimmer Sweep Animation */
@keyframes shimmer-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.shimmer-badge {
  position: relative;
  overflow: hidden;
}

.shimmer-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer-sweep 2.8s infinite;
}

/* Resolution Badges with High Contrast in Both Modes */
.badge-4k {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.badge-2k {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.badge-fhd {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.badge-hd {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.badge-sd {
  background: #475569;
  color: #ffffff;
}

/* Navigation Menu Item Hover Transition */
.nav-item {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  transform: translateX(4px);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}
