/* ==========================================================================
   THROWABLE PHYSICAL CARD DECK STYLING
   ========================================================================== */

.releases-deck-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Square Deck Container with tabindex and pan-y */
.releases-deck {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  max-height: 480px;
  perspective: 1200px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
}

.releases-deck:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 8px;
}

.releases-deck.is-dragging {
  cursor: grabbing;
}

/* Individual Vinyl Sleeve Cards */
.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(12, 46, 27, 0.92) 0%, rgba(4, 15, 8, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 8px;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: 50% 90%;
  
  /* Physical stack drop shadow with gold & emerald glow */
  box-shadow: 
    0 24px 60px -10px rgba(0, 0, 0, 0.85),
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(18, 99, 56, 0.3),
    0 0 15px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(247, 231, 169, 0.35);
  
  transition: transform 450ms var(--ease-out-expo), opacity 350ms ease;
  touch-action: none;
}

.deck-card.no-transition {
  transition: none !important;
}

/* Sleeve Card Inner Media */
.deck-card img,
.deck-card svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Natural Physical Stack Depths (Indices 0 through 5) */
.deck-card[data-depth="0"] {
  z-index: 6;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.deck-card[data-depth="1"] {
  z-index: 5;
  transform: translate3d(10px, 8px, 0) rotate(2deg) scale(0.96);
  opacity: 0.96;
  pointer-events: none;
}

.deck-card[data-depth="2"] {
  z-index: 4;
  transform: translate3d(18px, 16px, 0) rotate(-1.8deg) scale(0.92);
  opacity: 0.90;
  pointer-events: none;
}

.deck-card[data-depth="3"] {
  z-index: 3;
  transform: translate3d(26px, 24px, 0) rotate(2.4deg) scale(0.88);
  opacity: 0.82;
  pointer-events: none;
}

.deck-card[data-depth="4"] {
  z-index: 2;
  transform: translate3d(32px, 32px, 0) rotate(-2.2deg) scale(0.84);
  opacity: 0.70;
  pointer-events: none;
}

.deck-card[data-depth="5"] {
  z-index: 1;
  transform: translate3d(38px, 38px, 0) rotate(1.4deg) scale(0.80);
  opacity: 0.55;
  pointer-events: none;
}

/* Throw-out animations */
.deck-card.is-thrown-right {
  z-index: 10 !important;
  transform: translate3d(140%, -20px, 0) rotate(28deg) scale(1.05) !important;
  opacity: 0 !important;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 350ms ease !important;
}

.deck-card.is-thrown-left {
  z-index: 10 !important;
  transform: translate3d(-140%, -20px, 0) rotate(-28deg) scale(1.05) !important;
  opacity: 0 !important;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 350ms ease !important;
}

/* Deck Controls & Indicator Below */
.deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.deck-hint {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-hint-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--amber);
}

/* Progress Dots Indicator */
.deck-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-indicator-btn {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.deck-indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--muted);
  transition: background-color var(--duration-base) ease, transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.deck-indicator-btn.is-active .deck-indicator-dot {
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  transform: scale(1.4);
}

.deck-indicator-btn:hover .deck-indicator-dot {
  background-color: var(--gold-light);
}

/* Next / Prev Manual Throw Buttons */
.deck-manual-nav {
  display: flex;
  gap: 8px;
}

.deck-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 46, 27, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-secondary);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.deck-arrow-btn:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(18, 99, 56, 0.45) 100%);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.deck-arrow-btn:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 2px;
}



/* ==========================================================================
   RESPONSIVE CARD DECK RULES
   ========================================================================== */
@media (max-width: 600px) {
  .releases-deck-wrapper {
    max-width: 100%;
  }

  .releases-deck {
    max-width: min(86vw, 360px);
  }

  .deck-card[data-depth="1"] {
    transform: translate3d(6px, 5px, 0) rotate(1.5deg) scale(0.96);
  }

  .deck-card[data-depth="2"] {
    transform: translate3d(12px, 10px, 0) rotate(-1.2deg) scale(0.92);
  }

  .deck-card[data-depth="3"] {
    transform: translate3d(18px, 15px, 0) rotate(1.5deg) scale(0.88);
  }

  .deck-card[data-depth="4"] {
    transform: translate3d(22px, 20px, 0) rotate(-1.5deg) scale(0.84);
  }

  .deck-card[data-depth="5"] {
    transform: translate3d(26px, 25px, 0) rotate(1deg) scale(0.80);
  }

  .deck-nav-strip {
    max-width: min(86vw, 360px);
  }
}
