/* ==========================================================================
   TheCyberPicks Comparison Page — tcp-comparison.css
   Uses LOCKED design system tokens from tcp-design-system.css
   Self-contained: includes all styles needed for comparison pages
   ========================================================================== */

/* --- Breadcrumbs (shared pattern) --- */
.tcp-breadcrumbs {
  padding: var(--tcp-space-4) 0 0;
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
}

.tcp-breadcrumbs a {
  color: var(--tcp-text-muted);
  text-decoration: none;
}

.tcp-breadcrumbs a:hover {
  color: var(--tcp-primary);
  text-decoration: underline;
}

.tcp-breadcrumb-sep {
  margin: 0 var(--tcp-space-2);
  color: var(--tcp-border);
}

.tcp-breadcrumb-current {
  color: var(--tcp-text);
  font-weight: 500;
}

/* --- Comparison header --- */
.tcp-comparison-header {
  padding: var(--tcp-space-8) 0 var(--tcp-space-6);
}

.tcp-comparison-header h1 {
  margin: 0 0 var(--tcp-space-4);
}

/* --- Quick verdict box --- */
.tcp-verdict-quick {
  background: var(--tcp-bg-alt);
  border: 1px solid var(--tcp-border);
  border-left: 4px solid var(--tcp-primary);
  border-radius: 0 8px 8px 0;
  padding: var(--tcp-space-6);
  margin-bottom: var(--tcp-space-8);
}

.tcp-verdict-quick-label {
  font-size: var(--tcp-fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tcp-primary);
  margin-bottom: var(--tcp-space-2);
}

.tcp-verdict-quick-winner {
  font-size: var(--tcp-fs-h3);
  font-weight: 700;
  color: var(--tcp-text);
  margin-bottom: var(--tcp-space-3);
}

.tcp-verdict-quick p {
  margin: 0;
  font-size: var(--tcp-fs-base);
  color: var(--tcp-text-muted);
  line-height: var(--tcp-lh-body);
}

/* --- Side-by-side comparison table --- */
.tcp-vs-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--tcp-space-6) 0;
  border: 1px solid var(--tcp-border);
  border-radius: 8px;
}

.tcp-vs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.tcp-vs-table thead {
  background: var(--tcp-bg-alt);
}

.tcp-vs-table th,
.tcp-vs-table td {
  padding: var(--tcp-space-3) var(--tcp-space-4);
  text-align: left;
  border-bottom: 1px solid var(--tcp-border);
  font-size: var(--tcp-fs-small);
}

.tcp-vs-table th {
  font-weight: 600;
  color: var(--tcp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}

.tcp-vs-table th:first-child {
  font-size: var(--tcp-fs-small);
  text-transform: none;
  letter-spacing: normal;
  color: var(--tcp-text);
}

.tcp-vs-table tbody tr:hover {
  background: var(--tcp-bg-alt);
}

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

.tcp-vs-table .tcp-winner-cell {
  color: var(--tcp-accent);
  font-weight: 600;
}

.tcp-vs-table .tcp-draw-cell {
  color: var(--tcp-warning);
  font-weight: 600;
}

/* --- Category winner badge --- */
.tcp-category-winner {
  display: inline-flex;
  align-items: center;
  gap: var(--tcp-space-1);
  font-size: var(--tcp-fs-small);
  font-weight: 600;
  color: var(--tcp-accent);
  margin-top: var(--tcp-space-2);
}

.tcp-category-winner::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--tcp-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5l-7 7L3 8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5l-7 7L3 8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tcp-category-draw {
  display: inline-flex;
  align-items: center;
  gap: var(--tcp-space-1);
  font-size: var(--tcp-fs-small);
  font-weight: 600;
  color: var(--tcp-warning);
  margin-top: var(--tcp-space-2);
}

/* --- Data tables (speed, streaming, pricing comparison) --- */
.tcp-data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--tcp-space-4) 0 var(--tcp-space-6);
  border: 1px solid var(--tcp-border);
  border-radius: 8px;
}

.tcp-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.tcp-data-table thead {
  background: var(--tcp-bg-alt);
}

.tcp-data-table th,
.tcp-data-table td {
  padding: var(--tcp-space-3) var(--tcp-space-4);
  text-align: left;
  border-bottom: 1px solid var(--tcp-border);
  font-size: var(--tcp-fs-small);
}

.tcp-data-table th {
  font-weight: 600;
  color: var(--tcp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}

.tcp-data-table tbody tr:hover {
  background: var(--tcp-bg-alt);
}

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

.tcp-data-table .tcp-status-yes {
  color: var(--tcp-accent);
  font-weight: 600;
}

.tcp-data-table .tcp-status-no {
  color: var(--tcp-danger);
  font-weight: 600;
}

.tcp-data-table .tcp-status-partial {
  color: var(--tcp-warning);
  font-weight: 600;
}

.tcp-test-note {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
  margin-top: calc(-1 * var(--tcp-space-4));
  margin-bottom: var(--tcp-space-6);
  font-style: italic;
}

/* --- Dual CTA row --- */
.tcp-dual-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tcp-space-4);
  padding: var(--tcp-space-6) 0;
  border-top: 1px solid var(--tcp-border);
  border-bottom: 1px solid var(--tcp-border);
  margin: var(--tcp-space-6) 0;
}

.tcp-dual-cta-item {
  text-align: center;
}

.tcp-dual-cta-item .tcp-dual-cta-label {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
  margin-bottom: var(--tcp-space-2);
}

/* --- Final verdict box --- */
.tcp-verdict-final {
  background: var(--tcp-bg-alt);
  border: 1px solid var(--tcp-border);
  border-radius: 8px;
  padding: var(--tcp-space-6);
  margin: var(--tcp-space-6) 0;
}

.tcp-verdict-final h3 {
  margin: 0 0 var(--tcp-space-4);
}

.tcp-verdict-final-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tcp-space-6);
  margin-top: var(--tcp-space-6);
}

.tcp-verdict-final-product {
  text-align: center;
  padding: var(--tcp-space-4);
  border: 1px solid var(--tcp-border);
  border-radius: 8px;
  background: var(--tcp-bg);
}

.tcp-verdict-final-product h4 {
  margin: 0 0 var(--tcp-space-2);
  font-size: var(--tcp-fs-h3);
}

.tcp-verdict-final-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tcp-text);
  line-height: 1;
  margin-bottom: var(--tcp-space-2);
}

.tcp-star-rating {
  position: relative;
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1;
  white-space: nowrap;
}

.tcp-stars-bg {
  color: var(--tcp-border);
  letter-spacing: 2px;
}

.tcp-stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--tcp-rating-star);
  white-space: nowrap;
  letter-spacing: 2px;
}

.tcp-verdict-final-product p {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
  margin: var(--tcp-space-2) 0 var(--tcp-space-4);
  line-height: var(--tcp-lh-body);
}

/* --- Comparison section structure --- */
.tcp-comparison-content h2 {
  margin-top: var(--tcp-space-8);
  padding-top: var(--tcp-space-6);
  border-top: 1px solid var(--tcp-border);
}

.tcp-comparison-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* --- Feature list --- */
.tcp-feature-list {
  list-style: none;
  margin: var(--tcp-space-4) 0 var(--tcp-space-6);
  padding: 0;
}

.tcp-feature-list li {
  padding: var(--tcp-space-3) 0;
  border-bottom: 1px solid var(--tcp-border);
  font-size: var(--tcp-fs-base);
  line-height: var(--tcp-lh-body);
}

.tcp-feature-list li:last-child {
  border-bottom: none;
}

.tcp-feature-list strong {
  color: var(--tcp-text);
}

/* --- FAQ section (shared pattern) --- */
.tcp-faq-section {
  padding: var(--tcp-space-8) 0;
  border-top: 1px solid var(--tcp-border);
}

.tcp-faq-section h2 {
  margin: 0 0 var(--tcp-space-6);
  border-top: none;
  padding-top: 0;
}

.tcp-faq-item {
  border-bottom: 1px solid var(--tcp-border);
  padding: var(--tcp-space-4) 0;
}

.tcp-faq-item:last-child {
  border-bottom: none;
}

.tcp-faq-item h3 {
  font-size: var(--tcp-fs-base);
  font-weight: 600;
  margin: 0 0 var(--tcp-space-2);
  color: var(--tcp-text);
}

.tcp-faq-item p {
  margin: 0;
  font-size: var(--tcp-fs-base);
  color: var(--tcp-text-muted);
  line-height: var(--tcp-lh-body);
}

/* --- Author byline (shared pattern) --- */
.tcp-author-byline {
  display: flex;
  align-items: center;
  gap: var(--tcp-space-4);
  padding: var(--tcp-space-6) 0;
  border-top: 1px solid var(--tcp-border);
  margin-top: var(--tcp-space-4);
}

.tcp-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tcp-bg-alt);
  border: 2px solid var(--tcp-border);
  flex-shrink: 0;
  object-fit: cover;
}

.tcp-author-info {
  flex: 1;
}

.tcp-author-name {
  font-weight: 600;
  color: var(--tcp-text);
  font-size: var(--tcp-fs-base);
}

.tcp-author-name a {
  color: var(--tcp-text);
  text-decoration: none;
}

.tcp-author-name a:hover {
  color: var(--tcp-primary);
}

.tcp-author-meta {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
  margin-top: 2px;
}

.tcp-author-meta a {
  color: var(--tcp-primary);
  text-decoration: none;
}

.tcp-author-meta a:hover {
  text-decoration: underline;
}

/* --- Related pages (shared pattern) --- */
.tcp-related-section {
  padding: var(--tcp-space-6) 0;
  border-top: 1px solid var(--tcp-border);
}

.tcp-related-section h2 {
  font-size: var(--tcp-fs-h3);
  margin: 0 0 var(--tcp-space-4);
  border-top: none;
  padding-top: 0;
}

.tcp-related-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tcp-related-links li {
  margin-bottom: var(--tcp-space-2);
}

.tcp-related-links a {
  color: var(--tcp-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--tcp-space-2);
}

.tcp-related-links a:hover {
  text-decoration: underline;
  color: var(--tcp-primary-dark);
}

.tcp-related-links a::before {
  content: "\2192";
  font-size: var(--tcp-fs-small);
}

/* --- Responsive — sm: 640px --- */
@media (min-width: 640px) {
  .tcp-dual-cta {
    grid-template-columns: 1fr 1fr;
  }

  .tcp-verdict-final-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Responsive — lg: 1024px --- */
@media (min-width: 1024px) {
  .tcp-comparison-header h1 {
    font-size: 2.5rem;
  }
}
