/* ==========================================================================
   TSEL STUDIO V1 — LUXURY CINEMATIC AI AUDIOVISUAL IDE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --studio-bg: #070709;
  --studio-surface: #0e0e12;
  --studio-card: #141419;
  --studio-border: #22222a;
  --studio-border-hover: #383844;
  --studio-text: #f4f4f5;
  --studio-muted: #8e8e99;
  --studio-accent: #d4ff00; /* Electric Neon Lime */
  --studio-accent-hover: #e2ff3b;
  --studio-accent-glow: rgba(212, 255, 0, 0.35);
}

.font-editorial {
  font-family: 'Instrument Serif', Georgia, serif;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #070709;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #22222a;
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #383844;
}

/* Neon Lime Buttons & Badges */
.btn-neon-lime {
  background-color: #d4ff00;
  color: #000000;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -4px var(--studio-accent-glow);
}

.btn-neon-lime:hover {
  background-color: #e2ff3b;
  transform: translateY(-1px);
  box-shadow: 0 6px 25px 0 var(--studio-accent-glow);
}

.neon-pts-chip {
  background: #141419;
  border: 1px solid #282832;
  color: #d4ff00;
  transition: all 0.2s ease;
}

.neon-pts-chip:hover {
  border-color: #d4ff00;
  box-shadow: 0 0 15px rgba(212, 255, 0, 0.15);
}

/* Nav Underline Indicator */
.nav-tab-active {
  position: relative;
  color: #ffffff !important;
}

.nav-tab-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #d4ff00;
  border-radius: 1px;
  box-shadow: 0 0 8px #d4ff00;
}

/* Floating Prompt & Director Dock (Screenshot 2) */
.director-prompt-dock {
  background: rgba(14, 14, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #282832;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.director-prompt-dock:focus-within {
  border-color: #3f3f4e;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 255, 0, 0.2);
}

.dock-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: #1c1c24;
  color: #a1a1aa;
  border: 1px solid #2a2a36;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-pill-btn:hover {
  background: #252530;
  color: #ffffff;
  border-color: #404050;
}

.dock-pill-btn.active {
  background: #d4ff00;
  color: #000000;
  font-weight: 700;
  border-color: #d4ff00;
}

/* Camera & Lens Modal (Screenshot 3) */
.camera-modal-backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.camera-modal-card {
  background: #121217;
  border: 1px solid #2a2a36;
  border-radius: 1rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
}

.camera-column-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid #22222c;
  cursor: pointer;
  transition: background 0.15s ease;
}

.camera-column-selector:last-child {
  border-right: none;
}

.camera-column-selector:hover {
  background: #181820;
}

.camera-gear-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease;
}

.camera-column-selector:hover .camera-gear-img {
  transform: scale(1.08);
}

/* Control Pills & Sliders */
.preset-pill {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #22222a;
  background: #111116;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.preset-pill:hover {
  border-color: #383844;
  color: #ffffff;
  background: #16161d;
}

.preset-pill.active {
  border-color: #d4ff00;
  background: #d4ff00;
  color: #000000;
  font-weight: 700;
}

/* Custom Range Slider */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #22222a;
  border-radius: 2px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d4ff00;
  cursor: pointer;
  border: 2px solid #070709;
  box-shadow: 0 0 8px rgba(212, 255, 0, 0.5);
  transition: transform 0.1s ease;
}

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

/* Studio Viewport Frame */
.studio-viewport {
  position: relative;
  background: #000000;
  border: 1px solid #1f1f26;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9);
}

/* Before/After Split Comparison Slider */
.comparison-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.comparison-before,
.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #d4ff00;
  width: 50%;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d4ff00;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 255, 0, 0.5);
  cursor: ew-resize;
  pointer-events: none;
}

/* Audio Visualizer Waves */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
  padding: 0 1rem;
  background: #111116;
  border-radius: 0.375rem;
  border: 1px solid #22222a;
}

.waveform-bar {
  flex: 1;
  background: #3f3f46;
  border-radius: 2px;
  min-height: 4px;
  transition: height 0.1s ease, background 0.2s ease;
}

.waveform-container.playing .waveform-bar {
  background: #d4ff00;
  animation: waveMotion 1s ease-in-out infinite alternate;
}

@keyframes waveMotion {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}
