/* ═══════════════════════════════════════════════════════════
   DİYAFRAM NEFESİ ÇALIŞMALARI — Nefes Sayacı Sayfası
   ═══════════════════════════════════════════════════════════ */

/* ─── Breath Circle ──────────────────────────────────── */
.breath-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) 0;
}

.breath-circle-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin-bottom: var(--space-2xl);
}

.breath-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.breath-circle-bg {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 4;
}

.breath-circle-progress {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 942;
  stroke-dashoffset: 942;
  transition: stroke-dashoffset 0.3s ease;
}

.breath-inner-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  border: 3px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: width 0.5s ease, height 0.5s ease, background-color 0.3s ease;
}

.breath-inner-circle--inhale {
  width: 260px;
  height: 260px;
  background-color: var(--color-primary-subtle);
}

.breath-inner-circle--hold {
  width: 260px;
  height: 260px;
  border-style: dashed;
}

.breath-inner-circle--exhale {
  width: 160px;
  height: 160px;
  background-color: var(--color-primary-light);
}

.breath-label {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.breath-timer {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  color: var(--color-text-primary);
  margin-top: var(--space-xs);
}

.breath-hint {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}

/* ─── Breath Stats ───────────────────────────────────── */
.breath-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ─── Breath Controls ────────────────────────────────── */
.breath-controls {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.breath-controls__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.breath-controls__row + .breath-controls__row {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.breath-pattern-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
}

.breath-pattern-num {
  font-size: var(--fs-h3);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

.breath-pattern-sep {
  font-size: var(--fs-body);
  color: var(--color-text-tertiary);
  font-weight: var(--fw-medium);
}

.breath-pattern-label {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-top: 2px;
}

.breath-pattern-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* ─── Preset Patterns ────────────────────────────────── */
.preset-patterns {
  margin-bottom: var(--space-xl);
}

.preset-patterns__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-sm);
}

/* ─── Breath Result ──────────────────────────────────── */
.breath-result {
  display: none;
  text-align: center;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  animation: resultSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.breath-result--visible {
  display: block;
}

@keyframes resultSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.breath-result__emoji {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.breath-result__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
}

.breath-result__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-xl);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .breath-circle-wrapper {
    width: 260px;
    height: 260px;
  }

  .breath-inner-circle {
    width: 160px;
    height: 160px;
  }

  .breath-inner-circle--inhale {
    width: 210px;
    height: 210px;
  }

  .breath-inner-circle--exhale {
    width: 120px;
    height: 120px;
  }

  .breath-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .breath-controls__row {
    flex-direction: column;
    align-items: stretch;
  }

  .breath-result__stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}
