/* ==========================================================================
   FEMININE VITALITY QUIZ - STYLES & DESIGN SYSTEM (FACEBOOK AD COMPLIANT)
   ========================================================================== */

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

:root {
  --bg-primary: #FAF7F5;
  --bg-surface: #FFFFFF;
  --bg-soft: #F4ECE6;
  
  --text-main: #2D2523;
  --text-muted: #6E615D;
  --text-light: #A0938E;
  
  --accent-rose: #C88A7B;
  --accent-rose-hover: #B27668;
  --accent-sage: #5B7B6D;
  --accent-sage-light: #E7EFEB;
  --accent-gold: #D4A359;
  
  --border-subtle: #ECE4DE;
  --border-accent: #DBCDC4;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-md: 0 8px 30px rgba(45, 37, 35, 0.08);
  --shadow-lg: 0 16px 40px rgba(45, 37, 35, 0.12);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Compliance Header Banner */
.compliance-bar {
  background-color: var(--accent-sage);
  color: #FFFFFF;
  font-size: 0.8rem;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Main Navbar */
.quiz-header {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-sage));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-weight: 700;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Quiz Container & Card Layout */
.quiz-wrapper {
  flex-grow: 1;
  max-width: 680px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
}

.quiz-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 32px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-track {
  height: 8px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-sage));
  transition: width 0.4s ease;
}

/* Question Styling */
.question-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
}

.question-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-btn {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.option-btn:hover {
  border-color: var(--accent-rose);
  background-color: #FFFDFD;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200, 138, 123, 0.12);
}

.option-btn.selected {
  border-color: var(--accent-rose);
  background-color: var(--bg-soft);
  color: var(--accent-rose-hover);
  font-weight: 600;
}

.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.option-btn.selected .option-indicator {
  background-color: var(--accent-rose);
  border-color: var(--accent-rose);
  color: white;
}

/* Loading Analyzing Screen */
.loading-screen {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-soft);
  border-top: 4px solid var(--accent-rose);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.loading-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Result Screen */
.result-screen {
  display: none;
}

.result-badge {
  display: inline-block;
  background-color: var(--accent-sage-light);
  color: var(--accent-sage);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.result-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
}

.result-summary {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.recommendations-box {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.recommendations-box h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #3D3330;
}

.rec-icon {
  color: var(--accent-sage);
  font-weight: bold;
}

.cta-button {
  display: block;
  width: 100%;
  background-color: var(--accent-rose);
  color: #FFFFFF;
  text-align: center;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(200, 138, 123, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-rose-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(200, 138, 123, 0.4);
}

/* Footer Compliance */
.quiz-footer {
  background-color: #231C1A;
  color: #8C807B;
  padding: 32px 20px;
  font-size: 0.78rem;
  text-align: center;
  margin-top: auto;
  line-height: 1.6;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .quiz-card {
    padding: 24px 20px;
  }
  .question-title {
    font-size: 1.35rem;
  }
  .result-title {
    font-size: 1.6rem;
  }
}
