/* alternatives.css — Styles for /alternatives index and individual pages.
   Extends compare.css — compare-body, compare-nav, compare-footer,
   compare-hero, compare-sidebar, sticky-cta all reused from compare.css. */

/* ── Index: grid of alternatives pages ── */
.alt-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.alt-index-card {
  display: block;
  background: #111113;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.alt-index-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-2px);
}

.alt-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.alt-logo-pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.alt-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.alt-card-category {
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alt-card-count {
  font-size: 12px;
  color: #71717a;
}

.alt-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #e4e4e7;
  margin: 0 0 8px 0;
}

.alt-card-desc {
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.alt-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ── Categories section (index page) ── */
.alt-categories-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.alt-categories-section h2 {
  font-size: 22px;
  color: #e4e4e7;
  margin-bottom: 24px;
}

.alt-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.alt-category-card {
  background: #111113;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 18px 20px;
}

.alt-category-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px 0;
}

.alt-category-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alt-category-card ul li a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.alt-category-card ul li a:hover { color: #e4e4e7; }

/* ── Cross-link section ── */
.alt-crosslink-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.alt-crosslink-section h2 {
  font-size: 20px;
  color: #e4e4e7;
  margin-bottom: 8px;
}

.alt-crosslink-section p {
  color: #71717a;
  font-size: 14px;
  margin-bottom: 16px;
}

.alt-crosslink-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alt-crosslink-list a {
  background: #111113;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 14px;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s, border-color 0.15s;
}

.alt-crosslink-list a:hover {
  color: #e4e4e7;
  border-color: rgba(255,255,255,0.2);
}

/* ── Individual page: lead section ── */
.alt-lead-section {
  margin-bottom: 48px;
}

.alt-lead-section h2 {
  font-size: 20px;
  color: #e4e4e7;
  margin-bottom: 14px;
}

.alt-lead-text {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.7;
}

.alt-lead-text strong {
  color: #e4e4e7;
}

/* ── Individual page: tools list ── */
.alt-tools-section {
  margin-bottom: 52px;
}

.alt-tools-section h2 {
  font-size: 20px;
  color: #e4e4e7;
  margin-bottom: 24px;
}

.alt-tool-card {
  background: #111113;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.alt-tool-card:hover {
  border-color: rgba(99,102,241,0.3);
}

.alt-tool-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.alt-tool-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #27272a, #3f3f46);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.alt-tool-info {
  flex: 1;
}

.alt-tool-name {
  font-size: 16px;
  font-weight: 600;
  color: #e4e4e7;
  margin: 0 0 6px 0;
}

.alt-tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alt-price-chip {
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

.alt-usecase-chip {
  background: rgba(255,255,255,0.06);
  color: #a1a1aa;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
}

.alt-tool-summary {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.65;
  margin: 0 0 12px 0;
}

.alt-tool-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.alt-best-for-label {
  color: #52525b;
  font-weight: 500;
}

.alt-best-for {
  color: #71717a;
}

/* ── Individual page: comparison table ── */
.alt-table-section {
  margin-bottom: 52px;
}

.alt-table-section h2 {
  font-size: 20px;
  color: #e4e4e7;
  margin-bottom: 18px;
}

.alt-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.alt-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.alt-comparison-table th {
  background: #18181b;
  color: #71717a;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.alt-comparison-table td {
  padding: 12px 16px;
  color: #a1a1aa;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

.alt-comparison-table tr:last-child td {
  border-bottom: none;
}

.alt-comparison-table td strong {
  color: #e4e4e7;
}

.alt-briefly-row {
  background: rgba(99,102,241,0.06);
}

.alt-briefly-row td {
  color: #e4e4e7;
}

.alt-briefly-badge {
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  background: rgba(99,102,241,0.15);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
}

.alt-table-note {
  font-size: 12px;
  color: #52525b;
  margin-top: 12px;
}

/* ── Individual page: FAQ section ── */
.alt-faq-section {
  margin-bottom: 52px;
}

.alt-faq-section h2 {
  font-size: 20px;
  color: #e4e4e7;
  margin-bottom: 24px;
}

.alt-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.alt-faq-item:last-child {
  border-bottom: none;
}

.alt-faq-q {
  font-size: 15px;
  font-weight: 600;
  color: #e4e4e7;
  margin: 0 0 8px 0;
}

.alt-faq-a {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.65;
  margin: 0;
}

/* ── Bottom CTA section ── */
.alt-bottom-cta-section {
  margin-bottom: 0;
}

.alt-bottom-cta-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
}

.alt-bottom-cta-card h2 {
  font-size: 22px;
  color: #e4e4e7;
  margin-bottom: 12px;
}

.alt-bottom-cta-card p {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 24px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .alt-index-grid {
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }

  .alt-categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .alt-crosslink-list {
    flex-direction: column;
  }

  .alt-table-wrapper {
    font-size: 13px;
  }

  .alt-bottom-cta-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .alt-categories-grid {
    grid-template-columns: 1fr;
  }
}
