/* HealCanvas Creative Session Styles */
/* Design tokens inherited from landing page */

:root {
  --bg: #FAF7F2;
  --fg: #2C2A27;
  --accent: #7A9E7E;
  --accent-warm: #C4846A;
  --muted: #8B8680;
  --surface: #FFFFFF;
  --border: #E8E4DC;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Navigation ──────────────────────────────── */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav__back {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__back:hover { color: var(--fg); }

/* ── Session Container ─────────────────────────── */
.session-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Phase: Breathing ─────────────────────────── */
.phase {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.phase.active { display: flex; }

.breathing-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  animation: breathe 8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(122, 158, 126, 0);
}

@keyframes breathe {
  0%, 100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(122, 158, 126, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(122, 158, 126, 0); }
}

.breathing-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.breathing-hint {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.breathing-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.6;
}

/* ── Phase: Art Prompt ───────────────────────── */
.art-prompt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 12px rgba(44, 42, 39, 0.06);
}

.art-prompt-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: var(--space-md);
}

.art-prompt-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.art-prompt-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto var(--space-md);
}

.art-prompt-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto;
}

.art-prompt-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* ── Phase: Reflection ──────────────────────── */
.reflection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md);
  width: 100%;
  box-shadow: 0 2px 12px rgba(44, 42, 39, 0.06);
}

.reflection-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  text-align: center;
}

.reflection-question {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

.reflection-textarea {
  width: 100%;
  min-height: 160px;
  padding: var(--space-sm) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  resize: vertical;
  transition: border-color 0.2s;
  outline: none;
}

.reflection-textarea:focus {
  border-color: var(--accent);
}

.reflection-textarea::placeholder {
  color: var(--muted);
}

.reflection-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

/* ── Phase: Complete ─────────────────────────── */
.complete-card {
  text-align: center;
  width: 100%;
}

.complete-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.complete-check svg {
  width: 32px;
  height: 32px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.complete-headline {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.complete-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.65;
}

.complete-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  letter-spacing: 0.01em;
}

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

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #6a8e6e;
  box-shadow: 0 2px 8px rgba(122, 158, 126, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface);
  color: var(--fg);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
}
.btn-ghost:hover { color: var(--fg); }

/* ── Progress indicator ──────────────────────── */
.session-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
  justify-content: center;
}
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.progress-dot.done { background: var(--accent); }
.progress-dot.active { background: var(--accent-warm); }

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 1rem 1.25rem; }
  .session-wrap {
    padding: var(--space-lg) var(--space-sm);
    justify-content: flex-start;
    padding-top: var(--space-lg);
  }
  .art-prompt-card { padding: var(--space-md) var(--space-sm); }
  .reflection-card { padding: var(--space-md) var(--space-sm); }
  .btn { padding: 0.65rem 1.25rem; font-size: 0.875rem; }
}