/* divine.css — 占卜向导 wizard styles */

/* ── Wizard Container ───────────────────────── */
.divine-wizard {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}
.divine-step {
  display: none;
  animation: divFadeIn 0.3s ease;
}
.divine-step.active {
  display: block;
}
@keyframes divFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step Indicator ────────────────────────── */
.divine-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0 0.25rem;
}
.divine-step-indicator.hide { display: none; }
.divine-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  transition: background-color 0.2s, border-color 0.2s;
}
.divine-step-dot.done {
  background: var(--accent);
  border-color: var(--accent);
}
.divine-step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.2);
}
.divine-step-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* ── Prayer Page (Step 2) ──────────────────── */
.divine-prayer-card {
  max-width: 520px;
  margin: 0 auto;
}
.divine-prayer-header {
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.divine-prayer-body {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
  max-height: 200px;
  overflow-y: auto;
}
.divine-prayer-body p {
  font-size: var(--text-md);
  line-height: 2;
  color: var(--accent);
  text-align: justify;
  margin: 0;
}
.divine-pray-personal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

/* ── Mode Selection (Step 1) ────────────────── */
.divine-modes {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.divine-mode-card {
  flex: 1;
  max-width: 200px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.divine-mode-card:active { transform: scale(0.97); }
.divine-mode-card:hover,
.divine-mode-card.selected {
  border-color: var(--accent);
  background: rgba(217, 119, 6, 0.08);
}
.divine-mode-card .mode-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.divine-mode-card .mode-title {
  font-weight: 600;
  font-size: var(--text-md);
  margin-bottom: 0.25rem;
}
.divine-mode-card .mode-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Category Grid (Step 2) ─────────────────── */
.divine-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 480px) {
  .divine-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}
.divine-cat-tile {
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.divine-cat-tile:active { transform: scale(0.96); }
.divine-cat-tile:hover,
.divine-cat-tile.selected {
  border-color: var(--accent);
  background: rgba(217, 119, 6, 0.08);
}
.divine-cat-tile .cat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}
.divine-cat-tile .cat-label {
  font-size: var(--text-base);
  font-weight: 500;
}

/* ── (Step 3 form removed — inputs are now inline in prayer step) ── */

/* ── Shake Area (Steps 4-10) ────────────────── */
.divine-shake-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.divine-shake-circle {
  width: min(180px, 45vw);
  height: min(180px, 45vw);
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s;
  animation: pulse 2s ease-in-out infinite;
}
.divine-shake-circle:active {
  transform: scale(0.92);
}
.divine-shake-circle.shaking {
  animation: shake 0.4s ease-in-out;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0.3); }
  50%      { box-shadow: 0 0 0 16px rgba(217,119,6,0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px) rotate(-3deg); }
  40%      { transform: translateX(8px) rotate(3deg); }
  60%      { transform: translateX(-6px) rotate(-2deg); }
  80%      { transform: translateX(6px) rotate(2deg); }
}
.divine-shake-hint {
  font-size: var(--text-base);
  color: var(--text-muted);
  text-align: center;
}

/* ── Progress Bar ───────────────────────────── */
.divine-progress {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 280px;
}
.divine-progress-seg {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  transition: background 0.3s;
}
.divine-progress-seg.done {
  background: var(--accent);
}
.divine-progress-seg.active {
  background: var(--accent);
  animation: progressPulse 1s ease-in-out infinite;
}
@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ── Yao Preview (building hexagram bottom-to-top) ── */
.divine-yao-preview {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  min-height: 100px;
  align-items: center;
  margin: 1rem 0;
}
.divine-yao-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 10px;
  animation: divFadeIn 0.3s ease;
}
.divine-yao-line .yao-solid {
  width: 64px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.divine-yao-line .yao-broken {
  display: flex;
  gap: 6px;
}
.divine-yao-line .yao-broken span {
  width: 28px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.divine-yao-line .yao-moved-mark {
  font-size: var(--text-xs);
  color: var(--accent);
  margin-left: 4px;
}

/* ── Gratitude Page (Step 11) ───────────────── */
.divine-gratitude {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  gap: 1rem;
}
.divine-gratitude .gratitude-icon {
  font-size: 3rem;
}
.divine-gratitude .gratitude-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
}
.divine-gratitude .gratitude-countdown {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Wizard Navigation ──────────────────────── */
.divine-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}
.divine-step-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.75rem;
}
.divine-step-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

/* ── Saved Divinations List ─────────────────── */
/* .divine-list-item* removed — replaced by unified .record-list-item in pages.css */

