/* Cloak - hide Alpine elements until initialized */
[x-cloak] {
  display: none !important;
}

/* ============================================
   Audio Player
   ============================================ */
.audio-player {
  background: white;
  border-radius: 1rem;
  border: 1px solid rgb(228, 228, 231); /* zinc-200 */
  padding: 1rem 1.5rem;
}

.play-btn {
  background: rgb(244, 244, 245); /* zinc-100 */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(82, 82, 91); /* zinc-600 */
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: transform 150ms;
}
.play-btn:hover {
  transform: scale(1.1);
  background: rgb(228, 228, 231); /* zinc-200 */
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgb(228, 228, 231); /* zinc-200 */
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: rgb(161, 161, 170); /* zinc-400 */
  border-radius: 2px;
  transition: width 100ms linear;
}

/* ============================================
   Sentiment Chips (Light theme)
   ============================================ */
.sentiment-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgb(228, 228, 231); /* zinc-200 */
  background: rgb(250, 250, 250); /* zinc-50 */
  color: rgb(113, 113, 122); /* zinc-500 */
  transition: all 200ms;
  white-space: nowrap;
}
.sentiment-chip:hover {
  border-color: rgb(212, 212, 216); /* zinc-300 */
  color: rgb(63, 63, 70); /* zinc-700 */
}
.sentiment-chip[data-active="true"] {
  border-color: rgb(161, 161, 170); /* zinc-400 */
  background: rgb(244, 244, 245); /* zinc-100 */
  color: rgb(39, 39, 42); /* zinc-800 */
}

/* Sentiment-specific subtle accent on active state */
.sentiment-resonance[data-active="true"] {
  border-color: rgba(5, 150, 105, 0.4); /* emerald-600 */
  color: rgb(5, 150, 105);
}
.sentiment-disagreement[data-active="true"] {
  border-color: rgba(220, 38, 38, 0.4); /* red-600 */
  color: rgb(220, 38, 38);
}
.sentiment-question[data-active="true"] {
  border-color: rgba(37, 99, 235, 0.4); /* blue-600 */
  color: rgb(37, 99, 235);
}
.sentiment-suggestion[data-active="true"] {
  border-color: rgba(124, 58, 237, 0.4); /* violet-600 */
  color: rgb(124, 58, 237);
}
.sentiment-missing[data-active="true"] {
  border-color: rgba(202, 138, 4, 0.4); /* yellow-600 */
  color: rgb(202, 138, 4);
}
.sentiment-important[data-active="true"] {
  border-color: rgb(161, 161, 170); /* zinc-400 */
  background: rgb(244, 244, 245); /* zinc-100 */
  color: rgb(24, 24, 27); /* zinc-900 */
}

/* Comment list sentiment indicators */
.sentiment-resonance {
  color: rgb(5, 150, 105); /* emerald-600 */
}
.sentiment-disagreement {
  color: rgb(220, 38, 38); /* red-600 */
}
.sentiment-question {
  color: rgb(37, 99, 235); /* blue-600 */
}
.sentiment-suggestion {
  color: rgb(124, 58, 237); /* violet-600 */
}
.sentiment-missing {
  color: rgb(202, 138, 4); /* yellow-600 */
}
.sentiment-important {
  color: rgb(63, 63, 70); /* zinc-700 */
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  transition: all 150ms;
  cursor: pointer;
}
.sidebar-nav-item:hover {
  background: rgb(244, 244, 245); /* zinc-100 */
}
.sidebar-nav-item.active {
  background: rgb(244, 244, 245); /* zinc-100 */
  color: rgb(24, 24, 27); /* zinc-900 */
}
.sidebar-nav-item.locked {
  color: rgb(212, 212, 216); /* zinc-300 */
  cursor: default;
}
.sidebar-nav-item.locked:hover {
  background: transparent;
}

/* Gate badges */
.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gate-passed {
  background: rgb(236, 253, 245); /* emerald-50 */
  color: rgb(5, 150, 105); /* emerald-600 */
}
.gate-pending {
  background: rgb(228, 228, 231); /* zinc-200 */
  color: rgb(113, 113, 122); /* zinc-500 */
  border: 1px solid rgb(212, 212, 216); /* zinc-300 */
}

/* ============================================
   Narrative body formatting
   ============================================ */
.narrative-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.narrative-body strong {
  color: rgb(24, 24, 27); /* zinc-900 */
  font-weight: 600;
}
.narrative-body em {
  color: rgb(113, 113, 122); /* zinc-500 */
  font-style: italic;
}

/* ============================================
   Journey Timeline
   ============================================ */
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.timeline-dot.complete {
  background: rgb(5, 150, 105); /* emerald-600 */
}
.timeline-dot.pending {
  background: rgb(228, 228, 231); /* zinc-200 */
  border: 2px solid rgb(212, 212, 216); /* zinc-300 */
}
.timeline-line {
  width: 2px;
  flex-shrink: 0;
  min-height: 2rem;
}

/* ============================================
   Locked section placeholder
   ============================================ */
.locked-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px dashed rgb(228, 228, 231); /* zinc-200 */
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
}

/* ============================================
   Scrollbar styling
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgb(212, 212, 216); /* zinc-300 */
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(161, 161, 170); /* zinc-400 */
}

/* ============================================
   Mobile sidebar overlay
   ============================================ */
@media (max-width: 1023px) {
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 30;
  }
}
