[x-cloak] {
  display: none !important;
}

/* Base */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #18181b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e4e4e7;
  width: 256px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 25;
}

/* Sidebar nav items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #52525b;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.nav-item:hover {
  background-color: #f4f4f5;
  color: #18181b;
}
.nav-item.active {
  background-color: #f4f4f5;
  color: #18181b;
  font-weight: 600;
}
.nav-item.locked {
  opacity: 0.4;
  cursor: default;
}

/* Gate milestone */
.gate-milestone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
}
.gate-milestone .gate-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  flex-shrink: 0;
}
.gate-milestone.pending .gate-dot {
  background-color: #d4d4d8;
}

/* Audio Player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #18181b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.audio-player button {
  background: none;
  border: none;
  color: #fafafa;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.audio-player .progress-bar {
  flex: 1;
  height: 4px;
  background: #3f3f46;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.audio-player .progress-fill {
  height: 100%;
  background: #fafafa;
  border-radius: 2px;
  transition: width 0.1s linear;
}
.audio-player .time-display {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.audio-player .speed-btn {
  font-size: 0.6875rem;
  color: #a1a1aa;
  background: #27272a;
  border: none;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  cursor: pointer;
}

/* Comment sentiment chips */
.sentiment-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #d4d4d8;
  color: #52525b;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
}
.sentiment-chip:hover {
  border-color: #a1a1aa;
}
.sentiment-chip[data-active="true"] {
  background: #18181b;
  color: #fafafa;
  border-color: #18181b;
}
.sentiment-important {
  border-width: 2px;
}

/* Journey timeline */
.journey-phase {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
}
.journey-phase::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: #e4e4e7;
}
.journey-phase:last-child::before {
  display: none;
}
.journey-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
}
.journey-dot.complete {
  background: #18181b;
  color: #fafafa;
}
.journey-dot.upcoming {
  background: #ffffff;
  border: 2px solid #d4d4d8;
  color: #a1a1aa;
}

/* Locked section placeholder */
.locked-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  padding: 3rem;
}
.locked-placeholder .lock-icon {
  width: 48px;
  height: 48px;
  color: #d4d4d8;
  margin-bottom: 1rem;
}
