/* ═══════════════════════════════════════
   Which Footballer Are You? — test.css
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

#ft-wrapper * { box-sizing: border-box; }

#ft-wrapper {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  max-width: 560px;
  margin: 40px auto;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
}

/* ── GeneratePress fix ── */
.inside-article, .entry-content, .page-content { padding: 0 !important; margin: 0 !important; }
.site-main, #primary { padding-top: 0 !important; margin-top: 0 !important; }

/* ══ INTRO ══════════════════════════════ */

#ft-intro {
  background: #fff;
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}

.ft-intro-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
  animation: ft-bounce 2s infinite;
}

@keyframes ft-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

#ft-intro h1 {
  font-size: 28px;
  font-weight: 900;
  color: #1a1a2e;
  margin-bottom: 14px;
  line-height: 1.2;
}

#ft-intro > p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Setup */
#ft-setup {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.ft-setup-row {
  display: flex;
  gap: 12px;
}

.ft-setup-row > div { flex: 1; }

#ft-setup label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #16a34a;
  margin-bottom: 6px;
}

#ft-setup input,
#ft-setup select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #d1fae5;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a1a2e;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}

#ft-setup input:focus,
#ft-setup select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}

#ft-setup input.ft-error,
#ft-setup select.ft-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* Start button */
#ft-start-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(22,163,74,.35);
}

#ft-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(22,163,74,.45);
}

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

#ft-quiz {
  background: #fff;
  border-radius: 28px;
  padding: 36px 36px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}

/* Progress */
#ft-progress-wrap {
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 28px;
  overflow: hidden;
}

#ft-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 10px;
  width: 0%;
  transition: width .4s ease;
}

#ft-qnum {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #16a34a;
  margin-bottom: 10px;
}

#ft-question {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 24px;
}

/* Options */
#ft-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-option {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ft-option:hover {
  border-color: #16a34a;
  background: #f0fdf4;
  transform: translateX(4px);
}

.ft-option.ft-selected {
  border-color: #16a34a;
  background: #dcfce7;
  color: #14532d;
}

.ft-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background .2s;
}

.ft-option:hover .ft-option-letter,
.ft-option.ft-selected .ft-option-letter {
  background: #16a34a;
  color: #fff;
}

/* ══ RESULT ══════════════════════════════ */

#ft-result {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}

#ft-result-inner {
  background: #fff;
  padding: 0 0 40px;
}

/* Result header */
#ft-result-emoji {
  font-size: 80px;
  text-align: center;
  padding: 40px 20px 16px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  line-height: 1;
}

#ft-result-archetype {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  padding-bottom: 20px;
}

#ft-result-name {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: #1a1a2e;
  padding: 20px 40px 4px;
  line-height: 1.1;
}

#ft-result-club {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
  padding: 0 40px 20px;
}

#ft-result-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.75;
  padding: 0 40px 24px;
  text-align: center;
}

/* Traits */
.ft-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 40px 24px;
}

.ft-trait {
  border-radius: 14px;
  padding: 16px;
}

.ft-strength { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ft-weakness { background: #fff7ed; border: 1px solid #fed7aa; }

.ft-trait-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
  color: #64748b;
}

.ft-strength .ft-trait-label { color: #16a34a; }
.ft-weakness .ft-trait-label { color: #ea580c; }

.ft-trait span:last-child {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
}

/* Quote */
#ft-result-quote {
  margin: 0 40px 28px;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 4px solid #16a34a;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  font-style: italic;
  color: #64748b;
  line-height: 1.6;
}

/* Stats */
#ft-stats-section {
  padding: 0 40px 28px;
}

#ft-stats-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}

#ft-stats-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.ft-stat-row {
  margin-bottom: 10px;
}

.ft-stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.ft-stat-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.ft-stat-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 1s ease;
  width: 0%;
}

.ft-stat-fill.ft-stat-highlight {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Retry button */
#ft-retry-btn {
  display: block;
  width: calc(100% - 80px);
  margin: 0 40px;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(22,163,74,.3);
}

#ft-retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,163,74,.4);
}

/* ══ TRANSITION ═══════════════════════════ */

.ft-fade-in {
  animation: ft-fadein .4s ease;
}

@keyframes ft-fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ RESPONSIVE ════════════════════════════ */

@media (max-width: 560px) {
  #ft-intro, #ft-quiz { padding: 28px 20px; }
  #ft-result-name, #ft-result-desc, #ft-result-club,
  #ft-result-quote, .ft-traits, #ft-stats-section { padding-left: 20px; padding-right: 20px; }
  #ft-retry-btn { width: calc(100% - 40px); margin: 0 20px; }
  .ft-traits { grid-template-columns: 1fr; }
  .ft-setup-row { flex-direction: column; }
  #ft-result-emoji { font-size: 60px; }
}
