/* =========================
   Air Purifier Finder Styles
   ========================= */

.finder-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

/* Progress Bar */
.finder-progress-bar {
  position: relative;
  width: 100%;
  height: 36px;
  background: var(--border-light);
  border-radius: 18px;
  margin-bottom: 32px;
  overflow: hidden;
}

.finder-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  border-radius: 18px;
  transition: width 0.4s ease;
}

.finder-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

/* Question Card */
.finder-card {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.finder-step {
  display: none;
  animation: finderFadeIn 0.4s ease;
}

.finder-step.active {
  display: block;
}

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

.finder-question {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.finder-hint {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Options Grid */
.finder-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.finder-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
}

.finder-option:hover {
  border-color: var(--primary-light);
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.1);
}

.finder-option.selected {
  border-color: var(--primary);
  background: #dbeafe;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
}

.finder-option-icon {
  font-size: 28px;
  line-height: 1;
}

.finder-option-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.finder-option-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Nav Buttons */
.finder-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 16px;
}

.finder-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
}

.finder-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.finder-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.finder-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  background: white;
  color: var(--dark);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
}

.finder-btn-secondary:hover:not(:disabled) {
  border-color: var(--primary-light);
  background: #f8fafc;
}

.finder-btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Results */
.finder-results {
  animation: finderFadeIn 0.5s ease;
}

.finder-results-header {
  text-align: center;
  margin-bottom: 32px;
}

.finder-results-badge {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.finder-results-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.finder-results-header p {
  font-size: 15px;
  color: var(--muted);
}

/* Result Card */
.result-card {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #fed7aa;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.result-card .result-badge {
  position: absolute;
  top: 16px;
  right: -28px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 36px;
  transform: rotate(35deg);
  letter-spacing: 0.8px;
}

.result-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.result-card-icon {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.result-card-info {
  flex: 1;
}

.result-card-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.result-card-info .result-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-dark);
}

.result-card-info .result-rating {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Match Score Badge */
.result-match-score {
  flex-shrink: 0;
  text-align: center;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 72px;
}

.result-match-score .match-pct {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.result-match-score .match-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Perfect For Tags */
.result-perfect-for {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.perfect-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
  padding-top: 4px;
}

.perfect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perfect-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Why Section */
.result-why-section {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.why-label {
  font-size: 14px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 8px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  margin-bottom: 6px;
}

.why-list li:last-child {
  margin-bottom: 0;
}

.why-list li .check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Features Section */
.result-features-section {
  margin-bottom: 24px;
}

.features-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.result-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.result-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.result-features li .check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA Button Group */
.result-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 52px;
}

.result-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.result-cta-review {
  background: white;
  color: var(--dark);
  border: 2px solid var(--border);
  box-shadow: none;
}

.result-cta-review:hover {
  border-color: var(--primary-light);
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
}

/* Runner-up card */
.result-card.runner-up {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.result-card.runner-up .result-badge {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

/* Results Actions */
.finder-results-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .finder-card {
    padding: 28px 20px;
  }

  .finder-question {
    font-size: 22px;
  }

  .finder-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .finder-option {
    padding: 16px 18px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .finder-option-icon {
    font-size: 24px;
  }

  .finder-option-label {
    font-size: 15px;
  }

  .finder-option-desc {
    font-size: 12px;
  }

  .finder-nav {
    flex-direction: row;
  }

  .finder-btn-primary,
  .finder-btn-secondary {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
  }

  .finder-results-header h2 {
    font-size: 24px;
  }

  .result-card {
    padding: 24px 20px;
  }

  .result-card-top {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .result-match-score {
    padding: 8px 12px;
    min-width: 60px;
  }

  .result-match-score .match-pct {
    font-size: 20px;
  }

  .result-perfect-for {
    flex-direction: column;
    gap: 8px;
  }

  .result-features {
    grid-template-columns: 1fr;
  }

  .result-cta-group {
    flex-direction: column;
  }

  .result-cta {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .finder-progress-text {
    font-size: 12px;
  }

  .finder-question {
    font-size: 20px;
  }
}
