/**
 * LANDING.CSS - Visual Styles Only
 * Layout controlled by landing.js (JavaScript)
 */

/* =================================================================
   BASE STYLES
   ================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg-primary, #0a0a0a);
  font-family: var(--font-family, Helvetica, sans-serif);
}

/* =================================================================
   VIDEO SECTION
   ================================================================= */

.landing-video {
  overflow: hidden;
}

.landing-video video {
  width: 100%;
  height: 100%;
  object-fit: var(--video-object-fit, cover);
}

/* =================================================================
   SIDEBAR SECTION
   ================================================================= */

.landing-sidebar {
  position: relative;
  background: var(--color-bg-secondary, #1a1a1a);
}

/* =================================================================
   ARTIST NAVIGATION
   ================================================================= */

.artist-nav {
  /* Internal layout only */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--qt-gap, 10px);
  
  /* Overflow handling */
  overflow-y: auto;
  overflow-x: hidden;
  
  /* Spacing */
  padding: 0 var(--qt-padding, 20px);
  
  /* Layering */
  z-index: 1;
  
  /* Smooth scrolling */
  scroll-behavior: smooth;
  
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 155, 204, 0.3) transparent;
}

.artist-nav::-webkit-scrollbar {
  width: 4px;
}

.artist-nav::-webkit-scrollbar-track {
  background: transparent;
}

.artist-nav::-webkit-scrollbar-thumb {
  background-color: rgba(14, 155, 204, 0.3);
  border-radius: 2px;
}

.artist-nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(14, 155, 204, 0.5);
}

/* =================================================================
   ARTIST LINKS
   ================================================================= */

.artist-link {
  /* Visual styling */
  color: var(--color-accent, #0e9bcc);
  text-decoration: none;
  cursor: pointer;
  
  /* Typography */
  font-size: var(--qt-font-size, 15px);
  font-weight: var(--qt-font-weight, 100);
  letter-spacing: var(--qt-letter-spacing, 0.8px);
  
  /* Prevent shrinking */
  flex-shrink: 0;
  
  /* Entrance animation */
  opacity: 0;
  transform: translateX(calc(-1 * var(--qt-slide-distance, 10px)));
  transition: all 0.3s ease;
  animation: slideIn 0.6s ease-out forwards;
}

/* Staggered animation delays */
.artist-link:nth-child(1) { animation-delay: 0.1s; }
.artist-link:nth-child(2) { animation-delay: 0.2s; }
.artist-link:nth-child(3) { animation-delay: 0.3s; }
.artist-link:nth-child(4) { animation-delay: 0.4s; }
.artist-link:nth-child(5) { animation-delay: 0.5s; }
.artist-link:nth-child(6) { animation-delay: 0.6s; }
.artist-link:nth-child(7) { animation-delay: 0.7s; }
.artist-link:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover state */
.artist-link:hover {
  color: var(--color-accent-hover, #48BBD8);
  letter-spacing: var(--qt-letter-spacing-hover, 3px);
  transform: translateX(var(--qt-hover-distance, 5px));
}

/* Focus state (accessibility) */
.artist-link:focus {
  outline: 2px solid var(--color-accent, #0e9bcc);
  outline-offset: 2px;
}

/* Active state */
.artist-link:active {
  transform: translateX(calc(var(--qt-hover-distance, 5px) / 2));
}

/* =================================================================
   STACK MODE (for mobile - this works, keep it)
   ================================================================= */

[data-mode="stack"] body {
  display: flex;
  flex-direction: column;
}

[data-mode="stack"] .landing-video {
  width: 100%;
  height: var(--video-height-mobile, 60vh);
}

[data-mode="stack"] .landing-sidebar {
  width: 100%;
  height: var(--sidebar-height-mobile, 40vh);
}

[data-mode="stack"] .artist-nav {
  padding-top: var(--qt-padding, 20px);
}

[data-mode="stack"] .artist-link {
  font-size: var(--qt-font-size-mobile, 18px);
}

/* =================================================================
   ORIENTATION ADAPTATIONS
   ================================================================= */

[data-orientation="portrait"] .artist-nav {
  gap: calc(var(--qt-gap, 10px) * 1.5);
}

/* =================================================================
   DEBUG MODE
   ================================================================= */

[data-debug="true"] .artist-nav {
  outline: 2px dashed rgba(0, 255, 0, 0.5);
  outline-offset: -2px;
}

[data-debug="true"] .artist-nav::before {
  content: 'Artist Nav (RatioPosition)';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 10px;
  color: lime;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 1000;
}