/* DESIGN SEED:
   Font:    Lilita One (display) + Cabin (body)
   Color:   Full saturation — #EF7D00 dominant, #FFE600 accent, #3D1C00 borders/text
   Layout:  Sidebar-dominant met krantenkolom chaos, 3 kolommen
   Texture: Harde schaduwen (4px offset, geen blur) + 1–2px borders overal
   Toon:    Feestelijk
*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange:  #EF7D00;
  --yellow:  #FFE600;
  --dark:    #3D1C00;
  --cream:   #FFF3E0;
  --white:   #FFFFFF;
  --shadow:  4px 4px 0 var(--dark);
  --shadow-s: 3px 3px 0 var(--dark);
}

body {
  font-family: 'Cabin', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Header ──────────────────────────────────────────────────────── */

header {
  background: var(--orange);
  border-bottom: 3px solid var(--dark);
  box-shadow: 0 4px 0 var(--dark);
  padding: 14px 20px;
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-guitar {
  font-size: 46px;
  animation: guitar-swing 1.8s ease-in-out infinite;
  display: inline-block;
  transform-origin: bottom center;
}


@keyframes guitar-swing {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}

.logo-main {
  font-family: 'Lilita One', cursive;
  font-size: 38px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--dark);
  letter-spacing: 3px;
  line-height: 1;
}

.logo-sub {
  font-family: 'Lilita One', cursive;
  font-size: 12px;
  color: var(--dark);
  background: var(--yellow);
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--dark);
  box-shadow: 2px 2px 0 var(--dark);
  letter-spacing: 5px;
  margin-top: 4px;
}

/* ─── Nav ─────────────────────────────────────────────────────────── */

.topnav {
  background: #C86800;
  border-bottom: 2px solid var(--dark);
  padding: 0 20px;
  display: flex;
  gap: 0;
}

.nav-item {
  display: block;
  padding: 9px 18px;
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border-right: 1px solid var(--dark);
  transition: background 0.1s, color 0.1s;
}

.nav-item:hover,
.nav-item.nav-active {
  background: var(--orange);
  color: var(--dark);
}

/* ─── Page grid ───────────────────────────────────────────────────── */

.page-grid {
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 210px 1fr 220px;
  gap: 16px;
  align-items: start;
}

/* ─── Widgets (sidebar cards) ─────────────────────────────────────── */

.widget {
  background: var(--white);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}

.widget-head {
  font-family: 'Lilita One', cursive;
  font-size: 15px;
  color: var(--orange);
  border-bottom: 2px dotted var(--orange);
  padding-bottom: 7px;
  margin-bottom: 10px;
}

/* Stats widget */
.stats-list {
  list-style: none;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 13px;
}

.stat-lbl { color: #666; }

.stat-val {
  font-family: 'Lilita One', cursive;
  font-size: 16px;
  color: var(--orange);
}

/* Now playing */
.now-playing {
  font-style: italic;
  font-size: 13px;
  color: #555;
  min-height: 36px;
}

/* Subscribe widget */
.widget-subscribe { background: #FFF8E6; }

.sub-intro {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

#subscribeForm input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--dark);
  box-shadow: 2px 2px 0 var(--dark);
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
  background: var(--white);
}

#subscribeForm input:focus { border-color: var(--orange); }

.btn-subscribe {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow-s);
  padding: 10px;
  font-family: 'Lilita One', cursive;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn-subscribe:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--dark);
}

.btn-subscribe:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--dark);
}

.sub-msg {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  min-height: 18px;
}

/* How list */
.how-list {
  list-style: none;
}

.how-list li {
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dotted #eee;
  line-height: 1.4;
}

/* ─── Main content ────────────────────────────────────────────────── */

.main { min-height: 300px; }

.section-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Lilita One', cursive;
  font-size: 26px;
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--dark);
  line-height: 1;
}

/* Loading state */
.loading-state {
  padding: 50px 20px;
  text-align: center;
  font-family: 'Lilita One', cursive;
  font-size: 22px;
  color: var(--orange);
}

/* Empty state */
.empty-state {
  border: 3px dashed var(--orange);
  background: var(--white);
  padding: 50px 24px;
  text-align: center;
}

.empty-state h3 {
  font-family: 'Lilita One', cursive;
  font-size: 26px;
  color: var(--orange);
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
  font-size: 15px;
  max-width: 380px;
  margin: 0 auto 8px;
}

.empty-stars {
  font-size: 22px;
  color: var(--orange);
  letter-spacing: 5px;
  margin-top: 10px;
}

/* ─── Clip cards ──────────────────────────────────────────────────── */

.clip-card {
  background: var(--white);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  transition: transform 0.08s, box-shadow 0.08s;
}

.clip-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--orange);
}

.clip-card.highlighted {
  border-color: var(--yellow);
  box-shadow: 5px 5px 0 var(--yellow);
  animation: highlight-flash 0.4s ease 3;
}

@keyframes highlight-flash {
  0%, 100% { background: var(--white); }
  50%       { background: #FFF8E6; }
}

/* NEW badge ribbon */
.clip-ribbon {
  position: absolute;
  top: -2px;
  right: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Lilita One', cursive;
  font-size: 11px;
  padding: 2px 10px;
  border: 1.5px solid var(--dark);
  box-shadow: 2px 2px 0 var(--dark);
  letter-spacing: 1px;
}

.clip-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.clip-title {
  font-family: 'Lilita One', cursive;
  font-size: 22px;
  color: var(--orange);
  line-height: 1;
}

.clip-meta {
  font-size: 12px;
  color: #666;
  background: var(--cream);
  border: 1px solid #ddd;
  padding: 3px 9px;
}

.clip-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Play button */
.btn-play {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow-s);
  padding: 9px 20px;
  font-family: 'Lilita One', cursive;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
  min-width: 110px;
  text-align: center;
}

.btn-play:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--dark);
}

.btn-play:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--dark);
}

.btn-play.playing {
  background: #C86800;
}

/* Share button */
.btn-share {
  background: var(--yellow);
  color: var(--dark);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow-s);
  padding: 9px 18px;
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
  text-decoration: none;
  display: inline-block;
}

.btn-share:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--dark);
}

/* Download button */
.btn-download {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow-s);
  padding: 9px 16px;
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn-download:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--dark);
}

/* ─── Custom audio player ─────────────────────────────────────────── */

.clip-player {
  margin-top: 12px;
  background: var(--cream);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow-s);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--orange);
  border: 2px solid var(--dark);
  box-shadow: 3px 3px 0 var(--dark);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s, box-shadow 0.08s;
  color: var(--white);
  line-height: 1;
  padding: 0;
}

.player-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--dark);
}

.player-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--dark);
}

.player-btn.playing {
  background: #C86800;
}

.player-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.player-bar {
  width: 100%;
  height: 14px;
  background: var(--white);
  border: 2px solid var(--dark);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--orange);
  width: 0%;
  pointer-events: none;
  transition: width 0.25s linear;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-family: 'Lilita One', cursive;
  font-size: 12px;
  color: var(--dark);
  line-height: 1;
}

/* hidden audio element */
.clip-audio-wrap {
  display: none;
}

/* ─── Share modal ─────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 28, 0, 0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] { display: none; }

.modal-box {
  background: var(--white);
  border: 3px solid var(--dark);
  box-shadow: 7px 7px 0 var(--dark);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--dark);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  width: 30px;
  height: 30px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-close:hover { background: #C86800; }

.modal-label {
  font-family: 'Cabin', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-title {
  font-family: 'Lilita One', cursive;
  font-size: 28px;
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}

.modal-meta {
  font-size: 12px;
  color: #666;
  background: var(--cream);
  border: 1px solid #ddd;
  padding: 3px 9px;
  display: inline-block;
  margin-bottom: 16px;
}

.modal-player {
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Share toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: var(--yellow);
  font-family: 'Lilita One', cursive;
  font-size: 16px;
  padding: 12px 28px;
  border: 2px solid var(--yellow);
  box-shadow: 4px 4px 0 var(--yellow);
  z-index: 999;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .page-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "left right";
  }

  .main       { grid-area: main; }
  .sidebar:first-of-type { grid-area: left; }
  .sidebar-right { grid-area: right; }

  .logo-main { font-size: 28px; }
}

@media (max-width: 620px) {
  .page-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "left" "right";
  }

  .logo-main { font-size: 22px; }
  .logo-guitar { font-size: 34px; }

  .topnav { overflow-x: auto; }
  .nav-item { white-space: nowrap; }
}
