/* ============================================================
   DAV STRAINS WORKROOM — track-list.css  v3.8
   Replaces music-grid card layout with compact list rows.
   Also fixes: duplicate Subscribe in nav, mobile section gap.
   Upload to: assets/css/track-list.css
   Then add to functions.php enqueue OR @import in style.css
   ============================================================ */

/* ── Replace music-grid with list container ── */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  overflow: hidden;
}

/* ── Each row ── */
.track-row {
  display: grid;
  grid-template-columns: 28px 44px 40px 1fr auto auto;
  align-items: center;
  gap: 0 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s ease;
  min-height: 66px;
}
.track-row:last-child { border-bottom: none; }
.track-row:hover      { background: rgba(255,255,255,.04); }
.track-row.is-playing { background: rgba(102,199,255,.08); }
.track-row.is-member  { }
.track-row.is-preview { }

/* Track number */
.tl-num {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.28);
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.track-row.is-playing .tl-num { color: var(--blue); }

/* Album art thumbnail */
.tl-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
}
.tl-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play button */
.tl-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, transform .12s ease;
}
.tl-play:hover          { background: rgba(255,255,255,.18); transform: scale(1.06); }
.track-row.is-playing .tl-play {
  background: var(--blue);
  border-color: var(--blue);
  color: #071524;
}

/* Title + genre */
.tl-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tl-title {
  font-size: 14px;
  font-weight: 850;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-genre {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stream/preview badge */
.tl-badge {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tl-badge--full {
  background: rgba(240,196,108,.14);
  color: var(--gold);
  border: 1px solid rgba(240,196,108,.28);
}
.tl-badge--preview {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.10);
}

/* Action button (Download / Subscribe) */
.tl-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .14s ease, box-shadow .14s ease;
  cursor: pointer;
}
.tl-action--dl {
  background: #fff;
  color: #081321;
  border: 1px solid rgba(255,255,255,.85);
}
.tl-action--dl:hover  { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,255,255,.14); }

.tl-action--sub {
  background: linear-gradient(135deg, var(--gold), #fff3d0);
  color: #0c1422;
  border: 1px solid rgba(240,196,108,.55);
}
.tl-action--sub:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(240,196,108,.18); }

/* ── Duplicate Subscribe in nav — hide the text link, keep the CTA button ── */
.desktop-nav a[href*="membership-levels"]:not(.nav-cta),
.desktop-nav a[href*="/membership/"]:not(.nav-cta) {
  /* Keep Membership link visible — only suppress a second Subscribe TEXT link */
}
/* If there are two consecutive nav items that look like subscribe, hide the plain one */
.desktop-nav a.subscribe-dup { display: none; }

/* ── Mobile section gap fix ── */
/* Reduce the gap between dark/light alternating sections on mobile */
@media (max-width: 720px) {
  .section { padding: 56px 20px; }
  .section.alt { padding: 56px 20px; }

  /* Ensure reveal elements don't cause blank space while waiting to animate */
  .reveal {
    opacity: 0;
    transform: translateY(10px); /* reduced from 18px — less shift = less perceived gap */
  }

  /* Track list on mobile — collapse badge column */
  .track-row {
    grid-template-columns: 20px 40px 36px 1fr auto;
    gap: 0 8px;
    padding: 9px 12px;
    min-height: 60px;
  }
  /* Hide badge on mobile to save space */
  .tl-badge { display: none; }

  .tl-title { font-size: 13px; }
  .tl-action { padding: 0 10px; font-size: 11px; min-height: 30px; }
}

/* ── Hide the old music-grid card styles when list is active ── */
.track-list .track-card { display: none; }

