/* Capability Comparison */
.capabilityComparison {
  background: var(--ifm-background-surface-color);
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparisonHeader {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--ifm-color-emphasis-100);
  font-weight: 600;
  font-size: 0.95rem;
}

.comparisonHeader > div {
  padding: 1rem;
  text-align: center;
  border-right: 1px solid var(--ifm-color-emphasis-200);
}

.comparisonHeader > div:last-child {
  border-right: none;
}

.comparisonRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
  transition: background-color 0.2s ease;
}

.comparisonRow:hover {
  background: var(--ifm-color-emphasis-50);
}

.comparisonRow:last-child {
  border-bottom: none;
}

.capabilityName {
  padding: 1.25rem 1rem;
  font-weight: 600;
  background: var(--ifm-color-emphasis-50);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--ifm-color-emphasis-200);
  font-size: 0.95rem;
}

.traditionalCell, .draCell {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-right: 1px solid var(--ifm-color-emphasis-200);
}

.traditionalCell {
  background: rgba(255, 107, 107, 0.05);
}

.draCell {
  background: rgba(76, 175, 80, 0.05);
  border-right: none;
}

.capabilityStatus {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.capabilityStatusFull {
  color: #27ae60;
}

.capabilityStatusLimited {
  color: #f39c12;
}

.capabilityStatusNone {
  color: #e74c3c;
}

.capabilityDesc {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.capabilityDesc code {
  font-size: 0.8rem;
  background: var(--ifm-color-emphasis-200);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  display: inline-block;
  margin-top: 0.25rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .comparisonHeader,
  .comparisonRow {
    grid-template-columns: 1fr;
  }

  .comparisonHeader > div,
  .capabilityName,
  .traditionalCell,
  .draCell {
    border-right: none;
    border-bottom: 1px solid var(--ifm-color-emphasis-200);
  }

  .capabilityName {
    background: var(--ifm-color-emphasis-100);
    font-weight: 700;
  }
}
