/* module_seo-comparison.css — Styles for competitor alternative pages */

.seo-alt-outer {
  padding: 20px 20px 60px;
  padding-top: 160px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

@media (min-width: 768px) {
  .seo-alt-outer {
    padding: 160px 20px 80px;
  }
}

/* Hero */
.seo-alt-hero {
  text-align: center;
  margin-bottom: 48px;
}

.seo-alt-hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--brand-primary, #11292C);
}

@media (min-width: 768px) {
  .seo-alt-hero h1 {
    font-size: 42px;
  }
}

.seo-alt-hero .summary {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-600, #555);
  max-width: 720px;
  margin: 0 auto;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: 12px;
  border: 1px solid var(--gray-300, #e0e0e0);
}

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

.comparison-table thead th {
  background: var(--brand-primary, #11292C);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
}

.comparison-table thead th:first-child {
  border-radius: 11px 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 11px 0 0;
}

.comparison-table thead th.highlight {
  background: var(--brand-secondary, #6FE6C8);
  color: var(--brand-primary, #11292C);
}

.comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200, #f0f0f0);
  vertical-align: top;
}

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

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--gray-700, #333);
  min-width: 140px;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--gray-100, #f8f8f8);
}

/* Pros/Cons Sections */
.seo-alt-section {
  margin: 48px 0;
}

.seo-alt-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--brand-primary, #11292C);
}

@media (min-width: 768px) {
  .seo-alt-section h2 {
    font-size: 28px;
  }
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--gray-300, #e0e0e0);
}

.pros-cons-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-cons-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-cons-card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-600, #555);
  line-height: 1.5;
}

.pros-cons-card li::before {
  position: absolute;
  left: 0;
  top: 8px;
}

.pros-card li::before {
  content: "+";
  color: #16a34a;
  font-weight: 700;
}

.cons-card li::before {
  content: "-";
  color: #dc2626;
  font-weight: 700;
}

.cience-card {
  background: linear-gradient(135deg, rgba(111, 230, 200, 0.08), rgba(111, 230, 200, 0.02));
  border-color: var(--brand-secondary, #6FE6C8);
}

.cience-card li::before {
  content: "\2713";
  color: var(--brand-secondary-dark, #0ea571);
  font-weight: 700;
}

/* Ratings */
.ratings-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--gray-300, #e0e0e0);
  font-size: 15px;
}

.rating-badge .score {
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-primary, #11292C);
}

/* Social Proof Strip */
.social-proof-strip {
  text-align: center;
  padding: 32px 24px;
  margin: 40px 0;
  background: var(--gray-100, #f8f8f8);
  border-radius: 12px;
}

.social-proof-strip .proof-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500, #666);
  margin-bottom: 12px;
  font-weight: 600;
}

.social-proof-strip .proof-brands {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-primary, #11292C);
  line-height: 1.6;
}

.social-proof-strip .proof-brands .brand-sep {
  color: var(--gray-400, #bbb);
  margin: 0 6px;
}

.social-proof-strip .proof-stat {
  font-size: 14px;
  color: var(--gray-600, #555);
  margin-top: 10px;
}

.social-proof-strip .proof-stat strong {
  color: var(--brand-primary, #11292C);
}

/* CTA Section */
.seo-alt-cta {
  text-align: center;
  padding: 48px 24px;
  margin: 48px 0;
  border-radius: 16px;
  background: var(--brand-primary, #11292C);
  color: #fff;
}

.seo-alt-cta h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 12px;
}

.seo-alt-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 16px;
}

/* Related Alternatives Grid */
.related-alts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.related-alt-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--gray-300, #e0e0e0);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.related-alt-card:hover {
  border-color: var(--brand-secondary, #6FE6C8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-alt-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--brand-primary, #11292C);
}

.related-alt-card p {
  font-size: 14px;
  color: var(--gray-700, #333);
  margin: 0;
  line-height: 1.5;
}

/* Hub page grid */
.alt-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.alt-hub-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--gray-300, #e0e0e0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.alt-hub-card:hover {
  border-color: var(--brand-secondary, #6FE6C8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.alt-hub-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--brand-primary, #11292C);
}

.alt-hub-card .tagline {
  font-size: 14px;
  color: var(--gray-700, #333);
  margin-bottom: 16px;
  line-height: 1.5;
}

.alt-hub-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500, #666);
  border-top: 1px solid var(--gray-200, #f0f0f0);
  padding-top: 12px;
  margin-top: 12px;
}

/* Breadcrumb nav */
.seo-breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--gray-500, #666);
}

.seo-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
}

.seo-breadcrumb a:hover {
  color: var(--brand-primary, #11292C);
  text-decoration: underline;
}

.seo-breadcrumb .sep {
  margin: 0 8px;
}

/* Featured tool — highlighted table row */
.comparison-table tbody tr.featured-row {
  background: linear-gradient(135deg, rgba(111, 230, 200, 0.12), rgba(111, 230, 200, 0.04));
}

.comparison-table tbody tr.featured-row td {
  border-bottom-color: rgba(111, 230, 200, 0.3);
}

/* Inline badge next to tool name in table */
.featured-badge-inline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--brand-secondary, #6FE6C8);
  color: var(--brand-primary, #11292C);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Featured card in review grid */
.featured-card {
  position: relative;
  overflow: hidden;
}

.featured-ribbon {
  position: absolute;
  top: 24px;
  right: -24px;
  background: var(--brand-secondary, #6FE6C8);
  color: var(--brand-primary, #11292C);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 48px;
  transform: rotate(45deg);
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
