/* Gut-Brain Protocol Quiz Stylesheet */
/* Matching getgutbrain.com visual identity */

:root {
  --amare-purple-dark: #2B0F42;
  --amare-purple: #582186;
  --amare-purple-light: #7A35B3;
  --amare-purple-soft: #F4EEFB;
  --amare-gold: #C59B27;
  --amare-gold-light: #FFF9E6;
  --amare-green: #1B7A43;
  --bg-color: #F8F7FA;
  --surface: #FFFFFF;
  --text-dark: #140D1C;
  --text-muted: #574F62;
  --border: #E3DCEA;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(43, 15, 66, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  padding: 2rem 1rem;
}

.quiz-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header */
.quiz-header {
  background: linear-gradient(135deg, var(--amare-purple-dark) 0%, var(--amare-purple) 100%);
  color: #FFFFFF;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.quiz-badge {
  display: inline-block;
  background: var(--amare-gold);
  color: #1A0829;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.quiz-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.quiz-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-container {
  background: rgba(0, 0, 0, 0.04);
  height: 6px;
  width: 100%;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--amare-gold);
  width: 25%;
  transition: width 0.35s ease;
}

/* Body / Step Container */
.quiz-body {
  padding: 2rem 1.75rem;
}

.step-indicator {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amare-purple);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.question-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--amare-purple-dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* Option Cards */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-color);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.option-card:hover {
  border-color: var(--amare-purple-light);
  background: var(--amare-purple-soft);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--amare-purple);
  background: var(--amare-purple-soft);
  box-shadow: 0 4px 12px rgba(88, 33, 134, 0.12);
}

.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-card.selected .option-radio {
  border-color: var(--amare-purple);
  background: var(--amare-purple);
}

.option-card.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFF;
}

.option-content {
  display: flex;
  flex-direction: column;
}

.option-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.option-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Navigation Buttons */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-body);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-color);
  color: var(--text-dark);
}

.btn-primary {
  background: var(--amare-purple);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(88, 33, 134, 0.25);
}

.btn-primary:hover {
  background: var(--amare-purple-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #CCC5D8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Loading / Analyzing State */
.loading-box {
  text-align: center;
  padding: 3rem 1.5rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--amare-purple-soft);
  border-top: 4px solid var(--amare-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--amare-purple-dark);
  margin-bottom: 0.5rem;
}

.loading-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Result Section */
.result-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-badge {
  background: var(--amare-gold-light);
  border: 1px solid var(--amare-gold);
  color: #5A4300;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  align-self: flex-start;
}

.result-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--amare-purple-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(88, 33, 134, 0.15);
}

@media (max-width: 600px) {
  .result-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.result-img-box {
  background: #FFF;
  border-radius: 8px;
  padding: 1rem;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.result-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.result-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--amare-purple-dark);
  margin-bottom: 0.5rem;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.result-price-tag {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--amare-purple);
}

/* Promo Banner Box */
.promo-callout {
  background: #FFFDF5;
  border: 1.5px dashed var(--amare-gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.promo-info-title {
  font-weight: 700;
  color: #5A4300;
  font-size: 0.9rem;
}

.promo-info-desc {
  font-size: 0.8rem;
  color: #7A5F00;
}

.promo-copy-btn {
  background: var(--amare-gold);
  color: #1A0829;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.promo-copy-btn:hover {
  opacity: 0.85;
}

/* Scientific Benefits List */
.benefits-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.benefits-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--amare-purple-dark);
  margin-bottom: 0.75rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.benefits-list li::before {
  content: '✓';
  color: var(--amare-green);
  font-weight: 800;
}

/* Actions */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-checkout-btn {
  background: linear-gradient(135deg, var(--amare-purple) 0%, var(--amare-purple-dark) 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(88, 33, 134, 0.3);
  transition: all 0.2s ease;
  display: block;
}

.cta-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(88, 33, 134, 0.4);
}

.guarantee-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.retake-btn {
  background: transparent;
  border: none;
  color: var(--amare-purple);
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  font-weight: 600;
}
