/* ============================================================
   FANZONE-PERSONALITY.CSS — Personality Quiz
   Visual identity: Pink accent (#ec4899), quiz-show aesthetic
   Uses standard theme tokens (--ink, --ink-2, --ink-3, etc.)
   ============================================================ */

/* ─── SETUP ─── */
.fz-pq-setup {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.fz-pq-intro {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  padding: var(--space-lg);
  margin: var(--space-md) 0;
}

.fz-pq-intro p {
  margin-bottom: var(--space-sm);
  color: var(--ink-text);
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.fz-pq-traits-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-md);
}

.fz-pq-trait-tag {
  background: var(--page-accent-soft);
  color: var(--page-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ─── START BUTTON ─── */
.fz-pq-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--page-accent);
  color: var(--ink);
  border: none;
  border-radius: 14px;
  padding: var(--space-md) var(--space-xl);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 52px;
  margin-top: var(--space-md);
  text-decoration: none;
}

.fz-pq-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--page-accent-soft);
}

.fz-pq-start-btn:active {
  transform: scale(0.98);
}

/* ─── QUIZ SCREEN ─── */
.fz-pq-quiz {
  max-width: 700px;
  margin: 0 auto;
}

.fz-pq-progress {
  margin-bottom: var(--space-lg);
}

.fz-pq-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-text);
  opacity: 0.7;
  margin-bottom: var(--space-xs);
  display: block;
}

.fz-pq-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--ink-3);
  border-radius: 3px;
  overflow: hidden;
}

.fz-pq-progress-fill {
  height: 100%;
  background: var(--page-accent);
  border-radius: 3px;
  transition: width 0.4s ease-out;
}

/* ─── QUESTION CARD ─── */
.fz-pq-question-card {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 2px solid var(--ink-line);
  border-radius: 16px;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.fz-pq-question-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-text);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.fz-pq-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fz-pq-option {
  background: var(--ink-3);
  border: 2px solid var(--ink-line);
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-text);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  line-height: 1.5;
  min-height: 48px;
}

.fz-pq-option:hover {
  border-color: var(--page-accent);
  background: var(--ink-2);
  transform: translateY(-1px);
}

.fz-pq-option.selected {
  border-color: var(--page-accent);
  background: var(--page-accent-soft);
  box-shadow: 0 0 0 1px var(--page-accent);
}

.fz-pq-option:active {
  transform: scale(0.99);
}

/* ─── NEXT BUTTON WRAPPER ─── */
.fz-pq-next-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
  min-height: 48px;
}

.fz-pq-next-btn {
  background: var(--page-accent);
  color: var(--ink);
  border: none;
  border-radius: 12px;
  padding: var(--space-md) var(--space-xl);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.fz-pq-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--page-accent-soft);
}

.fz-pq-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── BACK BUTTON ─── */
.fz-pq-back-btn {
  display: block;
  margin: var(--space-md) auto 0;
  background: none;
  border: none;
  color: var(--ink-text);
  opacity: 0.6;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  padding: var(--space-xs) var(--space-sm);
  transition:
    color 0.2s,
    opacity 0.2s;
  min-height: 40px;
}

.fz-pq-back-btn:hover {
  color: var(--page-accent);
  opacity: 1;
}

/* ─── RESULT SCREEN ─── */
.fz-pq-result {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.fz-pq-result-label {
  font-size: 1rem;
  color: var(--ink-text);
  opacity: 0.7;
  margin-bottom: var(--space-md);
}

.fz-pq-result-card {
  background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
  border: 2px solid var(--page-accent);
  border-radius: 20px;
  padding: var(--space-xl);
  margin: var(--space-md) 0;
}

.fz-pq-result-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  background: var(--ink-3);
  border: 3px solid var(--page-accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fz-pq-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fz-pq-result-image .fz-pq-placeholder {
  font-size: 3rem;
  font-weight: 700;
  color: var(--page-accent);
}

.fz-pq-result-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink-text);
  margin-bottom: var(--space-xs);
}

.fz-pq-result-nation {
  font-size: 0.95rem;
  color: var(--ink-text);
  opacity: 0.6;
  margin-bottom: var(--space-xs);
}

.fz-pq-result-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.fz-pq-result-meta-pill {
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-text);
  opacity: 0.7;
}

.fz-pq-result-headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--page-accent);
  margin-bottom: var(--space-sm);
}

.fz-pq-result-description {
  font-size: 0.95rem;
  color: var(--ink-text);
  opacity: 0.7;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── PLAYER LINKS ─── */
.fz-pq-result-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.fz-pq-result-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.fz-pq-result-link--player {
  background: var(--page-accent);
  color: var(--ink);
}

.fz-pq-result-link--player:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.fz-pq-result-link--wiki {
  background: var(--ink-3);
  color: var(--ink-text);
  border: 1px solid var(--ink-line);
}

.fz-pq-result-link--wiki:hover {
  border-color: var(--page-accent);
  color: var(--page-accent);
  transform: translateY(-1px);
}

/* ─── TRAIT BARS ─── */
.fz-pq-trait-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) auto;
  text-align: left;
  max-width: 400px;
}

.fz-pq-trait-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fz-pq-trait-bar-label {
  width: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-text);
  opacity: 0.7;
  text-align: right;
}

.fz-pq-trait-bar-track {
  flex: 1;
  height: 8px;
  background: var(--ink-3);
  border-radius: 4px;
  overflow: hidden;
}

.fz-pq-trait-bar-fill {
  height: 100%;
  background: var(--page-accent);
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.fz-pq-trait-bar-value {
  width: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-text);
}

/* ─── RESULT ACTIONS ─── */
.fz-pq-result-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .fz-pq-question-card {
    padding: var(--space-lg) var(--space-md);
  }

  .fz-pq-question-text {
    font-size: 1rem;
  }

  .fz-pq-option {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.88rem;
  }

  .fz-pq-result-name {
    font-size: 1.4rem;
  }

  .fz-pq-trait-bar-label {
    width: 80px;
    font-size: 0.78rem;
  }

  .fz-pq-result-meta {
    gap: 4px;
  }

  .fz-pq-result-meta-pill {
    font-size: 0.72rem;
    padding: 2px 8px;
  }
}
