/* ═══════════════════════════════════════════════════════════════
   TRACKLIST — STYLESHEET
   Fonts: owners (display/headings) · neue-haas-unica (body/UI)
   Loaded via Adobe Fonts: https://use.typekit.net/yny6zqk.css
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* ── Colors ──────────────────────────────────────────────────
     --text        → Titles, active content, CTAs, inputs
     --text-dim    → Secondary info: DJ names, bios, form labels
     --text-muted  → Tertiary: inactive nav, ghost text, footer
  ─────────────────────────────────────────────────────────── */
  --bg:            #141414;
  --surface:       #1e1e1e;
  --surface-hi:    #272727;
  --border:        #333333;
  --text:          #f0f0f0;
  --text-muted:    #5f5f5f;
  --text-dim:      #868686;
  --progress-bg:   #2a2a2a;
  --progress-fill: #d0d0d0;
  --error:         #ff6b6b;
  --success:       #a8e6a3;
  --brandred:      #ff0000;

  /* ── Shape ───────────────────────────────────────────────── */
  --radius-card: 18px;
  --radius-btn:  999px;

  /* ── Typography — fonts ──────────────────────────────────────
     --font-display → owners: headings, nav, buttons, UI labels
     --font-body    → neue-haas-unica: body text, inputs, metadata
  ─────────────────────────────────────────────────────────── */
  --font-display:  'owners', sans-serif;
  --font-body:     'neue-haas-unica', sans-serif;
  --font-logo:  'owners-xwide', sans-serif;
  /* Back-compat aliases */
  --font-primary:   var(--font-display);
  --font-secondary: var(--font-body);

  /* ── Typography — sizes ──────────────────────────────────── */
  --fs-xl:     clamp(40px, 5vw, 64px);   /* Submit tracklist name */
  --fs-h1:     50px;                      /* Nav logo */
  --fs-h2:     22px;                      /* Section headings, counter, tracklist name main page */
  --fs-h3:     18px;                      /* Card names, DJ name on submit */
  --fs-nav:    17px;                      /* Nav links */
  --fs-body:   15px;                      /* Body text */
  --fs-ui:     13px;                      /* Buttons, tags, small labels */
  --fs-label:  11px;                      /* Form labels, back button */
  --fs-micro:  10px;                      /* Footer, deadline */

  /* ── Typography — weights ────────────────────────────────── */
  --fw-black:   800;
  --fw-boldX:   700;
  --fw-boldS:   600;
  --fw-medium:  500;
  --fw-regular: 400;
  --fw-light:   300;

  /* ── Typography — letter spacing ────────────────────────── */
  --ls-tight:  -0.04em;   /* Display / hero */
  --ls-snug:   -0.03em;   /* Headings */
  --ls-normal: -0.01em;   /* Body / inputs */
  --ls-wide:    0.1em;    /* Footer */
  --ls-wider:   0.14em;   /* Form labels */

  /* ── Motion ──────────────────────────────────────────────── */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; line-height: 1; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.red-text {
  border-bottom: 1px solid var(--brandred);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-shrink: 0;
  z-index: 100;
  transition: border-color var(--transition);
}
nav.scrolled { border-color: var(--border); }

.nav-logo {
  font-family: var(--font-logo);
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-snug);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.nav-logo:hover {
  color: var(--brandred);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface-hi);
  border-radius: 999px;
  padding: 3px;
}

.lang-option {
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-snug);
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.lang-option.active {
  background: var(--text);
  color: var(--bg);
}

.lang-option:not(.active):hover { color: var(--brandred); }

.nav-link {
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  background: none;
  border: none;
  padding: 0;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-snug);
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--brandred); }

.nav-link.is-close {
  font-size: 26px;
  font-weight: var(--fw-light);
  letter-spacing: 0;
  text-transform: none;
}

/* ── PAGES ───────────────────────────────────────────────────── */
.page          { display: none; flex-direction: column; }
.page.active   { display: flex; }

/* ── HOME ────────────────────────────────────────────────────── */
#page-home {
  position: relative;
  justify-content: safe center;
  align-items: center;
  padding: 36px 40px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

#page-home::before,
#page-about::before {
  content: 'NO STARS.\A JUST TRACKS.';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 220px;
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: #1b1b1b;
  white-space: pre;
  text-align: center;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  line-height: 400px;
}

.tracklist-grid {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 64px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s ease both;
}

.tracklist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 230px;
  animation: fadeUp 0.5s ease both;
}
.tracklist-card:nth-child(2) { animation-delay: 0.07s; }
.tracklist-card:nth-child(3) { animation-delay: 0.14s; }

/* Progress bar */
.progress-wrap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}
.progress-wrap {
  flex: 1;
  height: 4px;
  background: var(--progress-bg);
  border-radius: 999px;
  overflow: hidden;
}
.progress-pct {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}
.progress-bar {
  height: 100%;
  background: var(--progress-fill);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card body */
.card-body {
  background: var(--surface);
  border-radius: var(--radius-card);
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-body img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card-placeholder {
  width: 100%; height: 100%;
  background: #3a3a3a;
}

/* Full overlay */
.card-full-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.card-full-label {
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-style: italic;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  padding: 0 16px;
}

/* Card info */
.card-info {
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.tracklist-name {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.dj-tags {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  color: var(--text);
  margin-bottom: 4px;
}

.dj-name {
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: var(--fw-boldX);
  letter-spacing: var(--ls-snug);
  text-transform: uppercase;
  color: var(--text-dim);
}

.dj-name--mystery {
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

/* Card CTA */
.card-cta {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

/* Deadline label — under card CTA */
.deadline-label {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 11px 20px;
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn-outline:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-solid {
  border: none;
  background: var(--text);
  color: var(--bg);
  padding: 12px 32px;
}
.btn-solid:hover {
  background: #d4d4d4;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 11px 24px;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-counter {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  color: var(--text-muted);
}

.sent-label {
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  padding: 11px 0;
}

.sent-label--full { color: var(--text-dim); }

/* ── SUBMIT PAGE ─────────────────────────────────────────────── */
#page-submit {
  padding: 0 40px 36px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  border: none;
  background: none;
  padding: 12px 0;
}
.back-btn:hover { color: var(--brandred); }

/* Submit header */
.submit-header {
  text-align: center;
  margin-bottom: 104px;
  animation: fadeUp 0.4s ease both;
}

/* Deadline — top of submit header */
.submit-deadline {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Progress bar scoped to submit header — centered, fixed width */
.submit-header .progress-wrap-row {
  width: 240px;
  margin: 8px auto 16px;
}

.submit-progress-wrap {
  height: 4px;
  background: var(--progress-bg);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}

.submit-tracklist-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-snug);
  text-transform: uppercase;
  color: var(--text);
}

.submit-dj-tags {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  color: var(--text);
  margin-bottom: 28px;
}

/* DJ profile row: photo + name/bio */
.submit-dj-profile {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 6px;
}

.dj-photo {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}

.dj-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dj-profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#submit-dj-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--text);
}

.submit-dj-bio {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: var(--fw-light);
  color: var(--text);
  max-width: 280px;
}

.submit-limit-note {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: var(--fw-regular);
  color: var(--text-muted);
  font-style: italic;
}

/* Submit action context — groups progress, limit note, counter, button, deadline */
.form-submit-context {
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form-submit-context .progress-wrap-row {
  width: 100%;
  margin-bottom: 0;
}

/* ── FORM ────────────────────────────────────────────────────── */
.submit-form {
  max-width: 520px;
  margin: 0 auto;
  animation: fadeUp 0.4s 0.08s ease both;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-label .optional {
  color: var(--text-dim);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  padding: 8px 0;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--text-muted); }
.form-input.error { border-color: var(--error); }

.field-error {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em;
  color: var(--error);
  min-height: 14px;
}

/* Pseudo tooltip */
.pseudo-info {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-dim);
  cursor: help;
  font-size: var(--fs-ui);
}
.pseudo-tooltip {
  display: none;
  position: absolute;
  right: 0;
  top: 20px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  color: var(--text-muted);
  width: 220px;
  z-index: 10;
}
.pseudo-info:hover .pseudo-tooltip,
.pseudo-info.open  .pseudo-tooltip { display: block; }

/* Track counter */
.track-counter {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-boldX);
  letter-spacing: var(--ls-snug);
  color: var(--text);
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* ── CONFIRMATION STATE ──────────────────────────────────────── */
.confirmation-block {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.35s ease both;
}

.confirmation-icon {
  font-size: var(--fs-h2);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.confirmation-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-boldX);
  letter-spacing: var(--ls-snug);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.confirmation-track {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  color: var(--text);
  margin-bottom: 6px;
}

.confirmation-sub {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 28px;
  font-style: italic;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.confirmation-actions .btn { min-width: 280px; }

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
#page-about {
  position: relative;
  justify-content: safe center;
  align-items: center;
  padding: 0 48px 28px 48px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.about-content {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: fadeUp 0.4s ease both;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about-intro,
.about-closing,
.about-infos {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-subtitle {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-boldX);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--text);
}

.about-closing .about-subtitle {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}

.about-col {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-normal);
  color: var(--text);
  line-height: 1.1;
}

.about-subparagraph {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  color: var(--text);
}

.about-infos {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-normal);
  color: var(--text-dim);
}

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  width: calc(100% - 40px);
  animation: fadeUp 0.25s ease both;
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-boldX);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--text);
}

.modal-sub {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  background: var(--bg);
  color: var(--text-muted);
  text-align: center;
  padding: 14px 40px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── SKELETON ───────────────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

.skel {
  display: block;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hi) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
  margin: 0 auto;
}

.skel-name { height: 20px; width: 75%; margin-bottom: 6px; }
.skel-tags { height: 12px; width: 55%; margin-bottom: 4px; }
.skel-dj   { height: 12px; width: 40%; }

.skel-btn {
  height: 40px;
  width: 100%;
  margin-top: 14px;
  border-radius: var(--radius-btn);
}

.card-body.skel-body {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hi) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 14px 20px; }
  .nav-logo { font-size: 20px; }
  .nav-actions { gap: 12px; }
  .nav-link { font-size: 14px; }

  #page-home { padding: 24px 20px; }
  .tracklist-grid { gap: 40px; }
  .tracklist-card { width: 100%; max-width: 300px; }

  #page-submit { padding: 0 20px 28px; }
  .submit-header { margin-bottom: 48px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }

  #page-about { padding: 24px 20px; }
  .about-content { gap: 40px; }
  .about-columns { grid-template-columns: 1fr; }

  footer { padding: 12px 20px; }
}
