/* newsongbird.com/match styles v2 */
:root {
  --bg: #0f172a; --bg-light: #1e293b; --bg-card: #1e293b;
  --text: #e2e8f0; --text-muted: #94a3b8;
  --primary: #6366f1; --primary-hover: #4f46e5;
  --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
  --border: #334155; --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
.container { max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem; }
.site-header { text-align: center; padding: 2.5rem 0 1.5rem; }
.site-header .logo { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.site-header .logo span { color: var(--primary); }
.site-header .tagline { color: var(--text-muted); font-size: 1.05rem; }

/* Progress */
.progress-container { margin: 1.5rem 0; }
.progress-track { height: 6px; background: var(--bg-light); border-radius: 3px; overflow: hidden; }
#progress-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s ease; width: 25%; }
#step-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; display: block; }

/* Question */
#question-container h2 { font-size: 1.35rem; margin-bottom: 1rem; font-weight: 600; }
.hint { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }

/* Free text input */
.description-input {
  width: 100%; padding: 1rem; background: var(--bg-light);
  border: 2px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 1rem; font-family: inherit;
  resize: vertical; min-height: 100px; transition: border-color 0.2s;
}
.description-input:focus { outline: none; border-color: var(--primary); }
.description-input::placeholder { color: var(--text-muted); }
.char-count { text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; margin-bottom: 1rem; }

/* Options */
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.option-btn {
  padding: 0.9rem 1.15rem; background: var(--bg-light); border: 2px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.92rem; cursor: pointer;
  transition: all 0.2s ease; text-align: left; position: relative;
}
.option-btn:hover { border-color: var(--primary); background: rgba(99,102,241,0.1); }
.option-btn.selected { border-color: var(--primary); background: rgba(99,102,241,0.2); }
.option-btn.small { padding: 0.6rem 1rem; font-size: 0.85rem; text-align: center; }
.option-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.priority-btn .priority-order {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: white; font-size: 0.75rem; font-weight: 600;
  text-align: center; line-height: 22px; margin-right: 0.5rem;
}
.priority-btn .priority-order:empty { display: none; }
.final-section { margin-bottom: 1.25rem; }
.final-section h3 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* Buttons */
.btn-primary {
  display: inline-block; padding: 0.75rem 2rem; background: var(--primary);
  color: white; border: none; border-radius: var(--radius); font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary {
  padding: 0.6rem 1.5rem; background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* Results */
.intent-banner {
  padding: 0.75rem 1rem; background: rgba(99,102,241,0.15); border: 1px solid var(--primary);
  border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text);
}
.results-header { text-align: center; margin-bottom: 1.5rem; }
.results-header h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.results-subtitle { color: var(--text-muted); font-size: 0.88rem; }

.tool-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; position: relative; transition: border-color 0.2s;
}
.tool-card:hover { border-color: var(--primary); }
.tool-card.top-pick { border-color: var(--primary); border-width: 2px; }
.top-pick-badge {
  position: absolute; top: -12px; left: 16px; background: var(--primary);
  color: white; padding: 2px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600;
}
.tool-card-header { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 0.85rem; }
.tool-rank {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.tool-info { flex: 1; }
.tool-info h3 { font-size: 1.1rem; margin-bottom: 0.1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.vertical-tag {
  font-size: 0.65rem; padding: 2px 8px; border-radius: 12px;
  background: rgba(99,102,241,0.2); color: var(--primary); font-weight: 500;
}
.tool-tagline { color: var(--text-muted); font-size: 0.82rem; }
.match-score { text-align: center; flex-shrink: 0; }
.score-number { font-size: 1.7rem; font-weight: 700; display: block; }
.score-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }

.tool-reasons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.reason-tag {
  display: inline-block; padding: 0.18rem 0.65rem; background: rgba(16,185,129,0.15);
  color: var(--success); border-radius: 16px; font-size: 0.75rem;
}
.tool-meta { margin-bottom: 0.85rem; }
.meta-item { font-size: 0.82rem; color: var(--text-muted); }
.tool-actions { display: flex; gap: 0.65rem; align-items: center; }
.btn-visit { text-decoration: none; text-align: center; font-size: 0.85rem; padding: 0.55rem 1.25rem; }
.btn-details { font-size: 0.85rem; padding: 0.55rem 1rem; }

.tool-details { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1.25rem; margin-bottom: 0.85rem; }
.score-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; }
.score-dim { min-width: 105px; color: var(--text-muted); }
.score-bar-container { flex: 1; height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 3px; }
.score-value { min-width: 26px; text-align: right; font-weight: 600; }

.strengths-weaknesses { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.strengths h4 { color: var(--success); font-size: 0.8rem; margin-bottom: 0.35rem; }
.weaknesses h4 { color: var(--danger); font-size: 0.8rem; margin-bottom: 0.35rem; }
.strengths ul, .weaknesses ul { padding-left: 1.1rem; font-size: 0.75rem; }
.strengths li, .weaknesses li { margin-bottom: 0.2rem; color: var(--text-muted); }

.results-footer { text-align: center; margin-top: 1.5rem; }
.disclaimer { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.75rem; }
.no-results { text-align: center; padding: 3rem; }

.site-footer {
  text-align: center; padding: 1.5rem; color: var(--text-muted);
  font-size: 0.75rem; border-top: 1px solid var(--border); margin-top: 2.5rem;
}
.site-footer a { color: var(--primary); text-decoration: none; }

@media (max-width: 600px) {
  .option-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .strengths-weaknesses { grid-template-columns: 1fr; }
  .tool-card-header { flex-direction: column; }
  .match-score { text-align: left; }
  .option-row { flex-direction: column; }
}
