/*
Theme Name: Samantha Piano Journey
Theme URI: https://benwell.uk/
Author: Samantha Benwell
Description: A modern, elegant WordPress theme for documenting piano progress with videos, reflections, songs, and milestones.
Version: 1.0.0
License: GPLv2 or later
Text Domain: samantha-piano-journey
*/

:root {
  --bg: #0b0b12;
  --bg-soft: #12121d;
  --card: rgba(255,255,255,.075);
  --card-strong: rgba(255,255,255,.12);
  --text: #f7f4ff;
  --muted: #b9b3cc;
  --line: rgba(255,255,255,.14);
  --accent: #d7b46a;
  --accent-2: #a98cff;
  --pink: #ff7ccf;
  --green: #7cf1c7;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(169,140,255,.22), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(215,180,106,.18), transparent 30%),
    linear-gradient(180deg, #08080f 0%, #0b0b12 45%, #11111c 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img, iframe, video { max-width: 100%; border-radius: 18px; }

.site-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8,8,15,.74);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(169,140,255,.25);
  color: #0b0b12;
  font-size: 22px;
}

.brand span { display: block; }
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: 12px;
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 22px;
}

.hero {
  padding: 72px 22px 34px;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
}

.hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -.07em;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: var(--card);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #fff0a9);
  color: #14100a;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.piano-keys {
  height: 180px;
  border-radius: 22px;
  background:
    linear-gradient(90deg,
      #f8f6ff 0 11%, #171722 11% 14%,
      #f8f6ff 14% 25%, #171722 25% 28%,
      #f8f6ff 28% 39%,
      #f8f6ff 39% 50%, #171722 50% 53%,
      #f8f6ff 53% 64%, #171722 64% 67%,
      #f8f6ff 67% 78%, #171722 78% 81%,
      #f8f6ff 81% 100%);
  box-shadow: inset 0 -18px 25px rgba(0,0,0,.2);
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.stat {
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.05em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 42px rgba(0,0,0,.18);
}

.card:hover {
  background: var(--card-strong);
  transform: translateY(-2px);
  transition: .2s ease;
}

.video-card .thumb {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(215,180,106,.28), rgba(169,140,255,.24)),
    #161622;
  display: grid;
  place-items: center;
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}

.play {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.9);
  color: #111;
  font-weight: 900;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -.03em;
}

.card p { color: var(--muted); margin-bottom: 0; }

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(215,180,106,.12);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 26px;
  bottom: -18px;
  border-left: 1px solid var(--line);
}

.timeline-item:last-child::after { display: none; }

.single-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 22px;
}

.post-title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.06em;
  margin: 10px 0 18px;
}

.entry-content {
  color: #ebe7ff;
  font-size: 18px;
}

.entry-content p, .entry-content ul, .entry-content ol { color: #d8d2ea; }

.entry-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 20px 0;
}

.comments-area {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
}

input[type="submit"], button {
  cursor: pointer;
  width: auto;
  border-radius: 999px;
  background: var(--accent);
  border: 0;
  color: #111;
  font-weight: 900;
  padding: 12px 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 22px;
  text-align: center;
}

@media (max-width: 860px) {
  .hero-grid, .grid { grid-template-columns: 1fr; }
  .nav-wrap { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
}


.pdf-panel {
  margin: 24px 0;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.pdf-viewer {
  width: 100%;
  min-height: 78vh;
  height: 920px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.sheet-icon {
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(215,180,106,.18)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,.08) 18px 19px);
  border: 1px solid var(--line);
  font-size: 54px;
}


.sheet-music-single {
  max-width: 1180px;
}

.sheet-music-single .post-title {
  max-width: 900px;
}

.sheet-music-single .pdf-panel {
  padding: 22px;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .pdf-viewer {
    height: 72vh;
    min-height: 620px;
  }
}


.card-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.video-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #111;
  font-weight: 900;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

.video-card .thumb {
  position: relative;
}

.video-embed video,
.auto-video-file video {
  width: 100%;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}


.meta .pill {
  margin-bottom: 4px;
}
