/* Course Platform Styles: YouTube Shorts Factory Academy */

:root {
  --color-primary: #ff0055;
  --color-primary-glow: rgba(255, 0, 85, 0.35);
  --color-accent: #00f2fe;
  --color-accent-glow: rgba(0, 242, 254, 0.3);
  --color-amber: #ffd600;
  --bg-dark: #0a0d14;
  --bg-card: rgba(17, 24, 39, 0.75);
  --border-card: rgba(255, 255, 255, 0.1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(255, 0, 85, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255, 0, 85, 0.2);
}

/* Neon Glow Effects */
.glow-red {
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.4);
}
.glow-cyan {
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
}
.glow-text-red {
  text-shadow: 0 0 16px rgba(255, 0, 85, 0.6);
}
.glow-text-cyan {
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.6);
}

/* Custom Range Slider */
input[type=range] {
  -webkit-appearance: none;
  background: #1f2937;
  height: 8px;
  border-radius: 4px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff0055;
  cursor: pointer;
  box-shadow: 0 0 10px #ff0055;
  border: 2px solid #ffffff;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px #ff0055;
}

/* Keyboard Hotkey Styling */
.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
  border-bottom: 2px solid #0284c7;
  border-radius: 0.375rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* LMS Video Mockup Player */
.lms-player-container {
  position: relative;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #374151;
  aspect-ratio: 16 / 9;
}

.lms-player-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

/* Interactive Timeline Scrub Bar */
.scrub-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
}
.scrub-fill {
  height: 100%;
  background: #ff0055;
  border-radius: 3px;
  box-shadow: 0 0 8px #ff0055;
  position: relative;
}
.scrub-thumb {
  position: absolute;
  right: -5px;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ff0055;
}

/* Animated gradient text */
.gradient-fire {
  background: linear-gradient(135deg, #ff0055 0%, #ff5e3a 50%, #ffd600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-cyber {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Tabs Active Indicator */
.tab-active {
  background: rgba(255, 0, 85, 0.15) !important;
  border-color: #ff0055 !important;
  color: #ffffff !important;
}

/* Toast Notification */
#courseToast {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
#courseToast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Pulse animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.8);
  }
}
.pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Mobile & Touch Optimizations */
@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* Offset for sticky mobile bottom bar */
  }
  input[type=range] {
    height: 10px;
  }
  input[type=range]::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }
  .lms-player-container {
    aspect-ratio: 16 / 10;
  }
}

/* Smooth Drawer Transition */
#mobileNavDrawer {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.safe-area-bottom {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

