/* Compare Page Styles */

/* Header solid variant */
.header-solid {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

/* Compare Page Container */
.compare-page {
  padding-top: 72px;
}

/* Hero Section */
.compare-page .hero-section {
  padding: 80px 0 60px;
  background: #000000;
  text-align: center;
}

.compare-page .hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.compare-page .hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

/* Compare Section */
.compare-section {
  padding: 60px 0 80px;
  background: #000000;
}

.compare-intro {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.compare-intro p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* Comparison Table */
.compare-table-wrapper {
  overflow-x: auto;
  margin-bottom: 60px;
  padding: 0 16px;
}

.compare-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
}

.compare-table thead {
  background: rgba(212, 175, 55, 0.15);
}

.compare-table th {
  padding: 20px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-align: left;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.compare-table th.highlight {
  background: rgba(212, 175, 55, 0.25);
  color: #D4AF37;
}

.compare-table td {
  padding: 16px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.compare-table td.highlight {
  background: rgba(212, 175, 55, 0.08);
  font-weight: 500;
}

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

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

/* Check/Cross/Partial Icons */
.compare-table .check {
  color: #4CAF50;
  font-weight: bold;
  margin-right: 6px;
}

.compare-table .cross {
  color: #ef5350;
  font-weight: bold;
}

.compare-table .partial {
  color: #FFC107;
  font-weight: bold;
  margin-right: 6px;
}

/* Platform Details Section */
.platform-details {
  max-width: 900px;
  margin: 0 auto 60px;
}

.platform-details h2 {
  font-size: 1.75rem;
  color: white;
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.platform-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.platform-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
}

.platform-card.sweethome-card {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.platform-card.sweethome-card:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
}

.platform-card h3 {
  font-size: 1.375rem;
  color: white;
  margin-bottom: 16px;
}

.platform-card.sweethome-card h3 {
  color: #D4AF37;
}

.platform-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 16px;
}

.platform-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sweethome-card .highlight-tag {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
  color: #D4AF37;
}

/* Conclusion Section */
.compare-conclusion {
  max-width: 900px;
  margin: 0 auto 60px;
}

.compare-conclusion h2 {
  font-size: 1.75rem;
  color: white;
  text-align: center;
  margin-bottom: 32px;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.conclusion-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.conclusion-item:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
}

.conclusion-item h4 {
  font-size: 1.125rem;
  color: rgba(212, 175, 55, 0.9);
  margin-bottom: 12px;
}

.conclusion-item p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.conclusion-item strong {
  color: white;
}

/* CTA Section */
.cta-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.cta-section h2 {
  font-size: 1.75rem;
  color: white;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 1.0625rem;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

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

@media (max-width: 768px) {
  .compare-page .hero-section {
    padding: 60px 20px 40px;
  }

  .compare-page .hero-section h1 {
    font-size: 1.75rem;
  }

  .compare-page .hero-subtitle {
    font-size: 1rem;
  }

  .compare-section {
    padding: 40px 0 60px;
  }

  .compare-intro {
    margin-bottom: 32px;
    padding: 0 20px;
  }

  .compare-intro p {
    font-size: 1rem;
  }

  .compare-table-wrapper {
    margin-bottom: 40px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
    font-size: 0.875rem;
  }

  .platform-details {
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .platform-details h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .platform-card {
    padding: 24px;
  }

  .platform-card h3 {
    font-size: 1.25rem;
  }

  .platform-card p {
    font-size: 0.9375rem;
  }

  .compare-conclusion {
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .compare-conclusion h2 {
    font-size: 1.5rem;
  }

  .conclusion-item {
    padding: 20px;
  }

  .cta-section {
    margin: 0 20px;
    padding: 40px 24px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* RTL Support */
html[dir="rtl"] .compare-table th,
html[dir="rtl"] .compare-table td {
  text-align: right;
}

html[dir="rtl"] .compare-table .check,
html[dir="rtl"] .compare-table .partial {
  margin-right: 0;
  margin-left: 6px;
}

html[dir="rtl"] .platform-card,
html[dir="rtl"] .conclusion-item,
html[dir="rtl"] .compare-intro,
html[dir="rtl"] .cta-section {
  text-align: right;
}
