/* ── Session View ────────────────────────────────────────────────── */
.session-view {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--header-h) - var(--bnav-h));
  padding: var(--sp-4);
  gap: var(--sp-4);
}

/* Progress header */
.session-progress {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
}

.session-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

.session-counter strong {
  color: var(--c-text);
  font-size: var(--text-md);
}

.session-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-surface-3);
  transition: background var(--t-mid), transform var(--t-mid) var(--ease-spring);
  flex-shrink: 0;
}
.session-dot.done    { background: var(--c-success); }
.session-dot.current { background: var(--c-amber); transform: scale(1.35); box-shadow: 0 0 0 3px var(--c-amber-pale); }

/* ── Card Stack ──────────────────────────────────────────────────── */
.card-stack-area {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
}

/* Depth stack illusion below current card */
.card-stack-depth {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: calc(100% - 32px);
  height: 100%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  z-index: 0;
}
.card-stack-depth-2 {
  bottom: -8px;
  transform: translateX(-50%) scale(0.90);
  background: var(--c-surface);
  opacity: 0.5;
  z-index: -1;
}

/* The active bottle card */
.bottle-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-float);
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
  will-change: transform, opacity;
}

.bottle-card.exit-left  { transform: translateX(-110%) rotate(-8deg); opacity: 0; }
.bottle-card.exit-right { transform: translateX(110%) rotate(8deg); opacity: 0; }
.bottle-card.enter      { animation: cardEnter var(--t-mid) var(--ease-spring) both; }

@keyframes cardEnter {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.bottle-number {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: var(--sp-2);
}

.bottle-label {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--c-text);
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}

.bottle-traits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.trait-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 5px 10px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-text-muted);
}
.trait-pill .trait-icon { font-size: 13px; }

.bottle-note-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.note-done-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-success-pale);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--r-full);
  padding: 4px var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-success);
}

.bottle-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ── Note Wizard ─────────────────────────────────────────────────── */
.note-wizard {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.wizard-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-bottom: var(--sp-2);
}

.wizard-steps-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
}

.wizard-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-surface-3);
  transition: background var(--t-mid), transform var(--t-mid) var(--ease-spring), width var(--t-mid);
}
.wizard-step-dot.current  { background: var(--c-amber); transform: scale(1.25); }
.wizard-step-dot.done     { background: var(--c-success); }

.wizard-step-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-amber);
  text-align: center;
}

.wizard-body {
  position: relative;
  min-height: 160px;
}

.wizard-step-panel {
  display: none;
  flex-direction: column;
  gap: var(--sp-3);
  animation: stepFadeIn var(--t-mid) var(--ease) both;
}
.wizard-step-panel.active { display: flex; }

@keyframes stepFadeIn {
  from { transform: translateX(16px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.step-prompt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--c-text);
  line-height: 1.4;
}

.step-sub {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  margin-top: -var(--sp-2);
}

.wizard-nav {
  display: flex;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}

.wizard-nav .btn-ghost { flex: 1; }
.wizard-nav .btn-primary { flex: 2; }

/* ── Session complete screen ─────────────────────────────────────── */
.session-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  gap: var(--sp-4);
}

.session-complete-icon {
  font-size: 56px;
  line-height: 1;
}

.session-complete h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--c-text);
}

.session-complete p {
  color: var(--c-text-muted);
  max-width: 280px;
  line-height: 1.6;
}

/* ── All notes overview (in session) ────────────────────────────── */
.notes-overview {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.note-overview-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.note-overview-item:hover { border-color: var(--c-border-strong); }
.note-overview-item.done  { border-color: rgba(34, 197, 94, 0.3); }

.note-overview-item .bottle-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-text-faint);
  min-width: 24px;
}

.note-overview-item .bottle-name-item {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

.note-overview-item .check {
  color: var(--c-success);
  font-size: 18px;
}
