/* Competitor Table V2 */

.ct-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: var(--v2-bg-white);
  border: 1px solid var(--v2-border-main);
  box-shadow: 0 4px 24px rgba(60, 34, 24, 0.08);
}

.ct-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ct-table {
  border-collapse: collapse;
  min-width: 600px;
}

/* Header cells */
.ct-th {
  padding: 16px 20px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--v2-brown);
  background: var(--v2-bg-peach-light);
  border-bottom: 2px solid var(--v2-border-main);
  white-space: nowrap;
}

.ct-th-feature {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--v2-bg-peach-light);
  min-width: 180px;
}

.ct-th-highlight {
  background: var(--v2-orange);
  color: #fff;
}

.ct-col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ct-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Body cells */
.ct-td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--v2-border-main);
  font-size: var(--font-size-sm);
  color: var(--v2-brown-light);
}

.ct-td-feature {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--v2-bg-white);
  font-weight: var(--font-weight-medium);
  color: var(--v2-brown);
}

.ct-td-highlight {
  background: rgba(255, 103, 56, 0.04);
}

.ct-row:last-child .ct-td {
  border-bottom: none;
}

.ct-row:hover .ct-td {
  background-color: var(--v2-bg-peach-light);
}

.ct-row:hover .ct-td-highlight {
  background-color: rgba(255, 103, 56, 0.08);
}

.ct-row:hover .ct-td-feature {
  background-color: var(--v2-bg-peach-light);
}

/* Value icons */
.ct-check {
  display: inline-flex;
  color: var(--v2-orange);
}

.ct-x {
  display: inline-flex;
  color: var(--v2-brown-lightest);
}

.ct-partial {
  display: inline-flex;
  color: var(--v2-orange-light);
}

.ct-text {
  font-size: var(--font-size-xs);
  color: var(--v2-brown-light);
}

.ct-feature-name {
  display: inline;
}

.ct-tooltip {
  margin-left: 4px;
  cursor: help;
}

.ct-footnote {
  padding: 0 20px;
}

/* Responsive: ensure sticky column works with horizontal scroll */
@media (max-width: 768px) {
  .ct-th-feature,
  .ct-td-feature {
    min-width: 150px;
    max-width: 150px;
    font-size: var(--font-size-xs);
  }

  .ct-th,
  .ct-td {
    padding: 10px 14px;
    font-size: var(--font-size-xs);
  }
}
