/* =========================================================
   COMPARATIE.CSS — Tabelul comparativ
   alexbaicu.ro
   ========================================================= */

#comparatie {
  background: var(--color-bg-base);
}

#comparatie .section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.comparatie-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.comparatie-intro strong {
  color: var(--color-text-primary);
}

/* ── TABEL CONTAINER ──────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  -webkit-overflow-scrolling: touch;
}

table.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: var(--text-sm);
}

/* ── HEADER ───────────────────────────────────────────────── */
.comp-table thead tr {
  background: var(--color-bg-elevated);
}

.comp-table th {
  padding: 1.1rem 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.comp-table th:first-child {
  text-align: left;
  color: var(--color-text-faint);
}

/* Coloana Alex Baicu — evidențiată */
.comp-table th.col-alex {
  color: var(--color-cyan);
  position: relative;
}

.comp-table th.col-alex::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-cyan);
}

/* ── RÂNDURI ──────────────────────────────────────────────── */
.comp-table tbody tr {
  background: var(--color-bg-raised);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

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

.comp-table tbody tr:hover {
  background: var(--color-bg-elevated);
}

.comp-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
  vertical-align: middle;
}

.comp-table td:first-child {
  text-align: left;
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

/* ── STARE CELULE ─────────────────────────────────────────── */
.comp-table .cyan {
  color: var(--color-cyan);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
}

.comp-table .yes {
  color: var(--color-success);
  font-weight: var(--weight-bold);
}

.comp-table .no {
  color: rgba(255, 255, 255, 0.2);
}

/* ── BADGE SUB TABEL ──────────────────────────────────────── */
.comparatie-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.comparatie-cta p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: var(--text-lg);
}

.comparatie-cta p strong {
  color: var(--color-text-primary);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .comparatie-intro {
    font-size: var(--text-base);
  }

  .comp-table th,
  .comp-table td {
    padding: 0.85rem 1rem;
  }
}
