/* Quietude — App styles (timer) */

/* ── APP BODY ── */
.app-body {
  min-height: 100vh;
  background: var(--sand);
  overflow-x: hidden;
}

/* ── NAV ── */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8vw;
  border-bottom: 1px solid var(--sand-deep);
}
.app-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.app-nav-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
}
.streak-flame {
  color: #e07b39;
  display: flex;
  align-items: center;
}

/* ── MAIN ── */
.app-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 60px 8vw;
}

/* ── DURATION SECTION ── */
.duration-section {
  text-align: center;
  max-width: 640px;
  width: 100%;
}
.duration-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}
.duration-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.preset-btn {
  padding: 12px 28px;
  border: 1px solid var(--sand-deep);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.preset-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--sand);
}
.preset-btn.selected {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--sand);
}
.duration-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.custom-min-input {
  width: 80px;
  padding: 10px 14px;
  border: 1px solid var(--sand-deep);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 2px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.custom-min-input:focus {
  border-color: var(--charcoal-mid);
}
.custom-unit {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ── TIMER CONTAINER ── */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 480px;
}
.timer-circle-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}
.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.timer-ring-bg {
  fill: none;
  stroke: var(--sand-deep);
  stroke-width: 4;
}
.timer-ring-progress {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 553.2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.timer-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.timer-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1;
}
.timer-phase {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── TIMER CONTROLS ── */
.timer-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  padding: 8px;
  border-radius: 50%;
}
.ctrl-btn:hover { color: var(--charcoal); }
.ctrl-main {
  width: 56px;
  height: 56px;
  background: var(--charcoal);
  color: var(--sand) !important;
  border-radius: 50%;
  padding: 0;
  transition: background 0.2s, transform 0.1s;
}
.ctrl-main:hover {
  background: var(--charcoal-mid) !important;
  transform: scale(1.05);
}

/* ── BACK LINK ── */
.back-link {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  font-weight: 300;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 4px;
}
.back-link:hover { color: var(--text); }

/* ── COMPLETE SECTION ── */
.complete-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.complete-bell {
  color: var(--text-light);
  margin-bottom: 8px;
}
.complete-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.complete-sub {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
}
.complete-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  padding: 14px 36px;
  background: var(--charcoal);
  color: var(--sand);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--charcoal-mid); }
.btn-ghost {
  padding: 14px 36px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--sand-deep);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

/* ── FULLSCREEN OVERLAY ── */
.fs-overlay {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
.fs-exit {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.fs-exit:hover { color: var(--sand); }
.fs-timer-wrap {
  position: relative;
  width: 240px;
  height: 240px;
}
.fs-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.fs-ring .timer-ring-progress {
  stroke: var(--sand);
}
.fs-ring .timer-ring-bg {
  stroke: rgba(255,255,255,0.1);
}
.fs-timer-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-timer-display .timer-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--sand);
  letter-spacing: -0.02em;
}
.fs-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fs-controls .ctrl-btn { color: var(--sand-deep); }
.fs-controls .ctrl-btn:hover { color: var(--sand); }
.fs-controls .ctrl-main {
  background: var(--sand);
  color: var(--charcoal) !important;
}
.fs-controls .ctrl-main:hover {
  background: var(--sand-deep) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .app-nav { padding: 20px 6vw; }
  .app-main { padding: 40px 6vw; }
  .duration-presets { gap: 8px; }
  .preset-btn { padding: 10px 20px; font-size: 0.85rem; }
  .timer-circle-wrapper { width: 180px; height: 180px; }
  .timer-time { font-size: 2.6rem; }
}