/* ============================================================
   compare.css  —  AIToolsRecap comparison page styles
   Served from /Assets/compare.css
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────────── */
.compare-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 60px);
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Main left panel ────────────────────────────────────────── */
.compare-main {
  flex: 1;
  padding: 40px 48px;
  border-right: 1px solid var(--rule);
  min-width: 0;
}

/* ── Empty state ────────────────────────────────────────────── */
.compare-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: var(--muted);
}
.empty-icon  { font-size: 64px; margin-bottom: 20px; opacity: 0.3; }
.empty-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.empty-sub   { font-size: 15px; max-width: 360px; line-height: 1.6; }

/* ── Comparison header ──────────────────────────────────────── */
.comp-header { margin-bottom: 36px; }
.comp-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.comp-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800; line-height: 1.2;
  margin: 0 0 10px; color: var(--ink);
}
.comp-subtitle {
  font-size: 16px; color: var(--muted);
  margin: 0 0 16px; line-height: 1.5;
}
.comp-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); font-weight: 500;
}

/* ── Tool cards row ─────────────────────────────────────────── */
.tools-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.tool-card {
  flex: 1; min-width: 160px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
  background: var(--paper);
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.tool-winner {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.04), var(--paper));
}
.winner-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.tool-name {
  font-size: 18px; font-weight: 800;
  margin-bottom: 4px; color: var(--ink);
}
.tool-tagline {
  font-size: 12px; color: var(--muted);
  margin-bottom: 16px; line-height: 1.4;
}
.tool-score-ring {
  display: flex; align-items: baseline; gap: 3px;
  margin-bottom: 8px;
}
.tool-score-num {
  font-size: 32px; font-weight: 900; line-height: 1;
  font-family: 'IBM Plex Mono', monospace;
}
.tool-score-label { font-size: 13px; color: var(--muted); }
.score-excellent .tool-score-num { color: #16a34a; }
.score-great     .tool-score-num { color: #2563eb; }
.score-good      .tool-score-num { color: #d97706; }
.score-average   .tool-score-num { color: #dc2626; }
.tool-price {
  font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 12px;
}
.tool-review-link {
  display: inline-block; font-size: 12px;
  font-weight: 600; color: var(--accent);
  text-decoration: none;
}
.tool-review-link:hover { text-decoration: underline; }

/* ── Scores table ───────────────────────────────────────────── */
.scores-section { margin-bottom: 40px; }
.section-heading {
  font-size: 18px; font-weight: 700;
  margin: 0 0 20px; color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule);
}
.scores-table { width: 100%; border-collapse: collapse; }
.scores-table th {
  padding: 10px 14px; text-align: left;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border-bottom: 1px solid var(--rule);
}
.scores-table td {
  padding: 12px 14px; font-size: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.scores-table tr:last-child td { border-bottom: none; }
.scores-table tr:hover td { background: rgba(0,0,0,.02); }
.score-bar-wrap { display: flex; align-items: center; gap: 10px; }
.score-bar-bg {
  flex: 1; height: 6px; background: var(--rule);
  border-radius: 3px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--accent); transition: width .4s ease;
}
.score-val {
  font-size: 13px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  min-width: 28px; text-align: right;
}

/* ── Pros / Cons ────────────────────────────────────────────── */
.proscons-section { margin-bottom: 40px; }
.proscons-grid { display: flex; flex-direction: column; gap: 24px; }
.proscons-tool {
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
}
.proscons-tool-name {
  padding: 12px 16px; font-size: 14px; font-weight: 700;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.proscons-cols { display: grid; grid-template-columns: 1fr 1fr; }
.pros-col { padding: 14px 16px; border-right: 1px solid var(--rule); }
.cons-col { padding: 14px 16px; }
.pc-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 10px;
}
.pc-pro { color: #16a34a; }
.pc-con { color: #dc2626; }
.pc-item {
  font-size: 13px; line-height: 1.5;
  padding: 4px 0; color: var(--ink);
}
.pc-item::before { content: attr(data-prefix); margin-right: 6px; font-weight: 700; }

/* ── Content body ───────────────────────────────────────────── */
.content-body {
  font-size: 15px; line-height: 1.8;
  color: var(--ink); margin-bottom: 40px;
}
.content-body h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.content-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.content-body p  { margin: 0 0 16px; }
.content-body ul { padding-left: 20px; margin: 0 0 16px; }
.content-body li { margin-bottom: 6px; }

/* ── Verdict ────────────────────────────────────────────────── */
.verdict-box {
  border: 2px solid var(--accent);
  border-radius: 12px; padding: 24px 28px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.04), transparent);
}
.verdict-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.verdict-text { font-size: 16px; line-height: 1.7; margin: 0; font-weight: 500; }

/* ── Right sidebar ──────────────────────────────────────────── */
.compare-sidebar {
  width: 340px; flex-shrink: 0;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  border-left: 1px solid var(--rule);
  background: var(--paper);
}
.sidebar-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0;
  background: var(--paper); z-index: 5;
}
.sidebar-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink);
}
.sidebar-count { font-size: 12px; color: var(--muted); }
.sidebar-filter { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.sidebar-select {
  width: 100%; border: 1px solid var(--rule);
  background: var(--paper); padding: 7px 10px;
  font-size: 13px; color: var(--ink);
  border-radius: 6px; outline: none;
}
.sidebar-select:focus { border-color: var(--accent); }

/* ── Comparison list items ──────────────────────────────────── */
.comp-list { padding: 8px 0; }
.comp-list-item {
  display: block; padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
  transition: background .15s;
  cursor: pointer;
}
.comp-list-item:hover { background: rgba(0,0,0,.03); }
.comp-list-item.active {
  background: rgba(var(--accent-rgb), .06);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.cli-top {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 5px;
}
.cli-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.cli-featured {
  font-size: 10px; font-weight: 700;
  color: #d97706; margin-left: auto;
}
.cli-title {
  font-size: 13px; font-weight: 700;
  line-height: 1.4; margin-bottom: 5px;
  color: var(--ink);
}
.cli-tools {
  font-size: 11px; color: var(--muted);
  margin-bottom: 5px;
}
.cli-meta {
  display: flex; gap: 6px;
  font-size: 11px; color: var(--muted);
}
.no-comps {
  padding: 40px 20px; text-align: center;
  font-size: 13px; color: var(--muted);
}

/* ── Share Bar ──────────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
}
.share-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-x        { background: #000; color: #fff; }
.share-linkedin { background: #0A66C2; color: #fff; }
.share-medium   { background: #000; color: #fff; }
.share-copy     { background: var(--rule); color: var(--ink); }
.share-copy.copied { background: #22c55e; color: #fff; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .compare-layout { flex-direction: column-reverse; }
  .compare-sidebar {
    width: 100%; height: auto;
    position: static; border-left: none;
    border-bottom: 1px solid var(--rule);
  }
  .compare-main { padding: 24px 20px; }
  .proscons-cols { grid-template-columns: 1fr; }
  .pros-col { border-right: none; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .share-bar { flex-direction: column; align-items: flex-start; }
  .share-buttons { margin-left: 0; }
}
