/* ── Legacy design tokens ────────────────────────────────────── */
:root {
  --primary:     #0a1628;
  --bg:          #f7fafc;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --muted:       #64748b;
  --accent-blue: #2563EB;
  --accent:      #F59E0B;
  --shadow:      0 2px 12px rgba(10,22,40,0.07);
  --shadow-md:   0 4px 24px rgba(10,22,40,0.10);
  --radius:      16px;
}

/* IDEATION PAGE */
.ideation-page { background: var(--bg); min-height: 100vh; }


.ideation-header { text-align: center; padding: 60px 40px 0; }
.ideation-header .badge { margin-bottom: 16px; }
.ideation-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--primary); margin-bottom: 12px; }
.ideation-header p { color: var(--muted); font-size: 0.95rem; max-width: 500px; margin: 0 auto; }

/* Phase tabs */
.phase-tabs { display: flex; max-width: 760px; margin: 40px auto 0; background: white; border-radius: 50px; padding: 6px; border: 1px solid var(--border); }
.phase-tab { flex: 1; text-align: center; padding: 12px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; background: none; }
.phase-tab.active { background: var(--primary); color: white; }
.phase-tab .tab-icon { font-size: 1rem; }

/* Question card */
.question-wrap { max-width: 760px; margin: 32px auto 80px; padding: 0 24px; }
.question-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-md); }
.q-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 16px; }
.q-text { font-size: 1.3rem; font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.q-hint { font-size: 0.875rem; color: var(--muted); font-style: italic; margin-bottom: 24px; line-height: 1.6; }
textarea.q-input { width: 100%; min-height: 180px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; font-size: 0.9rem; font-family: 'Inter', sans-serif; color: var(--primary); resize: vertical; outline: none; transition: border-color 0.2s; }
textarea.q-input:focus { border-color: var(--accent-blue); }

.q-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.q-word-count { font-size: 0.8rem; color: var(--muted); }
.q-nav { display: flex; gap: 12px; }

/* Progress dots */
.progress-dots { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.dot.done { background: var(--accent-blue); }
.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* Results */
.results-ideation { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-md); display: none; }
.results-ideation.visible { display: block; }
.results-ideation h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 8px; }
.results-ideation > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.angle-card { border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; position: relative; }
.angle-num { position: absolute; top: -12px; left: 20px; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.angle-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.angle-hook { font-size: 0.875rem; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.angle-prompt { font-size: 0.8rem; color: var(--accent-blue); }
.ideation-cta { text-align: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.ideation-cta p { color: var(--muted); font-size: 0.875rem; margin-bottom: 16px; }

.generating-loader { text-align: center; padding: 40px; display: none; }
.generating-loader.visible { display: block; }

@media (max-width: 600px) {
  .question-card { padding: 28px 20px; }
  .phase-tabs { border-radius: 16px; flex-direction: column; }
  .phase-tab.active { border-radius: 12px; }
}
