/* ===== TEST PAGE STYLES (includes meditation + quiz + calculating) ===== */

/* ===== HERO SECTION ===== */
.hero {
  min-height: 80vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
}
.hero h1 + .hero-sub-en {
  font-size: 1.1rem; color: var(--dim);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero h1 + .hero-sub-en .accent { color: var(--accent2); font-weight: 700; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  background: var(--glow); color: var(--accent2);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(108,99,255,0.2);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 900;
  line-height: 1.15; margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  max-width: 600px;
}
.hero h1 .accent { color: var(--accent2); }
.hero-sub {
  font-size: 1.05rem; color: var(--dim);
  max-width: 480px; line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-cta { margin-bottom: 1.5rem; }
.hero-cta-dual {
  display: flex; flex-direction: column;
  gap: 0.75rem; align-items: center;
}
@media (min-width: 420px) {
  .hero-cta-dual { flex-direction: row; justify-content: center; }
}
.hero-meta {
  display: flex; gap: 2rem;
  font-size: 0.82rem; color: var(--muted);
}
.hero-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ===== MEDITATION STAGE ===== */
.meditation-stage {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 500; background: #0b0b1a;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
.meditation-stage.active {
  opacity: 1; pointer-events: auto;
}
#breathing-container {
  width: 100%; max-width: 400px; padding: 2rem;
}

/* ===== QUIZ STAGE ===== */
.quiz-stage {
  display: none;
  min-height: 100vh;
  padding-top: 2rem;
}
.quiz-stage.active { display: block; }

/* Mode selector */
.quiz-mode-select {
  max-width: 500px; margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
}
.quiz-mode-select h2 {
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 0.5rem;
}
.quiz-mode-select p {
  font-size: 0.9rem; color: var(--dim);
  margin-bottom: 1.5rem;
}
.quiz-mode-btns {
  display: flex; gap: 1rem; justify-content: center;
}
.quiz-mode-btn {
  flex: 1; max-width: 200px;
  padding: 1.2rem 1rem;
  border-radius: 16px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.quiz-mode-btn:hover {
  border-color: var(--accent);
  background: var(--glow);
}
.quiz-mode-btn .mode-time {
  font-size: 1.8rem; font-weight: 900;
  color: var(--accent2); display: block;
}
.quiz-mode-btn .mode-label {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text); display: block;
  margin-top: 0.3rem;
}
.quiz-mode-btn .mode-desc {
  font-size: 0.75rem; color: var(--dim);
  display: block; margin-top: 0.25rem;
}

/* Question area */
.quiz-question {
  max-width: 580px; margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
  animation: fadeIn 0.4s ease both;
}
.quiz-question-num {
  font-size: 0.78rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.quiz-question-text {
  font-size: 1.2rem; font-weight: 600;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  min-height: 3.6rem;
}

/* Likert scale */
.likert {
  display: flex; justify-content: center;
  align-items: center; gap: 0.5rem;
  padding: 0 1rem;
  margin-bottom: 1rem;
}
.likert-labels {
  display: flex; justify-content: space-between;
  max-width: 440px; margin: 0 auto 2rem;
  padding: 0 0.25rem;
}
.likert-labels span {
  font-size: 0.72rem; color: var(--muted);
  font-weight: 600;
}

.likert-option {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  padding: 0.25rem;
}
.likert-option:hover { transform: scale(1.2); }
.likert-option:active { transform: scale(0.9); }

.likert-dot {
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(167,139,250,0.08));
  border: 2px solid rgba(99,102,241,0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
html.dark .likert-dot {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(167,139,250,0.15));
  border-color: rgba(167,139,250,0.3);
}
/* 7 sizes: strong disagree(large) -> neutral(small) -> strong agree(large) */
.likert-option[data-value="-3"] .likert-dot,
.likert-option[data-value="3"] .likert-dot { width: 52px; height: 52px; }
.likert-option[data-value="-2"] .likert-dot,
.likert-option[data-value="2"] .likert-dot { width: 42px; height: 42px; }
.likert-option[data-value="-1"] .likert-dot,
.likert-option[data-value="1"] .likert-dot { width: 34px; height: 34px; }
.likert-option[data-value="0"] .likert-dot { width: 26px; height: 26px; }

/* Disagree side color (warm purple) */
.likert-option[data-value="-3"].selected .likert-dot {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4), 0 0 0 4px rgba(99,102,241,0.12);
}
.likert-option[data-value="-2"].selected .likert-dot {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(99,102,241,0.3), 0 0 0 3px rgba(99,102,241,0.1);
  opacity: 0.85;
}
.likert-option[data-value="-1"].selected .likert-dot {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(99,102,241,0.2);
  opacity: 0.65;
}
/* Neutral */
.likert-option[data-value="0"].selected .likert-dot {
  background: var(--dim); border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Agree side color (soft violet) */
.likert-option[data-value="1"].selected .likert-dot {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(167,139,250,0.2);
  opacity: 0.65;
}
.likert-option[data-value="2"].selected .likert-dot {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(167,139,250,0.3), 0 0 0 3px rgba(167,139,250,0.1);
  opacity: 0.85;
}
.likert-option[data-value="3"].selected .likert-dot {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(167,139,250,0.4), 0 0 0 4px rgba(167,139,250,0.12);
}

/* Quiz nav */
.quiz-nav {
  display: flex; justify-content: center;
  gap: 1rem; margin-top: 1.5rem;
  padding: 0 1.25rem;
}

/* ===== CALCULATING STAGE ===== */
.calc-stage {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.calc-stage.active { display: flex; }

.calc-spinner {
  width: 60px; height: 60px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.calc-text {
  font-size: 1.1rem; font-weight: 600;
  color: var(--dim);
  animation: pulse 1.5s ease infinite;
}

/* ===== SEO CONTENT BELOW FOLD ===== */
.seo-section {
  padding: 3rem 0;
}
.seo-section h2 {
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Types grid */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 0 1.25rem;
  max-width: 680px; margin: 0 auto;
}
.type-card {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.type-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}
.type-card-code {
  font-size: 1rem; font-weight: 900;
  color: var(--accent2);
  letter-spacing: 0.05em;
}
.type-card-name {
  font-size: 0.68rem; color: var(--dim);
  margin-top: 0.2rem; font-weight: 600;
}

@media (max-width: 374px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.8rem; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
  #breathing-container { max-width: 500px; }
}
