/* ══════════════════════════════════════════════════════════════════
   QUIZ STYLES
   ══════════════════════════════════════════════════════════════════ */

/* ── QUIZ CONTAINER ── */
.quiz-container {
  max-width: 800px;
  margin: 100px auto 60px;
  padding: 0 20px;
  min-height: calc(100vh - 200px);
}

/* ── QUIZ SCREENS ── */
.quiz-screen {
  display: none;
  animation: fadeIn 0.4s ease-in;
}

.quiz-screen.active {
  display: block;
}

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

/* ── START SCREEN ── */
.quiz-hero {
  text-align: center;
  margin-bottom: 48px;
}

.quiz-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.quiz-hero h1 {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.quiz-tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.quiz-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--bg2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 16px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.btn-large {
  font-size: 18px;
  padding: 16px 48px;
  display: block;
  margin: 0 auto;
  min-width: 200px;
}

/* ── PROGRESS BAR ── */
.progress-container {
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.3s ease;
  border-radius: 8px;
}

.progress-text {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* ── QUESTION ── */
.question-container {
  margin-bottom: 32px;
}

.question-text {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.3;
}

.answers-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.answer-btn {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.answer-btn:hover {
  background: var(--bg3);
  border-color: var(--blue);
  transform: translateX(4px);
}

.answer-btn:active {
  transform: translateX(2px);
}

.btn-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all 0.2s;
}

.btn-back:hover {
  background: var(--bg2);
  color: var(--text);
}

/* ── RESULTS SCREEN ── */
.results-hero {
  text-align: center;
  margin-bottom: 48px;
}

.results-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.results-hero h1 {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--text);
  margin-bottom: 16px;
}

.results-tagline {
  font-size: 16px;
  color: var(--text-muted);
}

.results-container {
  margin-bottom: 48px;
}

.result-card {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.result-card.top-match {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(0, 168, 232, 0.05) 100%);
}

.result-rank {
  display: inline-block;
  font-size: 48px;
  margin-bottom: 16px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.result-title {
  flex: 1;
}

.result-title h2 {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 8px;
}

.result-match {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.result-section {
  margin-bottom: 24px;
}

.result-section h3 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-section li {
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.result-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: bold;
}

.salary-range {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.salary-item {
  flex: 1;
  min-width: 120px;
}

.salary-item strong {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.salary-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}

.result-cta {
  margin-top: 20px;
}

.btn-learn-more {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blue);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-learn-more:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

/* ── RESULTS ACTIONS ── */
.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
}

.btn-secondary:hover {
  background: var(--bg2);
  border-color: var(--blue);
}

/* ── SHARE SECTION ── */
.share-section {
  text-align: center;
  padding: 32px;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.share-section p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 14px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn span {
  font-size: 16px;
  font-weight: 700;
}

.share-btn.twitter {
  background: #000;
  color: #fff;
}

.share-btn.twitter:hover {
  background: #333;
}

.share-btn.linkedin {
  background: #0077b5;
  color: #fff;
}

.share-btn.linkedin:hover {
  background: #006399;
}

.share-btn.facebook {
  background: #1877f2;
  color: #fff;
}

.share-btn.facebook:hover {
  background: #145dbf;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .quiz-container {
    margin-top: 80px;
  }
  
  .quiz-hero h1 {
    font-size: 28px;
  }
  
  .quiz-tagline {
    font-size: 16px;
  }
  
  .quiz-features {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .question-text {
    font-size: 22px;
  }
  
  .answer-btn {
    padding: 16px 20px;
    font-size: 15px;
  }
  
  .result-card {
    padding: 24px;
  }
  
  .result-header {
    flex-direction: column;
  }
  
  .result-title h2 {
    font-size: 24px;
  }
  
  .result-match {
    font-size: 28px;
  }
  
  .salary-range {
    flex-direction: column;
    gap: 12px;
  }
  
  .results-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
}
