/* ========================================
   ShipLoop - Comparison Pages
   ======================================== */

/* ---- Hero ---- */
.compare-hero {
  padding: calc(64px + 5rem) 0 4rem;
  background: linear-gradient(180deg, #F0F1FF 0%, var(--bg) 100%);
  text-align: center;
}

.compare-hero {
  position: relative;
  overflow: hidden;
}

/* ---- Hero Ship Animation ---- */
.hero-ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  overflow: hidden;
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 40px;
}

.hero-wave-1 { animation: waveShift 8s ease-in-out infinite; }
.hero-wave-2 { animation: waveShift 10s ease-in-out infinite reverse; }

@keyframes waveShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
}

.hero-boat {
  position: absolute;
  bottom: 12px;
  width: 50px;
  height: 38px;
  animation: sailAcross 25s linear infinite, boatBob 3s ease-in-out infinite;
}

@keyframes sailAcross {
  0% { left: -80px; }
  100% { left: calc(100% + 80px); }
}

@keyframes boatBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-1.5deg); }
  75% { transform: translateY(3px) rotate(1deg); }
}

.compare-hero .hero-sub {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- TLDR Box (AEO) ---- */
.tldr-box {
  background: linear-gradient(135deg, rgba(97, 97, 255, 0.04), rgba(124, 92, 252, 0.04));
  border: 1px solid rgba(97, 97, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 0;
}

.tldr-box h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.tldr-box p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tldr-stat {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text) !important;
}

/* ---- Summary ---- */
.compare-summary {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.summary-main h2 { margin-bottom: 1rem; }

.summary-main p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
}

.summary-strengths {
  padding: 1.75rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.summary-strengths h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.summary-strengths ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.summary-strengths li {
  font-size: 0.9rem;
  color: var(--text-2);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.summary-strengths li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

/* ---- Section Heading ---- */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---- Theme Cards ---- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.theme-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.theme-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.theme-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.theme-side {
  padding: 1rem;
  border-radius: 8px;
}

.theme-shiploop {
  background: rgba(97, 97, 255, 0.05);
  border: 1px solid rgba(97, 97, 255, 0.12);
}

.theme-competitor {
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.theme-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.theme-shiploop .theme-label { color: var(--purple); }
.theme-competitor .theme-label { color: var(--text-3); }

.theme-side p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- Feature Comparison Table ---- */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

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

.compare-table .table-category td {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  padding: 0.6rem 1.25rem;
}

.cell-center { text-align: center; }

.compare-table tbody tr:hover { background: rgba(97, 97, 255, 0.02); }

/* ---- Switch Reasons ---- */
.switch-reasons {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.switch-reason {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.switch-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--purple);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.switch-reason p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Compare Footer Grid ---- */
.compare-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.compare-footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.compare-footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #71717a;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

.compare-footer-col a:hover { color: #fff; }
.compare-footer-col a.current { color: var(--purple); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .themes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .compare-hero { padding: calc(64px + 2.5rem) 0 2rem; }
  .compare-hero h1 { font-size: 1.75rem; }
  .compare-summary { grid-template-columns: 1fr; gap: 1.5rem; }
  .tldr-box { padding: 1.25rem 1.5rem; }
  .tldr-box p { font-size: 0.9rem; }
  .theme-vs { grid-template-columns: 1fr; }
  .theme-card { padding: 1.25rem; }
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 0.65rem 0.75rem; }
  .switch-reason { padding: 1.25rem; gap: 1rem; }
  .switch-reason p { font-size: 0.9rem; }
  .section-heading { font-size: 1.35rem; }
  .compare-footer-grid { grid-template-columns: 1fr 1fr; }

  /* Hero ocean - scale down on mobile */
  .hero-ocean { height: 40px; }
  .hero-waves { height: 25px; }
  .hero-boat { width: 35px; height: 27px; bottom: 8px; }
}

@media (max-width: 480px) {
  .compare-footer-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.75rem; }
  .compare-table th, .compare-table td { padding: 0.5rem 0.6rem; }
}
