/* app.css — Quiz and Results pages matching PathFinder brand */

.nav-subtitle {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-left: auto;
}

/* === QUIZ PAGE === */
.quiz-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.quiz-header {
  text-align: center;
  margin-bottom: 3rem;
}

.quiz-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.875rem;
}

.quiz-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.quiz-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.quiz-body {
  min-height: 380px;
  display: flex;
  align-items: center;
}

/* Question Card */
.question-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 4px 24px rgba(26, 58, 42, 0.07);
}

.q-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.q-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--fg);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Option Buttons */
.option-btn {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.15s ease;
  text-align: left;
}

.option-btn:hover {
  border-color: var(--green);
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.12);
}

.option-btn:active {
  transform: translateY(0);
}

.option-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  min-width: 80px;
}

.option-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.option-fill {
  height: 100%;
  background: linear-gradient(to right, var(--green-light), var(--green));
  border-radius: 3px;
  transition: width 0.2s ease;
}

/* Quiz Navigation */
.quiz-nav {
  margin-top: 2.5rem;
}

.quiz-progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--green), var(--accent));
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-align: center;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 0;
  width: 100%;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--green-light);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.error-text {
  font-size: 1rem;
  color: #c0392b;
}

.error-text a {
  color: var(--green);
  text-decoration: underline;
}

/* === RESULTS PAGE === */
.results-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.results-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Career Card */
.career-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  box-shadow: 0 2px 16px rgba(26, 58, 42, 0.06);
  animation: cardIn 0.4s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.career-card:hover {
  box-shadow: 0 8px 32px rgba(26, 58, 42, 0.1);
  transform: translateY(-2px);
}

.card-rank {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--fg-light);
  line-height: 1;
  padding-top: 0.25rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  line-height: 1.2;
}

.growth-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.growth-badge.rapid { background: #d4f0dc; color: #1a5c2a; }
.growth-badge.faster { background: var(--green-light); color: var(--green); }
.growth-badge.avg { background: var(--border); color: var(--fg-muted); }

/* Match Bar */
.match-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.match-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  min-width: 40px;
}

.match-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.match-fill {
  height: 100%;
  background: linear-gradient(to right, var(--green), var(--accent));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.match-pct {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  min-width: 36px;
  text-align: right;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Card Stats */
.card-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-key {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-light);
}

.stat-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.625rem;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .quiz-page, .results-page {
    padding: 2.5rem 1.25rem 4rem;
  }

  .question-card {
    padding: 1.75rem 1.25rem;
  }

  .career-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .card-rank {
    font-size: 1.25rem;
  }

  .q-options {
    gap: 0.5rem;
  }

  .option-label {
    min-width: 60px;
    font-size: 0.875rem;
  }
}