/**
 * TERAPİYLE - EŞLEŞME TESTİ & KİŞİSELLEŞTİRİLMİŞ UZMAN LİSTELEME CSS
 */

.match-test-page {
  background-color: #f8fafc;
  min-height: 85vh;
  padding: 140px 0 80px;
}

/* Hero & Header */
.match-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.match-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0e82fd;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.match-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
}

.match-hero-desc {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Wizard Container Card */
.match-wizard-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Progress Header */
.match-wizard-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.match-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.match-step-text {
  font-size: 13px;
  font-weight: 700;
  color: #0e82fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-progress-percent {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.match-progress-track {
  width: 100%;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.match-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0e82fd 0%, #38bdf8 100%);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Body */
.match-wizard-body {
  padding: 36px 32px;
}

.match-question-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
}

.match-question-sub {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Options Grid */
.match-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
}

.match-option-card:hover {
  border-color: #0e82fd;
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(14, 130, 253, 0.12);
}

.match-option-card.selected {
  border-color: #0e82fd;
  background-color: #eff6ff;
  box-shadow: 0 0 0 3px rgba(14, 130, 253, 0.15);
}

.match-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0e82fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.match-option-card:hover .match-option-icon,
.match-option-card.selected .match-option-icon {
  background: #0e82fd;
  color: #ffffff;
}

.match-option-content {
  flex-grow: 1;
}

.match-option-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.3;
}

.match-option-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.match-option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.match-option-card.selected .match-option-radio {
  border-color: #0e82fd;
  background-color: #0e82fd;
}

.match-option-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  display: none;
}

.match-option-card.selected .match-option-radio::after {
  display: block;
}

/* Wizard Footer */
.match-wizard-footer {
  padding: 16px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
}

.match-btn-back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.match-btn-back:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Loading / Analyzing State */
.match-analyzing-state {
  text-align: center;
  padding: 60px 24px;
}

.match-loading-spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #e0f2fe;
  border-top-color: #0e82fd;
  animation: matchSpin 1s infinite linear;
  margin: 0 auto 24px;
}

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

.match-analyzing-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.match-analyzing-sub {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto;
}

/* =========================================================================
   RESULTS VIEW
   ========================================================================= */
.match-results-container {
  display: none;
}

.match-results-container.active {
  display: block;
}

/* Top Result Banner */
.match-success-banner {
  background: linear-gradient(135deg, #0e82fd 0%, #0369a1 100%);
  border-radius: 20px;
  padding: 32px;
  color: #ffffff;
  margin-bottom: 32px;
  box-shadow: 0 15px 30px -10px rgba(14, 130, 253, 0.3);
}

.match-banner-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.match-banner-desc {
  font-size: 1rem;
  color: #e0f2fe;
  margin-bottom: 20px;
  max-width: 680px;
}

.match-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.match-results-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.match-results-count {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.match-restart-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.match-restart-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Matched Card Extensions */
.expert-card.matched-card {
  border-color: #bfdbfe;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.expert-card.matched-card:hover {
  border-color: #0e82fd;
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(14, 130, 253, 0.15);
}

.match-score-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  z-index: 2;
}

.match-reason-box {
  background: #eff6ff;
  border-left: 3px solid #0e82fd;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  margin: 10px 0 14px;
  font-size: 12px;
  color: #1e3a8a;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.match-reason-box i {
  color: #0e82fd;
  margin-top: 2px;
}

/* Bottom CTA in Results */
.match-view-all-box {
  text-align: center;
  margin-top: 48px;
  padding: 36px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}
.match-view-all-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.match-view-all-box p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .match-wizard-body {
    padding: 24px 18px;
  }
  .match-wizard-header {
    padding: 18px 20px;
  }
  .match-option-card {
    padding: 14px 14px;
  }
  .match-option-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .match-hero-title {
    font-size: 1.55rem;
  }
}
