/* ============================================
   RewardSmart - Competitor & Alternative Pages
   ============================================ */

/* Page Hero */
.compare-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #0f0a1e 0%, #1a1035 50%, #0f0a1e 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.compare-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.compare-hero .container { position: relative; z-index: 1; }
.compare-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 20px;
}
.compare-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}
.compare-hero h1 .gradient-text {
  background: linear-gradient(135deg, #8B5CF6 0%, #60A5FA 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compare-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.compare-hero .last-updated {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* TL;DR Section */
.tldr-section {
  padding: 48px 0;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.tldr-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tldr-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tldr-card h2 .badge {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}
.tldr-card p {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}
.tldr-card strong { color: #1a1a2e; }

/* Content Sections */
.compare-section {
  padding: 64px 0;
}
.compare-section:nth-child(even) {
  background: #f9fafb;
}
.compare-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 24px;
}
.compare-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 24px 0 12px;
}
.compare-section p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 16px;
}
.compare-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.compare-section ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #4b5563;
  line-height: 1.6;
}
.compare-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8B5CF6;
}

/* Comparison Table */
.compare-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}
.compare-table thead th {
  background: linear-gradient(135deg, #1a1035, #2d1b69);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.compare-table thead th:first-child {
  border-radius: 12px 0 0 0;
}
.compare-table thead th:last-child {
  border-radius: 0 12px 0 0;
}
.compare-table thead th.highlight {
  background: linear-gradient(135deg, #7C3AED, #6366F1);
}
.compare-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #4b5563;
  vertical-align: top;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.03);
}
.compare-table tbody td:first-child {
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}
.compare-table .check {
  color: #10b981;
  font-weight: 700;
  font-size: 1.1rem;
}
.compare-table .cross {
  color: #ef4444;
  font-weight: 700;
  font-size: 1.1rem;
}
.compare-table .partial {
  color: #f59e0b;
  font-weight: 600;
}
.compare-table .cell-highlight {
  background: rgba(139, 92, 246, 0.05);
}

/* Who Should Choose Cards */
.who-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.who-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.who-card.you {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
}
.who-card h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}
.who-card ul li::before {
  background: #10b981;
}
.who-card.you ul li::before {
  background: #8B5CF6;
}
.who-card .ideal-customer {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Pricing Comparison */
.pricing-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.pricing-compare-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: center;
}
.pricing-compare-card.featured {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  position: relative;
}
.pricing-compare-card .price-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
}
.pricing-compare-card .price-period {
  font-size: 0.9rem;
  color: #6b7280;
}
.pricing-compare-card .price-note {
  font-size: 0.85rem;
  color: #8B5CF6;
  font-weight: 600;
  margin-top: 4px;
}
.pricing-compare-card h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #1a1a2e;
}

/* CTA Section */
.compare-cta {
  padding: 64px 0;
  background: linear-gradient(135deg, #0f0a1e 0%, #1a1035 100%);
  text-align: center;
}
.compare-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.compare-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.compare-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.compare-cta .btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.compare-cta .btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.compare-cta .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #c4b5fd;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  transition: background 0.2s;
}
.compare-cta .btn-cta-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
}
.compare-cta .cta-subtext {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Feature Deep-Dive Cards */
.feature-compare-grid {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.feature-compare-item {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.feature-compare-item h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-compare-item .product-section {
  margin-bottom: 16px;
}
.feature-compare-item .product-name {
  font-weight: 700;
  color: #1a1a2e;
  display: block;
  margin-bottom: 6px;
}
.feature-compare-item .product-name.you {
  color: #8B5CF6;
}
.feature-compare-item .bottom-line {
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid #10b981;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: #065f46;
  margin-top: 12px;
}

/* Migration Section */
.migration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.migration-step {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.migration-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.migration-step h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1a1a2e;
}
.migration-step p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Alternatives Index Grid */
.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.alternative-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.alternative-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: rgba(139, 92, 246, 0.3);
}
.alternative-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #1a1a2e;
}
.alternative-card .card-tagline {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 16px;
  flex-grow: 1;
}
.alternative-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8B5CF6;
  font-weight: 600;
  font-size: 0.9rem;
}
.alternative-card .card-link::after {
  content: '→';
  transition: transform 0.2s;
}
.alternative-card:hover .card-link::after {
  transform: translateX(4px);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumbs a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: #c4b5fd;
}
.breadcrumbs span { margin: 0 8px; }

/* FAQ Schema Section */
.compare-faq {
  padding: 64px 0;
  background: #f9fafb;
}
.compare-faq h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 32px;
  text-align: center;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item-compare {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.faq-item-compare h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.faq-item-compare p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* Internal Links */
.related-pages {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid #eee;
}
.related-pages h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 24px;
  text-align: center;
}
.related-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.related-link {
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.related-link:hover {
  border-color: #8B5CF6;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .compare-hero { padding: 100px 0 40px; }
  .compare-hero h1 { font-size: 1.75rem; }
  .who-cards { grid-template-columns: 1fr; }
  .pricing-compare { grid-template-columns: 1fr; }
  .migration-steps { grid-template-columns: 1fr 1fr; }
  .alternatives-grid { grid-template-columns: 1fr; }
  .compare-cta h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .migration-steps { grid-template-columns: 1fr; }
  .tldr-card { padding: 20px; }
  .compare-cta .cta-buttons { flex-direction: column; align-items: center; }
}
