/* ════════════════════════════════════════════════════════════════
   ProChordz — site stylesheet
   Elegant, music-themed light theme with a soft purple wash,
   a serif display face, and clean Inter for body copy.
   ════════════════════════════════════════════════════════════════ */

:root {
  --primary:        #7c3aed;
  --primary-dark:   #5b21b6;
  --primary-light:  #a78bfa;
  --accent:         #ec4899;
  --accent-dark:    #be185d;
  --gold:           #f59e0b;
  --bg:             #fbf8ff;
  --bg-deep:        #f3eaff;
  --card:           #ffffff;
  --text:           #1f1f2e;
  --text-soft:      #4b5563;
  --muted:          #8b8fa3;
  --border:         #ede9fe;
  --border-soft:    #f3eefc;
  --success:        #16a34a;
  --danger:         #dc2626;

  --shadow-sm:  0 2px 8px  rgba(124,58,237,.06);
  --shadow:     0 10px 30px rgba(124,58,237,.10);
  --shadow-lg:  0 20px 60px rgba(124,58,237,.16);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 8% -10%, #f8e8ff 0%, transparent 45%),
    radial-gradient(circle at 95% 5%,  #fce7f3 0%, transparent 40%),
    linear-gradient(180deg, #fdfbff 0%, #fbf6ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .pc-display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-decoration-color: rgba(124,58,237,.35); text-underline-offset: 3px; }

/* ── Top nav ──────────────────────────────────────────────────── */
.pc-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.pc-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.pc-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800;
  font-size: 1.25rem;
}
.pc-logo:hover { text-decoration: none; color: var(--text); }
.pc-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,.35);
  font-size: 0.95rem;
}
.pc-logo-mark.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 0.8rem; }
.pc-logo-text { font-family: 'Fraunces', Georgia, serif; font-weight: 800; }
.pc-logo-text span { color: var(--accent); }

.pc-nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 6px;
}
.pc-nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  color: var(--text-soft); font-weight: 600; font-size: 0.95rem;
  border-radius: 999px;
  position: relative;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.pc-nav-links a:hover { color: var(--primary); background: rgba(124,58,237,.07); text-decoration: none; }
.pc-nav-links a.is-active {
  color: var(--primary); background: rgba(124,58,237,.10);
}
.pc-nav-links .pc-soon { opacity: .75; }
.pc-soon-badge {
  font-size: .6rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--gold); color: #fff; padding: 2px 6px; border-radius: 999px;
  margin-left: 2px; font-weight: 800;
}

.pc-nav-auth { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-weight: 700;
  font-size: 0.88rem; text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.pc-pill:hover { text-decoration: none; }
.pc-pill-ghost {
  color: var(--text-soft); background: transparent; border: 1px solid var(--border);
}
.pc-pill-ghost:hover { color: var(--primary); background: rgba(124,58,237,.06); border-color: rgba(124,58,237,.25); }
.pc-pill-ghost.is-selected {
  background: rgba(124,58,237,.12); color: var(--primary);
  border-color: var(--primary-light);
}
.pc-pill-solid {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: 0;
  box-shadow: 0 6px 18px rgba(124,58,237,.30);
}
.pc-pill-solid:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124,58,237,.40); }

@media (max-width: 640px) {
  .pc-nav-inner { gap: 8px; padding: 10px 14px; }
  .pc-nav-links { gap: 0; }
  .pc-nav-links a { padding: 8px 10px; font-size: 0.9rem; }
  .pc-soon-badge { display: none; }
  .pc-logo-text { font-size: 1.1rem; }
}

/* ── Main wrapper ─────────────────────────────────────────────── */
.pc-main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 80px; }

/* ── Hero (used on landing) ───────────────────────────────────── */
.pc-hero {
  position: relative;
  text-align: center;
  padding: 60px 16px 50px;
  margin-bottom: 30px;
}
.pc-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 18px;
  background: linear-gradient(135deg, #4c1d95 0%, var(--primary) 35%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pc-hero .pc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(124,58,237,.10);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.pc-hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 640px; margin: 0 auto 32px;
}
.pc-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: transform .12s, box-shadow .15s;
  border: 0; cursor: pointer;
}
.pc-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pc-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 10px 28px rgba(124,58,237,.36);
}
.pc-btn-primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(124,58,237,.48); }
.pc-btn-ghost {
  color: var(--text); background: rgba(255,255,255,.7);
  border: 1px solid var(--border); backdrop-filter: blur(6px);
}
.pc-btn-ghost:hover { color: var(--primary); border-color: var(--primary-light); }

/* ── Section heading ──────────────────────────────────────────── */
.pc-section-head { margin: 40px 0 22px; }
.pc-section-head h2 { margin: 0 0 6px; }
.pc-section-head .sub { color: var(--muted); font-size: .98rem; }

/* ── Instrument cards (landing) ───────────────────────────────── */
.pc-instruments {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 30px 0 50px;
}
.pc-instrument-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-decoration: none; color: var(--text);
  overflow: hidden;
}
.pc-instrument-card:hover {
  text-decoration: none; color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.pc-instrument-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(124,58,237,.30);
  margin-bottom: 16px;
}
.pc-instrument-card h3 { margin: 0 0 6px; font-size: 1.4rem; }
.pc-instrument-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.pc-instrument-card .meta {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 700; font-size: .9rem;
}
.pc-instrument-card.is-soon { opacity: .82; }
.pc-instrument-card .badge-soon {
  position: absolute; top: 18px; right: 18px;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold); color: #fff; padding: 4px 10px; border-radius: 999px;
  font-weight: 800;
}

/* ── Progression grid ─────────────────────────────────────────── */
.pc-prog-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.pc-prog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .18s, border-color .15s;
  position: relative; overflow: hidden;
}
.pc-prog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .2s;
}
.pc-prog-card:hover {
  text-decoration: none; color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.pc-prog-card:hover::before { opacity: 1; }
.pc-prog-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pc-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  background: rgba(124,58,237,.08); color: var(--primary);
}
.pc-tag.is-mood { background: rgba(236,72,153,.10); color: var(--accent-dark); }
.pc-tag.is-difficulty-beginner    { background: #ecfdf5; color: #047857; }
.pc-tag.is-difficulty-intermediate { background: #fef3c7; color: #b45309; }
.pc-tag.is-difficulty-advanced    { background: #fee2e2; color: #b91c1c; }
.pc-tag.is-featured { background: linear-gradient(135deg, var(--gold), #fbbf24); color: #fff; }

.pc-prog-card h3 { margin: 4px 0 4px; font-size: 1.25rem; }
.pc-prog-card .pc-subtitle { color: var(--muted); font-size: .85rem; margin-bottom: 14px; font-weight: 500; }

.pc-prog-chords {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; margin-bottom: 6px;
}
.pc-chord-pill {
  display: inline-flex; align-items: center;
  padding: 7px 13px; border-radius: 10px;
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
  border: 1px solid var(--border);
  font-weight: 700; font-size: .95rem; color: var(--text);
  font-family: 'Fraunces', Georgia, serif;
}

.pc-prog-card .pc-meta-row {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--border);
  font-size: .82rem; color: var(--muted);
}
.pc-prog-card .pc-meta-row strong { color: var(--text); font-weight: 700; }

/* ── Progression detail page ──────────────────────────────────── */
.pc-detail-head {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.pc-detail-head .pc-eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); font-weight: 800;
  margin-bottom: 12px;
}
.pc-detail-head h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pc-detail-head .pc-subtitle { color: var(--text-soft); font-size: 1.05rem; margin: 0; }
.pc-detail-meta {
  display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px;
  padding-top: 22px; border-top: 1px solid var(--border-soft);
}
.pc-detail-meta .item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--text-soft);
}
.pc-detail-meta .item i { color: var(--primary); }
.pc-detail-meta .item strong { color: var(--text); }

/* ── Chord-strip (the visual progression) ─────────────────────── */
.pc-chord-strip {
  display: flex; flex-wrap: wrap; gap: 18px;
  background: linear-gradient(135deg, #faf5ff 0%, #fff5fa 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
  justify-content: center;
}
.pc-chord-block {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  color: var(--text);
  transition: transform .15s;
}
.pc-chord-block:hover { transform: translateY(-3px); }
.pc-chord-block .chord-diagram { color: var(--primary-dark); }
.pc-chord-block .pc-roman {
  font-family: 'Fraunces', Georgia, serif;
  font-size: .85rem; color: var(--muted);
  font-style: italic;
  margin-top: -4px;
}
.pc-chord-block .pc-step {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
  margin-bottom: 4px;
}

/* ── Generic content card ─────────────────────────────────────── */
.pc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.pc-card h2, .pc-card h3 { margin-top: 0; }
.pc-card h3 i { color: var(--primary); margin-right: 6px; }
.pc-card p:last-child { margin-bottom: 0; }

/* "Famous songs" list */
.pc-song-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pc-song-list li {
  background: linear-gradient(90deg, #faf5ff 0%, transparent 80%);
  padding: 10px 14px; border-radius: 10px;
  border-left: 3px solid var(--accent);
  font-size: .98rem;
}
.pc-song-list li i { color: var(--accent); margin-right: 8px; }

/* Tip box */
.pc-tip {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: var(--radius);
  margin-bottom: 22px;
  color: #92400e;
  font-size: .96rem;
}
.pc-tip strong { color: #78350f; }
.pc-tip i { color: var(--gold); margin-right: 6px; }

/* ── Chord diagrams (defaults — colour is currentColor) ───────── */
.chord-diagram { display: block; color: var(--primary-dark); }

/* ── Filter bar (guitar listing) ──────────────────────────────── */
.pc-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.pc-filter-bar a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  background: transparent; color: var(--text-soft);
  border: 1px solid transparent;
  text-decoration: none;
}
.pc-filter-bar a:hover { background: rgba(124,58,237,.07); color: var(--primary); text-decoration: none; }
.pc-filter-bar a.is-active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,.30);
}
.pc-filter-bar .filter-label {
  align-self: center; font-size: .8rem; color: var(--muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  margin-right: 8px;
}

/* ── Auth cards ───────────────────────────────────────────────── */
.pc-auth-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.pc-auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%; max-width: 440px;
  overflow: hidden;
}
.pc-auth-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 30px 28px 24px; text-align: center;
}
.pc-auth-header h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.pc-auth-header p { margin: 6px 0 0; opacity: .9; font-size: .95rem; }
.pc-auth-body { padding: 28px; }
.pc-form-row { margin-bottom: 16px; }
.pc-form-row label {
  display: block; font-weight: 700; font-size: .85rem;
  color: var(--text); margin-bottom: 6px;
}
.pc-form-row input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); font-size: 1rem;
  font-family: inherit; background: #fbfaff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pc-form-row input:focus {
  outline: 0; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}
.pc-alert {
  padding: 10px 14px; border-radius: 10px; font-size: .9rem;
  margin-bottom: 16px;
}
.pc-alert-error   { background: #fee2e2; color: #991b1b; }
.pc-alert-success { background: #dcfce7; color: #166534; }
.pc-divider {
  text-align: center; margin: 18px 0;
  font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em;
  position: relative;
}
.pc-divider::before, .pc-divider::after {
  content: ''; position: absolute; top: 50%; width: 35%; height: 1px;
  background: var(--border);
}
.pc-divider::before { left: 0; } .pc-divider::after { right: 0; }

/* ── Empty / placeholder states ───────────────────────────────── */
.pc-empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--card); border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.pc-empty i { font-size: 2.2rem; color: var(--primary-light); margin-bottom: 12px; display: block; }

/* ── Footer ───────────────────────────────────────────────────── */
.pc-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.5);
  margin-top: 60px;
}
.pc-footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 30px 20px;
  display: grid; gap: 12px; justify-items: center; text-align: center;
  color: var(--text-soft); font-size: .92rem;
}
.pc-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.pc-footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.pc-footer-links a { color: var(--text-soft); font-weight: 600; }
.pc-footer-links a:hover { color: var(--primary); }
.pc-footer-meta { color: var(--muted); font-size: .82rem; }

/* ── Misc utility ─────────────────────────────────────────────── */
.pc-row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pc-mt-0 { margin-top: 0 !important; }
.pc-text-center { text-align: center; }
.pc-muted { color: var(--muted); }
