/**
 * JaapCount – Meditative Breathing Cadence Guide (Pranayama Japa)
 * Synchronized sacred golden halo (Prabhavali) and dedicated non-overlapping breath pill.
 */

:root {
  --accent-gold: var(--color-accent-brass, #E9C46A);
  --accent-sand: var(--color-accent-sandalwood, #D4A373);
  --cadence-duration: 3s;
}

/* Dedicated Breath Prompt Slot (Vertical flex child in .counter-body) */
.cadence-prompt-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin 0.3s ease;
  z-index: 2;
}

.cadence-prompt-slot.active {
  max-height: 48px;
  opacity: 1;
  margin: 4px 0 12px;
  pointer-events: auto;
}

/* Sacred Glassmorphic Breath Pill */
.cadence-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 10, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-radius: 9999px;
  padding: 5px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6),
              0 0 14px rgba(233, 196, 106, 0.15);
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cadence-pill-icon {
  font-size: 0.9rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(233, 196, 106, 0.5));
}

.cadence-pill-text {
  font-family: var(--font-mantra, 'Cinzel', serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* Inhale / Exhale Pill Micro-Glow */
.cadence-prompt-slot.inhale .cadence-prompt-pill {
  border-color: rgba(233, 196, 106, 0.7);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6),
              0 0 20px rgba(233, 196, 106, 0.35);
  transform: scale(1.03);
}

.cadence-prompt-slot.exhale .cadence-prompt-pill {
  border-color: rgba(212, 163, 115, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5),
              0 0 10px rgba(212, 163, 115, 0.15);
  transform: scale(0.98);
}

/* Divine Golden Halo (Prabhavali) strictly behind Counter Numeral */
.cadence-aura-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  height: 210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cadence-aura-container.active {
  opacity: 1;
}

/* Pulsing Mandala Rings */
.cadence-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 163, 115, 0.3);
  box-shadow: 0 0 25px rgba(212, 163, 115, 0.15),
              inset 0 0 15px rgba(212, 163, 115, 0.08);
  transition: transform var(--cadence-duration, 3s) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--cadence-duration, 3s) cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--cadence-duration, 3s) cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow var(--cadence-duration, 3s) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.cadence-ring--outer {
  width: 100%;
  height: 100%;
}

.cadence-ring--middle {
  width: 76%;
  height: 76%;
  border-color: rgba(233, 196, 106, 0.25);
}

.cadence-ring--inner {
  width: 52%;
  height: 52%;
  border-color: rgba(230, 57, 70, 0.2);
}

/* Breath Phases - Expanding & Contracting Divine Halo */
.cadence-aura-container.inhale .cadence-ring {
  transform: scale(1.14);
  border-color: rgba(233, 196, 106, 0.6);
  box-shadow: 0 0 35px rgba(233, 196, 106, 0.35),
              inset 0 0 20px rgba(233, 196, 106, 0.15);
  opacity: 0.95;
}

.cadence-aura-container.exhale .cadence-ring {
  transform: scale(0.90);
  border-color: rgba(212, 163, 115, 0.22);
  box-shadow: 0 0 14px rgba(212, 163, 115, 0.1),
              inset 0 0 10px rgba(212, 163, 115, 0.05);
  opacity: 0.45;
}
