/* Ambient Sound Player & Guided Meditation Space */
.silence-hub {
  padding: 1.5rem 0 4rem;
  max-width: 680px;
  margin: 0 auto;
}

.ambient-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  text-align: center;
}

/* Guided Breathing Interactive Visual */
.breathing-visual-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-circle-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-gold-bg) 10%, rgba(160, 82, 45, 0.08) 80%);
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 25px rgba(197, 155, 39, 0.25);
  transform: scale(1);
}

.breathing-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.breathing-phase-title {
  font-family: var(--font-serif-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-terracotta);
}

.breathing-countdown-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0.15rem 0;
}

[data-theme="dark"] .breathing-countdown-num {
  color: #FFFFFF;
}

.breathing-desc-text {
  font-size: 0.95rem;
  color: var(--text-body);
  margin: 0.75rem auto 1.25rem;
  min-height: 1.5rem;
}

.breathing-track {
  width: 100%;
  max-width: 200px;
  height: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  margin: 0.6rem auto 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.breathing-track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}

.badge-success {
  background: #EBF7EE;
  color: #1E7E34;
  border: 1px solid rgba(30, 126, 52, 0.3);
}

.breathing-verse-box {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-serif-text);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
  border-left: 3px solid var(--color-gold);
}

/* Sound Selector Chips */
.sound-chips {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.sound-chip {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.sound-chip:hover {
  border-color: var(--color-gold);
  color: var(--color-terracotta);
}

.sound-chip.active {
  background: var(--color-terracotta);
  color: #FFFFFF;
  border-color: var(--color-terracotta);
  box-shadow: var(--shadow-sm);
}

/* Volume Slider */
.volume-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 240px;
  margin: 1rem auto 0;
}

.volume-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  accent-color: var(--color-terracotta);
  cursor: pointer;
}

/* Sound Wave Animation */
.sound-waves {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.sound-bar {
  width: 3px;
  height: 100%;
  background: var(--color-terracotta);
  border-radius: 2px;
  animation: soundBarWave 1.2s infinite ease-in-out;
}

.sound-bar:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; height: 100%; }
.sound-bar:nth-child(4) { animation-delay: 0.1s; height: 60%; }

@keyframes soundBarWave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.paused .sound-bar {
  animation: none;
  transform: scaleY(0.2);
}
