/* L'il Pups — brand styles (colors, surfaces, components) */

/* ── Brand palette ── */
:root {
  --midnight: #131426;
  --midnight-light: #1a1b35;
  --cream: #faf8f5;
  --magenta: #bc2a6e;
  --magenta-dark: #9a2259;
  --gold: #fce181;
  --ink: #131426;
  --ink-muted: rgba(19, 20, 38, 0.75);
  --ink-soft: rgba(19, 20, 38, 0.65);
  --ink-faint: rgba(19, 20, 38, 0.55);
  --ink-placeholder: rgba(19, 20, 38, 0.5);
  --on-dark-muted: #e2e8f0;
}

body {
  color: var(--ink);
  background-color: var(--cream);
}

/* ── Surfaces ── */
.surface-dark {
  background-color: var(--midnight);
  color: #ffffff;
}

.section-cream {
  background-color: var(--cream);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(252, 225, 129, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(188, 42, 110, 0.04) 0%, transparent 45%);
}

.hero-transition {
  background: linear-gradient(to bottom, var(--midnight) 0%, #2a2848 50%, var(--cream) 100%);
}

.site-header {
  background: linear-gradient(to bottom, rgba(19, 20, 38, 0.85) 0%, transparent 100%);
}

.site-brand {
  text-decoration: none;
}

.site-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  flex-shrink: 0;
  border-radius: 0.375rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3.25rem;
  }
}

.banner-youtube {
  background-color: var(--midnight-light);
  box-shadow: 0 0 40px rgba(252, 225, 129, 0.25);
  border: 2px solid rgba(252, 225, 129, 0.4);
}

.card-panel {
  background-color: #ffffff;
  box-shadow: 0 4px 24px rgba(19, 20, 38, 0.08);
  border: 1px solid rgba(19, 20, 38, 0.06);
}

/* ── Text on cream sections ── */
.text-ink { color: var(--ink); }
.text-ink-muted { color: var(--ink-muted); }
.text-ink-soft { color: var(--ink-soft); }
.text-ink-faint { color: var(--ink-faint); }
.text-ink-placeholder { color: var(--ink-placeholder); }
.text-gold-brand { color: var(--gold); }
.text-gold-dim { color: rgba(252, 225, 129, 0.65); }
.text-on-dark-muted { color: var(--on-dark-muted); }
.text-on-dark-soft { color: rgba(255, 255, 255, 0.85); }
.text-footer-muted { color: rgba(255, 255, 255, 0.5); }

/* ── Borders & rings ── */
.border-ink-faint { border-color: rgba(19, 20, 38, 0.06); }
.border-ink-light { border-color: rgba(19, 20, 38, 0.15); }
.border-ink { border-color: rgba(19, 20, 38, 0.25); }
.border-gold-brand { border-color: rgba(252, 225, 129, 0.5); }
.border-magenta-brand { border-color: rgba(188, 42, 110, 0.4); }
.ring-ink-faint { box-shadow: 0 0 0 1px rgba(19, 20, 38, 0.06); }
.ring-ink-light { box-shadow: 0 0 0 1px rgba(19, 20, 38, 0.1); }

.badge-published {
  border: 1px solid rgba(252, 225, 129, 0.5);
  background-color: rgba(252, 225, 129, 0.15);
  color: rgba(19, 20, 38, 0.8);
}

.badge-preview {
  display: inline-block;
  align-self: flex-start;
  border: 1px solid rgba(188, 42, 110, 0.35);
  background-color: rgba(188, 42, 110, 0.08);
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
}

/* Track card — equal-height grid cells, media controls pinned to bottom */
.track-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.track-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .track-card__body {
    padding: 1.75rem;
  }
}

.track-card__media {
  margin-top: auto;
  padding-top: 1.25rem;
}

.input-field {
  border: 1px solid rgba(19, 20, 38, 0.15);
  background-color: rgba(250, 248, 245, 0.5);
  color: var(--ink);
}
.input-field:focus {
  border-color: var(--magenta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(188, 42, 110, 0.2);
}

/* ── Buttons ── */
.btn-primary {
  background-color: var(--magenta);
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn-primary:hover {
  background-color: var(--magenta-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(188, 42, 110, 0.4);
}

.btn-outline {
  border: 2px solid rgba(19, 20, 38, 0.25);
  color: var(--ink);
  background-color: transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

/* ── Nav ── */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--gold);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.nav-subtitle {
  color: rgba(252, 225, 129, 0.9);
}

/* ── Hero image fade ── */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--midnight));
  pointer-events: none;
  border-radius: 0 0 1rem 1rem;
}

.book-cover-shadow {
  box-shadow: 0 25px 50px rgba(19, 20, 38, 0.15);
}

/* ── Audio player ── */
.audio-player {
  width: 100%;
  height: 40px;
  border-radius: 9999px;
  outline: none;
}
.audio-player::-webkit-media-controls-panel {
  background: linear-gradient(135deg, var(--cream) 0%, #f0ebe3 100%);
  border-radius: 9999px;
}
