/* NLE Theme Color Variables */
:root {
  --color-obsidian: #0D0D12;
  --color-purpleAccent: #6b5cb1;
  --color-purpleLight: #a38be6;
  --color-ivory: #FAF8F5;
  --color-deepPurple: #30215e;
  --color-surfaceMuted: #111116;
  --color-surfacePanel: #0a0a0e;
  --color-textMuted: #9ca3af;
  --color-textDisabled: #4b5563;
  --color-bgHover: rgba(255, 255, 255, 0.05);
  --color-bgSelect: rgba(255, 255, 255, 0.1);
  /* Explicit Opacity Replacements */
  --color-menuDivider: #45357a;
  --color-borderLight: #2d1f5a;
  --color-borderFaint: #1f153d;
  --color-trackBg: #0c0c10;
  --color-modalBg: rgba(10, 10, 14, 0.85);
}

[data-theme="light"] {
  --color-obsidian: #d1d5db;
  --color-purpleAccent: #6b5cb1;
  --color-purpleLight: #4a3b8c;
  --color-ivory: #1f2937;
  --color-deepPurple: #9ca3af;
  --color-surfaceMuted: #e5e7eb;
  --color-surfacePanel: #f3f4f6;
  --color-textMuted: #4b5563;
  --color-textDisabled: #9ca3af;
  --color-bgHover: rgba(0, 0, 0, 0.05);
  --color-bgSelect: rgba(0, 0, 0, 0.1);
  /* Explicit Opacity Replacements */
  --color-menuDivider: #d8b4fe;
  --color-borderLight: #d1d5db;
  --color-borderFaint: #e5e7eb;
  --color-trackBg: #ffffff;
  --color-modalBg: rgba(243, 244, 246, 0.95);
}

/* NLE-specific custom styling */
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Custom Scrollbars to look like NLE UI */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0e;
  border-left: 1px solid #30215e;
}

::-webkit-scrollbar-thumb {
  background: #30215e;
  border-radius: 4px;
  border: 2px solid #0a0a0e;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b5cb1;
}

::-webkit-scrollbar-corner {
  background: #0a0a0e;
}

/* Utilities */
.text-stroke {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  color: transparent;
}

/* NLE Clip Blocks Animations */
@keyframes scanning {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }

  50.1% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

.clip-block:active {
  filter: brightness(1.2);
  transform: scale(0.995);
}

/* Playhead interaction */
#playhead {
  pointer-events: none;
}

/* Draggable UI feel (cursor) */
.draggable {
  cursor: grab;
}

.draggable:active {
  cursor: grabbing;
}

/* Custom Range Slider */
.custom-range::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #6b5cb1;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Attract Mode Pulse */
@keyframes attractPulsePlay {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 92, 177, 0.7);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(107, 92, 177, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(107, 92, 177, 0);
  }
}

.attract-pulse {
  animation: attractPulsePlay 2.5s infinite;
}

/* Splash Screen Filmstrip Animation */
@keyframes scrollFilmstrip {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-filmstrip {
  animation: scrollFilmstrip 15s linear infinite;
  width: max-content;
}

#splash-filmstrip-wrapper::before,
#splash-filmstrip-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  background-image: linear-gradient(90deg, var(--color-obsidian) 8px, transparent 8px);
  background-size: 16px 100%;
  z-index: 10;
}

#splash-filmstrip-wrapper::before {
  top: 0;
}

#splash-filmstrip-wrapper::after {
  bottom: 0;
}