@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: #FFFBF0;
  color: #1A1A2E;
  min-height: 100vh;
  overflow-x: hidden;
}

/* NAV */
.quiz-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 24px;
  background: rgba(255,251,240,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13,148,136,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1A1A2E; }
.nav-logo img { height: 36px; }
.nav-logo strong { font-size: 1.1rem; display: block; line-height: 1.2; }
.nav-logo span { font-size: 0.7rem; color: #0D9488; letter-spacing: 1px; text-transform: uppercase; }

/* SCREENS */
.screen { display: none; min-height: 100vh; padding: 80px 24px 40px; }
.screen.active { display: flex; align-items: center; justify-content: center; animation: fadeUp 0.5s ease; }

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

/* INTRO */
.intro-card {
  max-width: 520px; text-align: center;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.intro-icon { font-size: 3rem; margin-bottom: 16px; }
.intro-card h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.intro-card h1 span { color: #0D9488; }
.intro-card > p { color: #64748B; line-height: 1.7; margin-bottom: 28px; font-size: 1.05rem; }
.intro-card em { color: #0D9488; font-style: normal; font-weight: 600; }

.intro-stats {
  display: flex; justify-content: center; gap: 32px;
  margin-bottom: 32px; padding: 16px 0;
  border-top: 1px solid rgba(13,148,136,0.1);
  border-bottom: 1px solid rgba(13,148,136,0.1);
}
.intro-stats div { text-align: center; }
.intro-stats strong { display: block; font-size: 1.5rem; color: #0D9488; }

.btn-start {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0D9488, #0F766E);
  color: white; border: none; padding: 16px 36px;
  border-radius: 50px; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
  font-family: inherit; box-shadow: 0 8px 24px rgba(13,148,136,0.3);
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13,148,136,0.4); }

.intro-note { font-size: 0.8rem; color: #94A3B8; margin-top: 16px; }

/* PROGRESS BAR */
.progress-bar {
  position: fixed; top: 60px; left: 0; right: 0; height: 4px;
  background: rgba(13,148,136,0.1); z-index: 99;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #0D9488, #2DD4BF);
  border-radius: 0 4px 4px 0;
  transition: width 0.5s ease;
}

/* QUIZ */
.quiz-container {
  max-width: 600px; width: 100%;
}
.quiz-meta {
  font-size: 0.8rem; font-weight: 600; color: #0D9488;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.quiz-question {
  font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: 32px;
}
.q-icon { font-size: 1.4rem; margin-right: 4px; }

.options { display: flex; flex-direction: column; gap: 14px; }
.fade-in { animation: fadeUp 0.35s ease; }

.option-btn {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(13,148,136,0.12);
  border-radius: 16px; padding: 18px 22px;
  font-size: 1rem; text-align: left; cursor: pointer;
  transition: all 0.3s; font-family: inherit; color: #1A1A2E;
}
.option-btn:hover { border-color: #0D9488; background: rgba(13,148,136,0.04); transform: translateX(4px); }
.option-btn.selected { border-color: #0D9488; background: rgba(13,148,136,0.1); }
.option-btn.selected .opt-letter { background: #0D9488; color: white; }

.opt-letter {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  background: #F0FDFA; color: #0D9488;
  transition: all 0.3s;
}

/* RESULT */
#result-screen { padding-top: 80px; padding-bottom: 60px; }
.result-card {
  max-width: 580px; width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  animation: fadeUp 0.6s ease;
}
.result-tag {
  display: inline-block; padding: 6px 18px;
  border-radius: 50px; font-size: 0.75rem;
  font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}
.result-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.result-subtitle { font-size: 1.1rem; color: #64748B; margin-bottom: 28px; }
.sanskrit-big { font-size: 1.4rem; margin-right: 6px; }

/* DOSHA BARS */
.dosha-bars { margin-bottom: 28px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-label { width: 52px; font-size: 0.85rem; font-weight: 600; }
.bar-track { flex: 1; height: 12px; background: #F0FDFA; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 1s ease; }
.bar-pct { width: 40px; text-align: right; font-size: 0.85rem; font-weight: 700; }

/* TRAITS */
.result-traits { margin-bottom: 24px; }
.result-traits h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.trait-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.trait-pill {
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 500;
  border: 1.5px solid; background: white;
}

/* FOODS */
.foods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.foods-col { padding: 16px; border-radius: 16px; }
.foods-col.best { background: #F0FDFA; }
.foods-col.avoid { background: #FFF7ED; }
.foods-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.foods-col.best h4 { color: #0D9488; }
.foods-col.avoid h4 { color: #D97706; }
.foods-col ul { list-style: none; }
.foods-col li { font-size: 0.85rem; padding: 4px 0; color: #64748B; }
.foods-col.best li::before { content: "✓ "; color: #0D9488; font-weight: 700; }
.foods-col.avoid li::before { content: "→ "; color: #D97706; }

/* SHARE */
.share-section { text-align: center; margin-bottom: 24px; padding-top: 24px; border-top: 1px solid rgba(13,148,136,0.1); }
.share-label { font-size: 0.85rem; color: #64748B; margin-bottom: 12px; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: white; border: none;
  padding: 14px 28px; border-radius: 50px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,0.4); }
.btn-copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1.5px solid #CBD5E1;
  padding: 10px 20px; border-radius: 50px;
  font-size: 0.85rem; cursor: pointer; color: #64748B;
  font-family: inherit; margin-left: 10px; transition: all 0.3s;
}
.btn-copy:hover { border-color: #0D9488; color: #0D9488; }

/* CTA */
.cta-section {
  text-align: center; padding: 24px;
  background: linear-gradient(135deg, #0A3D3D, #0D9488);
  border-radius: 20px; color: white;
}
.cta-section p { font-size: 0.95rem; margin-bottom: 14px; opacity: 0.9; }
.btn-app {
  display: inline-block; padding: 14px 32px;
  background: white; color: #0D9488;
  border-radius: 50px; font-weight: 700;
  text-decoration: none; font-size: 1rem;
  transition: all 0.3s;
}
.btn-app:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* MOBILE */
@media (max-width: 640px) {
  .intro-card { padding: 32px 24px; }
  .intro-card h1 { font-size: 1.7rem; }
  .intro-stats { gap: 20px; }
  .quiz-question { font-size: 1.3rem; }
  .result-card { padding: 28px 20px; }
  .result-title { font-size: 1.5rem; }
  .foods-grid { grid-template-columns: 1fr; }
  .btn-copy { margin-left: 0; margin-top: 10px; }
}
