/* ===== Listicle Rankings Template Styles ===== */

/* Hero */
.listicle-hero {
  padding: 64px 0 56px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--accent-light);
  border: 1px solid rgba(229,93,53,0.2);
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-badge span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.listicle-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.listicle-hero .subtitle {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}
.disclaimer-banner strong { color: #78350f; }
.disclaimer-banner a { color: var(--accent); font-weight: 700; }

/* Quick Answer */
.quick-answer {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
}
.quick-answer::before {
  content: 'QUICK ANSWER';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent);
  color: var(--white);
  padding: 2px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 3px;
}
.quick-answer p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* Key Takeaway */
.key-takeaway {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
}
.key-takeaway strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #3b82f6;
  margin-bottom: 8px;
  font-weight: 700;
}
.key-takeaway p { margin: 0; }

/* Definition Box */
.definition-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.definition-box dt {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.definition-box dd {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* TOC Navigation */
.toc-nav {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 40px 0;
}
.toc-nav h2 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.toc-nav ol { padding-left: 20px; }
.toc-nav li { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.toc-nav li a { color: var(--accent); transition: color 0.2s; }
.toc-nav li a:hover { color: var(--accent-hover); }

/* Editorial */
.editorial { padding: 64px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.editorial-inner { max-width: 780px; margin: 0 auto; }
.editorial-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.editorial-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.editorial-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}
.editorial-byline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.editorial-byline a { color: var(--accent); font-weight: 600; }
.editorial-body { font-size: 16px; color: var(--text-body); line-height: 1.85; }
.editorial-body p { margin-bottom: 20px; }
.editorial-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 40px 0 16px;
  line-height: 1.2;
}
.editorial-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 12px;
  line-height: 1.25;
}
.editorial-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--cream);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-dark);
}
.editorial-body blockquote p { margin-bottom: 0; }
.editorial-body a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(229,93,53,0.3);
  transition: border-color 0.2s;
}
.editorial-body a:hover { border-color: var(--accent); }
.editorial-body strong { color: var(--text-dark); }
.editorial-body ul, .editorial-body ol { margin: 16px 0 20px 24px; }
.editorial-body li { margin-bottom: 8px; }
.editorial-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.editorial-pullquote {
  text-align: center;
  padding: 40px 32px;
  margin: 40px 0;
  position: relative;
}
.editorial-pullquote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.editorial-pullquote p {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  max-width: 560px;
  margin: 0 auto;
}

/* Verdict Box */
.verdict-box {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 32px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.verdict-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}
.verdict-box h2, .verdict-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.verdict-box p { font-size: 15px; color: var(--text-body); line-height: 1.7; }

/* Info Row */
.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}
.info-card {
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}
.info-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.info-card h3, .info-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.info-card p { font-size: 13px; line-height: 1.6; }

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  vertical-align: middle;
}
tbody tr:hover { background: #fef9f5; }
.highlight-row { background: var(--accent-light) !important; }
.highlight-row td:first-child { border-left: 3px solid var(--accent); }
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
}
.r1 { background: var(--accent); }
.r2 { background: var(--navy); }
.r3 { background: #555; }
.r4 { background: #888; }
.r5 { background: #aaa; }
.company-name { font-weight: 700; color: var(--text-dark); }
.editors-pick {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.visit-link {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

/* Company Card */
.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 48px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.company-card--featured { border: 2px solid var(--accent); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.card-rank {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.card-company h2, .card-company h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}
.card-company .tagline {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.card-score-box {
  text-align: center;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--white);
}
.card-score-box .num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
}
.card-score-box .lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
}
.card-body { padding: 32px; }
.card-body p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}
.card-body p strong { color: var(--text-dark); }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.stat-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.stat-card .val {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}
.stat-card .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}
.pros-box, .cons-box { border-radius: 8px; padding: 20px 24px; }
.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; }
.pros-box h4 {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.cons-box h4 {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pros-box li, .cons-box li {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 8px;
  list-style: none;
  padding-left: 22px;
  position: relative;
}
.pros-box li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons-box li::before { content: '\2717'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Card CTA */
.card-cta {
  padding: 20px 32px;
  background: var(--accent-light);
  border-top: 1px solid rgba(229,93,53,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Horizontal Bar Charts */
.hbar-chart { margin: 32px 0; }
.hbar-group { margin-bottom: 28px; }
.hbar-group-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.hbar-row {
  display: grid;
  grid-template-columns: 130px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.hbar-label { font-size: 12px; font-weight: 600; color: var(--text-body); }
.hbar-track { height: 22px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.hbar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  transition: width 0.8s ease;
}
.hbar-fill span { font-size: 9px; font-weight: 700; color: var(--white); }
.fill-accent { background: var(--accent); }
.fill-navy { background: var(--navy); }
.fill-gray { background: #999; }
.hbar-score { font-weight: 800; font-size: 13px; color: var(--text-dark); }
.chart-legend { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }

/* Chart Cards */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.chart-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  text-align: center;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  right: 16px;
}
.process-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.process-step p { font-size: 13px; color: var(--text-body); line-height: 1.6; }

/* Stats Grid / LA Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.la-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}
.la-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-color: rgba(229,93,53,0.3);
}
.la-card .val {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
}
.la-card .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .info-row { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero-meta { gap: 12px; }
  .card-header { padding: 20px 24px; }
  .card-body { padding: 24px; }
  .card-cta { padding: 16px 24px; }
  .hbar-row { grid-template-columns: 100px 1fr 40px; gap: 8px; }
  .editorial-inner { padding: 0 8px; }
}

@media (max-width: 480px) {
  .listicle-hero { padding: 40px 0 36px; }
  .listicle-hero h1 { font-size: 28px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .toc-nav { padding: 20px; }
  .table-wrap { font-size: 12px; }
  thead th, tbody td { padding: 10px 12px; }
}
