/* ===== PomPom — Timer Styles ===== */

.timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Timer Ring */
.timer-ring-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.timer-ring-bg {
  stroke: var(--surface-light);
}

.timer-ring-progress {
  transition: stroke-dashoffset 0.5s linear, stroke 0.3s;
}

.timer-ring-progress.focus { stroke: var(--accent); }
.timer-ring-progress.short-break { stroke: var(--success); }
.timer-ring-progress.long-break { stroke: var(--secondary); }

.timer-display {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timer-text {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text);
}

.timer-phase {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Session Counter */
.session-counter {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.session-counter span {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

/* Controls */
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 72px;
  text-align: center;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
  background: var(--warning);
  color: #fff;
}

.btn-ghost {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--border); }

/* Project Chips */
.project-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.project-chip:active { transform: scale(0.95); }

.project-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Running state */
.timer-section.running .timer-text {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Paused state */
.timer-section.paused .timer-text {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
