/* =========================================================
   Planning Center Worship Set — Frontend Styles
   julianvickers.com
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --pcw-bg:         #0f0e0c;
  --pcw-surface:    #1a1916;
  --pcw-border:     rgba(255,255,255,0.07);
  --pcw-gold:       #c9a84c;
  --pcw-gold-dim:   rgba(201,168,76,0.15);
  --pcw-text:       #f0ede6;
  --pcw-muted:      rgba(240,237,230,0.45);
  --pcw-red:        #e05252;
  --pcw-radius:     10px;
  --pcw-transition: 0.22s ease;
}

/* ── Wrapper ── */
.pcw-wrapper {
  font-family: 'DM Sans', sans-serif;
  background: var(--pcw-bg);
  border: 1px solid var(--pcw-border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 680px;
  margin: 2rem auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}

/* ── Header ── */
.pcw-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--pcw-border);
  background: linear-gradient(135deg, #1a1916 0%, #131210 100%);
  gap: 12px;
  flex-wrap: wrap;
}

.pcw-eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pcw-gold);
  margin-bottom: 4px;
}

.pcw-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pcw-text);
  margin: 0;
  line-height: 1.1;
}

.pcw-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--pcw-muted);
  white-space: nowrap;
  padding-bottom: 2px;
}

.pcw-updated-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf6e;
  box-shadow: 0 0 8px rgba(76,175,110,0.6);
  animation: pcw-pulse 2.5s ease-in-out infinite;
}

@keyframes pcw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Empty State ── */
.pcw-empty {
  text-align: center;
  padding: 56px 32px;
  color: var(--pcw-muted);
}

.pcw-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* ── Song List ── */
.pcw-song-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pcw-song-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--pcw-border);
  transition: background var(--pcw-transition);
  animation: pcw-slide-in 0.35s ease both;
}

.pcw-song-item:last-child {
  border-bottom: none;
}

.pcw-song-item:hover {
  background: var(--pcw-surface);
}

@keyframes pcw-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pcw-song-item:nth-child(1) { animation-delay: 0.05s; }
.pcw-song-item:nth-child(2) { animation-delay: 0.10s; }
.pcw-song-item:nth-child(3) { animation-delay: 0.15s; }
.pcw-song-item:nth-child(4) { animation-delay: 0.20s; }
.pcw-song-item:nth-child(5) { animation-delay: 0.25s; }
.pcw-song-item:nth-child(6) { animation-delay: 0.30s; }
.pcw-song-item:nth-child(7) { animation-delay: 0.35s; }

/* ── Song Number ── */
.pcw-song-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pcw-gold);
  min-width: 26px;
  line-height: 1;
  padding-top: 2px;
  opacity: 0.7;
}

/* ── Song Info ── */
.pcw-song-info {
  flex: 1;
  min-width: 0;
}

.pcw-song-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pcw-text);
  line-height: 1.2;
  margin-bottom: 10px;
}

/* ── Video Button ── */
.pcw-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--pcw-border);
  transition: border-color var(--pcw-transition), box-shadow var(--pcw-transition), transform var(--pcw-transition);
  background: var(--pcw-surface);
  max-width: 100%;
}

.pcw-video-btn:hover {
  border-color: var(--pcw-gold);
  box-shadow: 0 0 20px var(--pcw-gold-dim);
  transform: translateY(-1px);
}

.pcw-thumb {
  display: block;
  width: 100px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
}

.pcw-play-icon {
  font-size: 13px;
  color: var(--pcw-gold);
  padding-left: 4px;
  flex-shrink: 0;
}

.pcw-video-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--pcw-text);
  padding-right: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── No Video ── */
.pcw-no-video-label {
  font-size: 11px;
  color: var(--pcw-muted);
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .pcw-header    { padding: 20px; }
  .pcw-song-item { padding: 18px 20px; gap: 12px; }
  .pcw-title     { font-size: 1.4rem; }
  .pcw-thumb     { width: 72px; height: 40px; }
}
