/* EQX Labs — studio.css | Studio page & stage viewer styles */

/* ===== STUDIO PAGE SCROLL CANVAS ANIMATION STYLES ===== */
.hero-track {
  height: 420vh;
  position: relative;
  background: var(--eqx-dark-bg);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 6vw, 80px);
  pointer-events: none;
  z-index: 5;
}

.hero-phase {
  position: absolute;
  left: clamp(24px, 6vw, 80px);
  bottom: clamp(24px, 8vh, 96px);
  max-width: 38ch;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.hero-phase.on {
  opacity: 1;
  transform: translateY(0);
}

.hero-phase .phase-kicker {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--eqx-accent);
  margin-bottom: 12px;
}

.hero-phase h1, .hero-phase h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #F5F2EC;
}

.hero-phase.dark-text h2, .hero-phase.dark-text h1 {
  color: #14181C;
}

.hero-phase.dark-text .phase-kicker {
  color: #D96F0F;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--eqx-text-light);
  opacity: 0.8;
  transition: opacity 0.4s ease;
  animation: bounceArrow 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 6;
}

.hero-scroll-hint.off {
  opacity: 0;
  pointer-events: none;
}

/* ===== FEATURED RELEASES RESPONSIVE GRID & MOBILE SWITCHER ===== */
.showcase-section {
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

/* Mobile Segmented Release Switcher */
.featured-mobile-switcher {
  display: none; /* Hidden on desktop */
  margin-bottom: 24px;
  background: rgba(18, 22, 20, 0.85);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--eqx-border-light);
  gap: 8px;
}

.featured-switch-btn {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--eqx-text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-switch-btn.active {
  background: rgba(195, 181, 159, 0.18);
  color: var(--eqx-text-light);
  border: 1px solid rgba(195, 181, 159, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.switch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eqx-accent);
  opacity: 0.6;
}

.featured-switch-btn.active .switch-dot {
  opacity: 1;
  box-shadow: 0 0 6px var(--eqx-accent);
}

/* Player Card Styling */
.player-card {
  background: #181c1b;
  border-radius: 18px;
  border: 1px solid var(--eqx-border-light);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.player-card:hover {
  border-color: rgba(195, 181, 159, 0.35);
}

.release-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.release-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--eqx-accent);
  font-weight: 600;
  font-family: var(--font-head);
}

.release-format-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--eqx-text-muted);
}

.release-title {
  font-size: 1.6rem;
  font-family: var(--font-head);
  color: var(--eqx-text-light);
  line-height: 1.2;
}

.spotify-iframe-touch-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.spotify-hero-iframe {
  border-radius: 12px;
  background: transparent;
  display: block;
}

.player-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.producer-credit {
  font-size: 0.78rem;
  color: var(--eqx-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.release-spotify-btn {
  padding: 10px 18px;
  font-size: 0.78rem;
}

/* ===== 3D ISOMETRIC FACILITY STAGE VIEWER ===== */
.tour-section {
  padding: 60px 20px 100px;
  background: var(--eqx-dark-bg);
  position: relative;
}

.stage-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stage-tab-btn {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--eqx-text-muted);
  padding: 10px 20px;
  background: rgba(28, 32, 30, 0.8);
  border: 1px solid var(--eqx-border-light);
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-tab-btn .tab-icon {
  font-size: 1rem;
}

.stage-tab-btn:hover,
.stage-tab-btn.active {
  color: var(--eqx-text-light);
  background: rgba(195, 181, 159, 0.18);
  border-color: var(--eqx-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(195, 181, 159, 0.15);
  transform: translateY(-2px);
}

/* Single Stacked Facility Container */
.stage-viewer-container {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(195, 181, 159, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  background: #0d100f;
  display: flex;
  flex-direction: column;
}

/* 3D Isometric Viewport */
.stage-render-stack {
  position: relative;
  width: 100%;
  height: 420px;
  background: #090b0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stacked 3D Isometric Layers (Centered & Contained) */
.stage-layer {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.stage-layer.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Carousel Controls */
.stage-mobile-controls {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 15;
}

.stage-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 22, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(195, 181, 159, 0.35);
  color: var(--eqx-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-arrow-btn:hover {
  background: var(--eqx-accent);
  color: var(--eqx-dark-bg);
}

.stage-mobile-dots {
  display: flex;
  gap: 8px;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stage-dot.active {
  background: var(--eqx-accent);
  width: 22px;
  border-radius: 10px;
}

/* Unified Solid Info Panel (Fixed alignment, zero jumping/shifting) */
.stage-info-panel {
  position: relative;
  width: 100%;
  background: #181c1b;
  border-top: 1px solid rgba(195, 181, 159, 0.2);
  padding: 32px 36px 36px;
  box-sizing: border-box;
  text-align: left;
}

.stage-badge {
  display: inline-block;
  background: rgba(195, 181, 159, 0.15);
  border: 1px solid var(--eqx-accent);
  color: var(--eqx-accent);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 500;
  text-align: left;
}

.stage-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--eqx-text-light);
  margin-bottom: 10px;
  line-height: 1.2;
  text-align: left;
}

.stage-desc {
  font-size: 0.92rem;
  color: var(--eqx-text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  text-align: left;
}

.stage-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.stage-bullets li {
  font-size: 0.85rem;
  color: var(--eqx-text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  background: var(--eqx-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== MOBILE RESPONSIVE OPTIMIZATIONS ===== */
@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-mobile-switcher {
    display: flex;
  }

  .featured-release-item {
    display: none;
    animation: fadeInRelease 0.35s ease;
  }

  .featured-release-item.active {
    display: flex;
  }

  @keyframes fadeInRelease {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .player-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .stage-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stage-tabs::-webkit-scrollbar {
    display: none;
  }
  .stage-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .stage-viewer-container {
    border-radius: 16px;
    width: 100%;
  }

  .stage-render-stack {
    height: 250px;
    min-height: 250px;
    background: #090b0a;
  }

  .stage-layer {
    background-size: contain;
    background-position: center center;
  }

  .stage-mobile-controls {
    display: flex;
  }

  .stage-info-panel {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    padding: 22px 20px 26px !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .stage-title {
    font-size: 1.35rem;
    text-align: left;
  }

  .stage-desc {
    font-size: 0.88rem;
    text-align: left;
  }

  .stage-bullets {
    text-align: left;
  }

  .stage-bullets li {
    font-size: 0.82rem;
    text-align: left;
  }
}
