/* ===== BREATHE PAGE ===== */

/* Full-page background canvas */
.breathe-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.breathe-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ---- Setup panel ---- */
.breathe-page-header {
  padding: 8rem 0 2rem;
  text-align: center;
}

/* Technique grid */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.technique-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  width: 100%;
}

.technique-card:hover {
  border-color: rgba(139, 124, 248, 0.45);
  transform: translateY(-2px);
}

.technique-card.active {
  border-color: var(--accent);
  background: var(--surface2);
  box-shadow: 0 0 24px rgba(139, 124, 248, 0.15);
}

.technique-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.technique-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.technique-card__sub {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.technique-card__desc {
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Options row */
.breathe-options {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 1.5rem 0;
  padding: 1.2rem 1.6rem;
}

.breathe-option-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.breathe-option-row label {
  font-size: 0.78rem;
  color: var(--muted);
}

.breathe-start-row {
  padding-bottom: 5rem;
}

/* ---- Active session ---- */
.breathe-session {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 2.5rem;
  padding: 5rem 1.5rem 3rem;
}

.breathe-exit {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  z-index: 10;
}

.breathe-exit:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Ring */
.breathe-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathe-ring-outer {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 124, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: transform 4s ease-in-out, opacity 4s ease-in-out;
}

.breathe-ring-inner {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(139, 124, 248, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-shadow: 0 0 24px rgba(139, 124, 248, 0.2);
  transform: scale(1);
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}

.breathe-phase-label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.breathe-count-label {
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
}

/* Info row below ring */
.breathe-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.breathe-technique-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.breathe-cycle-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.breathe-progress {
  width: 220px;
  height: 3px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.breathe-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Mood rating buttons (post-session modal) */
.breathe-mood-btn:hover,
.breathe-mood-btn.selected {
  border-color: var(--accent) !important;
  background: rgba(139,124,248,0.15) !important;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 640px) {
  .technique-grid {
    grid-template-columns: 1fr 1fr;
  }
  .breathe-ring-outer { width: 240px; height: 240px; }
  .breathe-ring-inner { width: 170px; height: 170px; }
  .breathe-phase-label { font-size: 1.1rem; }
  .breathe-count-label { font-size: 1.8rem; }
}

@media (max-width: 380px) {
  .technique-grid { grid-template-columns: 1fr; }
}
