/* =========================================================
   Scifi Funk — CONSOLIDATED SITE STYLESHEET (music.css)
   - One stylesheet for all sections
   - Default theme = orange
   - Optional per-page themes via scoped variables (e.g. .sync-page)
   ========================================================= */

/* =========================================================
   0) Reset + defaults
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

/* =========================================================
   1) Theme variables
   Default = site orange
   ========================================================= */
:root{
  --accent: #e67e22;
  --accent-dark: #e67e22;
  --accent-soft: #fff4e6;

  --ink: #2c3e50;
  --muted: #7f8c8d;

  --panel: #ffffff;
  --bg: #f4f4f4;
  --line: #ecf0f1;
}

/* Optional theme: Sync pages (green)
   Use by adding class="sync-page" on the SAME element as .container,
   or on a wrapper that contains the page content. */
.sync-page{
  --accent: #2ecc71;
  --accent-dark: #27ae60;
  --accent-soft: #e9f7ef;
}

/* =========================================================
   2) Base layout + typography
   ========================================================= */
body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5px 5px 5px; 
  background: var(--bg);
}

/* Defensive consistency */
body p,
body li,
body a { font-size: 1rem; }

.container {
  background: var(--panel);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Headings */
h1 {
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 2em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
}

h2 {
  color: #34495e;
  margin: 26px 0 12px 0;
  font-size: 1.4em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

p { margin-bottom: 14px; text-align: left; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.emoji {
  font-family: 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;
}

/* Audio width safety */
audio { width: 100%; }

/* =========================================================
   3) Hero / Intro box
   (Used on home + other pages)
   ========================================================= */
.intro-box {
  background: linear-gradient(135deg, #e74c3c 0%, var(--accent) 100%);
  color: #fff;
  padding: 18px 20px;
  margin: 18px 0 22px 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.track-hero__title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #fff;
}

.track-hero__title a {
  color: #fff;
  text-decoration: underline;
}

.track-hero__label {
  margin-left: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0.9;
}

.track-hero__meta {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 10px;
  color: #fff;
}

/* =========================================================
   4) Common blocks / lists
   ========================================================= */
.list {
  background: #f8f9fa;
  padding: 14px;
  border-radius: 6px;
  margin-top: 10px;
  border-left: 4px solid var(--accent);
}

.item {
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 4px solid var(--accent);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.item strong { color: var(--ink); }

.track-meta {
  color: var(--muted);
  font-size: 0.95em;
  margin-top: 4px;
}

/* Explore Further: force single-row layout on desktop */
.explore-further .item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.explore-further .item > strong { white-space: nowrap; }
.explore-further .item > .track-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: right;
}

/* =========================================================
   5) CTA Button (general)
   ========================================================= */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  text-decoration: none;
}
.cta-button:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  text-decoration: none;
}

/* =========================================================
   6) Feature / highlight box (used by Sync and reusable)
   ========================================================= */
.feature-box {
  background: var(--accent-soft);
  padding: 18px;
  border-radius: 8px;
  margin: 16px 0;
  border: 2px solid var(--accent);
}

.price {
  font-weight: 800;
  color: var(--ink);
  margin-top: 6px;
}

.cta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* =========================================================
   7) Tracklist (flex variant for Sync pages)
   Note: uses .track-row too (but your album pages use grid layout below).
   Use this when you build Sync rows as flex.
   ========================================================= */
.tracklist { margin-top: 8px; }

.track-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 220px;
  flex: 0 1 auto;
}

.track-right {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  min-width: 300px;
}

.track-right audio {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 420px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
}

.placeholder {
  color: var(--muted);
  font-size: 0.95em;
  white-space: nowrap;
  font-weight: 600;
}

/* =========================================================
   8) Homepage-only components
   ========================================================= */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.nav-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--accent);
}

.nav-card h2 {
  color: var(--ink);
  font-size: 1.2em;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
}

.nav-card p {
  margin-bottom: 12px;
  color: #555;
  font-size: 0.95em;
}

/* Backwards-compatible: if you didn't add class="cta-button" */
.nav-card a.cta-button { /* no-op wrapper for clarity */ }
.nav-card a:not(.pill):not(.webring-link) {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c 0%, var(--accent) 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  text-decoration: none;
}
.nav-card a:not(.pill):not(.webring-link):hover {
  background: linear-gradient(135deg, var(--accent) 0%, #e74c3c 100%);
  text-decoration: none;
}

.small-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

/* =========================================================
   9) Music index / groove-led components
   ========================================================= */
.start-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.start-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 10px;
  background: #fff;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 4px solid var(--accent);
}

.start-left {
  min-width: 0;
  flex: 1;
}

.start-title {
  font-weight: 800;
  color: var(--ink);
  display: inline;
}
.start-title a { color: var(--ink); }

.start-inline-meta {
  margin-left: 10px;
  font-size: 0.95em;
  color: var(--muted);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  white-space: nowrap;
}

.nav-arrow {
  color: var(--ink);
  font-weight: 700;
}

/* Explore Further – synth pill readability */
.explore-box {
  padding: 16px 18px;
  background: #fafafa;
  border-radius: 6px;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  text-align: left;
}

.synth-pills {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 6px;
  column-gap: 18px;
  line-height: 1.15;
}

.synth-pills .pill {
  padding: 4px 6px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  background: none;
  border: none;
}

/* =========================================================
   10) Album / track rows (grid layout used on album pages)
   ========================================================= */
.track-row {
  display: grid;
  grid-template-columns: 150px 1fr 60px 110px;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border-radius: 6px;
  margin: 8px 0;
  border-left: 4px solid var(--accent);
}

.track-row audio { width: 150px; height: 32px; }

.track-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row .track-meta {
  text-align: right;
  font-size: 0.9em;
  margin-top: 0;
  white-space: nowrap;
}

.track-link { white-space: nowrap; }

.track-link.is-disabled,
.track-link.is-disabled a {
  opacity: 0.85;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

/* Incomplete rows: show player but block interaction */
.track-row.is-incomplete {
  position: relative;
  opacity: 0.45;
}

.track-row.is-incomplete::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 150px;
  height: 32px;
  z-index: 2;
  cursor: not-allowed;
}

/* =========================================================
   11) Footer + site navigation
   ========================================================= */
.site-nav {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 12px;
}

/* Footer nav row: allow wrapping and keep it tight */
.site-nav .nav-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;          /* row gap / column gap */
}

.site-nav .nav-row:last-child{
  gap: 12px 20px;
}


.site-nav br { display: none; }

.site-nav > a,
.site-nav > span,
.site-nav > span > a {
  white-space: nowrap;
}

.site-nav a{
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  margin: 0;
  white-space: nowrap;
  font-size: 1.1rem;
}



.site-nav .pill {
  border: none;
  padding: 0;
  background: transparent;
}

.footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95em;
  text-align: center;
}

/* =========================================================
   12) Synth pages (scoped)
   ========================================================= */
.synth-page { max-width: 900px; margin: 0 auto; }

.synth-page h1 {
  color: var(--ink);
  margin: 0 0 18px;
  font-size: 2em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
}

.synth-page h2 {
  color: #34495e;
  margin: 28px 0 12px;
  font-size: 1.5em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
}

.synth-page p { margin: 0 0 14px; }
.synth-page ul { margin: 12px 0; padding-left: 20px; }
.synth-page li { margin: 0 0 10px; }

.synth-page .innovation-box {
  background: linear-gradient(135deg, #e74c3c 0%, var(--accent) 100%);
  color: #fff;
  padding: 20px;
  margin: 22px 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.10);
}
.synth-page .innovation-box h3 { color: #fff; margin: 0 0 10px; font-size: 1.3em; }
.synth-page .innovation-box p { color: #fff; margin: 0; }

.synth-page .ipd-box {
  background: linear-gradient(135deg, #8e44ad 0%, #c0392b 100%);
  color: #fff;
  padding: 20px;
  margin: 22px 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.10);
}
.synth-page .ipd-box h3 { color: #fff; margin: 0 0 10px; font-size: 1.3em; }
.synth-page .ipd-box p { color: #fff; margin: 0; }

.synth-page .audio-player {
  background: #ecf0f1;
  padding: 18px;
  border-radius: 6px;
  margin: 18px 0;
  border: 2px solid var(--accent);
}
.synth-page .audio-player h3 { margin: 0 0 10px; color: var(--ink); }
.synth-page audio { width: 100%; margin-top: 10px; }

.synth-page .feature-list {
  background: #f8f9fa;
  padding: 18px;
  border-radius: 6px;
  margin: 14px 0;
  border-left: 4px solid var(--accent);
}
.synth-page .feature-list li { font-weight: 500; }

.synth-page .track-list {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin: 14px 0;
}
.synth-page .track-item {
  padding: 10px;
  margin: 10px 0;
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}
.synth-page .track-item strong { color: var(--ink); }
.synth-page .track-meta { color: var(--muted); font-size: 0.9em; margin-top: 5px; }

.synth-page .cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c 0%, var(--accent) 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  margin: 18px 0;
  font-weight: 800;
  box-shadow: 0 4px 6px rgba(0,0,0,0.10);
  text-decoration: none;
}
.synth-page .cta-button:hover { text-decoration: none; }

/* Concept-stage notice */
.concept-stage-notice {
  margin: 24px 0;
  padding: 16px 18px;
  border: 2px solid #c84f00;
  background: rgba(200, 79, 0, 0.08);
  color: #7a2f00;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 2px solid #c84f00 !important;
}

.concept-stage-notice strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.hero-image img {
  max-height: 60vh;
  object-fit: contain;
}


/* =========================================================
   13) Mobile adjustments
   ========================================================= */
@media (max-width: 600px) {
  body { padding: 10px; }
  .container { padding: 20px; }
  h1 { font-size: 1.5em; }

  .nav-grid { grid-template-columns: 1fr; }

  .start-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Album grid collapses nicely */
  .track-row { grid-template-columns: 1fr; }
  .track-row audio { width: 100%; height: auto; }
  .track-row .track-meta { text-align: left; white-space: normal; }

  /* Sync flex alignment */
  .track-right { justify-content: flex-start; min-width: 220px; }
}
/* =========================================================
   SYNC PAGE THEME + LAYOUT OVERRIDES (put at END of file)
   ========================================================= */

.sync-page{
  --accent: #2ecc71;
  --accent-dark: #27ae60;
  --accent-soft: #e9f7ef;
}

/* Make headings + links use theme vars */
.sync-page h1 { border-bottom-color: var(--accent); }
.sync-page h2 { border-bottom-color: var(--accent); }
.sync-page a { color: var(--accent-dark); }

/* Make list/item borders use theme vars on Sync page */
.sync-page .list { border-left-color: var(--accent); }
.sync-page .item { border-left-color: var(--accent); }

/* CRITICAL: override the global grid .track-row for Sync pages */
.sync-page .track-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;

  padding: 12px 10px;
  background: #fff;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 4px solid var(--accent);
}
/* Sync intro card: stack content (don’t behave like a row) */
.sync-page .item.sync-intro{
  display: block;              /* stop the flex row */
}

.sync-page .item.sync-intro > strong{
  display: block;
  margin-bottom: 8px;
}

.sync-page .item.sync-intro .track-meta{
  margin-top: 0;
  margin-bottom: 12px;
}

/* Make CTA row sit on its own line (and optionally right align) */
.sync-page .item.sync-intro .cta-row{
  display: flex;
  justify-content: flex-start; /* change to flex-end if you want right aligned */
  margin-top: 12px;
}

.list .track-row .track-link{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}

.list .track-row .track-link a{
  font-weight:800;
  text-decoration:none;
}

.list .track-row .track-link a:hover{
  text-decoration:underline;
}

/* Primary action */
.list .track-row .track-link a.full{
  border-bottom:2px solid rgba(240,138,0,0.55);
  padding-bottom:2px;
}

/* Secondary action */
.list .track-row .track-link a.more{
  opacity:0.85;
}
