/* ==========================================================================
   Album LinkHub — Dark/Cinematic (matches main site)
   ========================================================================== */

/* == Theme tokens ========================================================= */
:root {
  --bg:        #07080b;
  --bg-2:      #0b0d12;
  --card:      #0f1322;

  --text:      #e9ecf3;
  --muted:     #aab1c9;

  --neon:      #8f7cff;
  --neon2:     #ff6f9c;

  --line:      rgba(255,255,255,.12);

  --radius:    16px;
  --shadow-1:  0 18px 50px rgba(0,0,0,.45);
}

/* == Base / Reset ========================================================= */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }

/* == Background FX ======================================================== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .35;
}
.bg-shade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 40%, transparent, rgba(0,0,0,.55));
}

/* == Page layout ========================================================== */
.wrap { width: min(920px, 92%); margin: 0 auto; padding: 20px 0; position: relative; z-index: 1; }
.top  { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }

/* Brand / Theme toggle */
.brand {
  font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.theme {
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 6px 10px; border-radius: 10px; cursor: pointer; transition: .25s;
}
.theme:hover {
  border-color: var(--neon); color: var(--text);
  box-shadow: 0 0 10px rgba(143,124,255,.35);
}

/* == Card (hero block) ==================================================== */
.card {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: linear-gradient(120deg, transparent 0%,
             rgba(143,124,255,.18) 40%, rgba(255,111,156,.18) 80%,
             transparent 100%);
  transition: opacity .35s ease;
}
.card:hover::before { opacity: .25; }

/* Cover */
.cover {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); z-index: 1;
}
.cover img { width: 100%; height: auto; border-radius: 14px; transition: transform .4s ease; }
.card:hover .cover img { transform: scale(1.04); }
.badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; font-size: 12px; font-weight: 800; text-transform: uppercase;
  color: #0a0b10; border-radius: 999px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* Meta */
.meta { position: relative; z-index: 1; }
.meta h1 { margin: 0 0 4px; font-family: "Playfair Display", serif; font-size: 30px; }
.meta h1 .eyebrow {
  display: block; color: var(--muted); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
}
.artist { color: var(--muted); margin: 0 0 10px; }

/* Preview player */
.preview {
  width: 100%; margin: 8px 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #080b14;
}

/* == Platform buttons ===================================================== */
.btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0;
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: 12px;
  color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .35s ease, border-color .35s ease, background .18s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover {
  transform: translateY(-3px);
  border-color: var(--neon);
  box-shadow: 0 0 8px rgba(143,124,255,.35),
              0 0 18px rgba(255,111,156,.2),
              0 10px 32px rgba(0,0,0,.55);
}
.btn:active { transform: translateY(0) scale(.98); }

/* Brand tint (optional) */
.btn.spotify:hover   { border-color: #1DB954; }
.btn.apple:hover     { border-color: #fc3c44; }
.btn.youtube:hover   { border-color: #ff0033; }
.btn.tidal:hover     { border-color: #00ffff; }
.btn.bandcamp:hover  { border-color: #629aa9; }
.btn.amazon:hover    { border-color: #00a8e1; }
.btn.deezer:hover    { border-color: #ef5466; }
.btn.soundcloud:hover{ border-color: #ff7700; }

/* == Tools (copy/share) =================================================== */
.tools { display: flex; gap: 10px; margin: 8px 0; }
.copy, .share {
  flex: 1; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: .25s;
  color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.copy:hover, .share:hover {
  border-color: var(--neon); box-shadow: 0 0 10px rgba(143,124,255,.35);
}

/* == Tracklist (details) ================================================== */


/* == Tracklist (JS-controlled, like Skills) =============================== */
.tracks { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

/* summary button */
.tracks__summary {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--neon); font-weight: 600; cursor: pointer; user-select: none;
  padding: 8px 0; border-radius: 8px; transition: color .25s ease, box-shadow .25s ease;
}
.tracks__summary:hover { color: var(--text); }
.tracks__summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(143,124,255,.25);
}

/* caret */
.tracks__summary i {
  margin-left: 6px;
  transition: transform .4s cubic-bezier(0.25,1,0.3,1);
  font-size: 1.1rem;
}

/* panel container (slide + fade) */
.tracks__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height .45s cubic-bezier(0.25,1,0.3,1),
    opacity .28s ease;
  will-change: max-height, opacity;
}

/* list basics */
.tracks__list {
  margin: 10px 0 0; padding-left: 1.4rem;
  list-style: decimal;
  color: var(--muted);
  font-size: .95rem; line-height: 1.6;
}

/* fade + stagger (re-triggers each open via JS) */
.tracks__list li {
  opacity: 0; transform: translateY(8px);
}
.tracks.is-open .tracks__list li { animation: trackFadeUp .5s ease forwards; }
.tracks.is-open .tracks__list li:nth-child(1) { animation-delay: .05s; }
.tracks.is-open .tracks__list li:nth-child(2) { animation-delay: .10s; }
.tracks.is-open .tracks__list li:nth-child(3) { animation-delay: .15s; }
.tracks.is-open .tracks__list li:nth-child(4) { animation-delay: .20s; }
.tracks.is-open .tracks__list li:nth-child(5) { animation-delay: .25s; }
.tracks.is-open .tracks__list li:nth-child(6) { animation-delay: .30s; }
.tracks.is-open .tracks__list li:nth-child(7) { animation-delay: .35s; }
.tracks.is-open .tracks__list li:nth-child(8) { animation-delay: .40s; }

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

/* open state: rotate caret + glow pulse */
.tracks.is-open .tracks__summary i {
  transform: rotate(180deg);
  animation: neonPulse 1.5s ease-in-out infinite;
}

/* same glow we used before */
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 4px var(--neon), 0 0 10px var(--neon); }
  50%      { text-shadow: 0 0 8px var(--neon), 0 0 18px var(--neon2); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tracks__panel,
  .tracks__summary i,
  .tracks__list li { transition: none; animation: none; }
}







/* == Footer =============================================================== */
.foot { color: var(--muted); text-align: center; padding: 18px 0; }

/* == Light theme ========================================================== */
:root.light {
  --bg:   #f3f5ff;  --bg-2:#ffffff; --card:#ffffff;
  --text: #0b0d14;  --muted:#4d5a7a; --line: rgba(0,0,0,.12);
}
:root.light .brand { color: var(--text); background: none; -webkit-text-fill-color: initial; }
:root.light .btn, :root.light .copy, :root.light .share { background: #f5f7ff; }

/* == Responsive =========================================================== */
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; }
}



/* == Footer ============================================================= */

/* Make the UL row horizontal + centered */
.site-footer .footnote,
#footer .footnote {
  text-align: center;
  width: 100%;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .socials .list,
#footer .socials .list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Style each social link as a pill with icon + text */
.site-footer .socials .list a,
#footer .socials .list a {
  display: inline-flex;            /* icon + text inline */
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  transition: transform .25s ease,
              box-shadow .25s ease,
              border-color .25s ease,
              color .25s ease;
  text-decoration: none;           /* ensure clean look */
}

/* Icon size */
.site-footer .socials .list a i,
#footer .socials .list a i {
  font-size: 1.1rem;
  line-height: 1;
}

/* Neon hover effect */
.site-footer .socials .list a:hover,
#footer .socials .list a:hover {
  color: var(--neon);
  border-color: rgba(143,124,255,.6);
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(0,0,0,.45),
    0 0 14px rgba(143,124,255,.35);
}

/* Brand color accents on icon */
.site-footer .socials .list a:hover i.fa-youtube,
#footer .socials .list a:hover i.fa-youtube {
  color: #ff0033;
  text-shadow: 0 0 10px rgba(255,0,51,.6);
}
.site-footer .socials .list a:hover i.fa-instagram,
#footer .socials .list a:hover i.fa-instagram {
  color: #e1306c;
  text-shadow: 0 0 10px rgba(225,48,108,.6);
}
.site-footer .socials .list a:hover i.fa-tiktok,
#footer .socials .list a:hover i.fa-tiktok {
  color: #25F4EE;
  text-shadow: 0 0 10px rgba(37,244,238,.6);
}
.site-footer .socials .list a:hover i.fa-soundcloud,
#footer .socials .list a:hover i.fa-soundcloud {
  color: #ff7700;
  text-shadow: 0 0 10px rgba(255,119,0,.6);
}
.site-footer .socials .list a:hover i.fa-linkedin,
#footer .socials .list a:hover i.fa-linkedin {
  color: #0A66C2;
  text-shadow: 0 0 10px rgba(10,102,194,.6);
}

/* Optional: subtle focus ring for keyboard users */
.site-footer .socials .list a:focus-visible,
#footer .socials .list a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(143,124,255,.25),
    0 0 14px rgba(143,124,255,.35);
  border-color: rgba(143,124,255,.6);
  color: var(--neon);
}

