/* ==========================================================================
   TheCyberPicks Best-For Page V2 — tcp-bestfor.css
   New format: card-based layout, always-visible CTAs, responsive grid.
   Uses LOCKED design system tokens from tcp-design-system.css
   ========================================================================== */

/* --- Breadcrumbs --- */
.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;
}

/* --- Best-for header --- */
.tcp-bestfor-header {
  padding: var(--tcp-space-8) 0 var(--tcp-space-6);
}

.tcp-bestfor-header h1 {
  margin: 0 0 var(--tcp-space-4);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   QUICK PICKS — summary card with numbered list
   ========================================================================== */

.tcp-quick-picks {
  background: var(--tcp-bg-alt);
  border: 1px solid var(--tcp-border);
  border-radius: 12px;
  padding: var(--tcp-space-6);
  margin-bottom: var(--tcp-space-8);
}

.tcp-quick-picks-label {
  font-size: var(--tcp-fs-small);
  font-weight: 600;
  color: var(--tcp-primary);
  margin-bottom: var(--tcp-space-4);
  display: flex;
  align-items: center;
  gap: var(--tcp-space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tcp-quick-picks ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pick;
}

.tcp-quick-picks li {
  counter-increment: pick;
  padding: var(--tcp-space-3) 0;
  font-size: var(--tcp-fs-base);
  line-height: var(--tcp-lh-body);
  border-bottom: 1px solid var(--tcp-border);
  display: flex;
  align-items: center;
  gap: var(--tcp-space-3);
}

.tcp-quick-picks li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tcp-quick-picks li::before {
  content: counter(pick);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tcp-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tcp-quick-picks li strong {
  color: var(--tcp-text);
}

.tcp-quick-picks li a {
  color: var(--tcp-primary);
  text-decoration: none;
  font-weight: 600;
}

.tcp-quick-picks li a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   COMPARISON TABLE — clean, no forced widths
   ========================================================================== */

.tcp-comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--tcp-space-6) 0;
  border: 1px solid var(--tcp-border);
  border-radius: 12px;
}

.tcp-comparison-table {
  width: 100%;
  border-collapse: collapse;
}

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

.tcp-comparison-table th,
.tcp-comparison-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-comparison-table th {
  font-weight: 600;
  color: var(--tcp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}

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

.tcp-rating {
  font-weight: 600;
  color: var(--tcp-rating-star);
}

/* ==========================================================================
   PICK CARDS V2 — card with stat grid + full-width CTA
   ========================================================================== */

.tcp-pick-card {
  background: var(--tcp-bg-alt);
  border: 1px solid var(--tcp-border);
  border-radius: 12px;
  padding: var(--tcp-space-6);
  margin: var(--tcp-space-6) 0;
  position: relative;
  transition: border-color 0.2s ease;
}

.tcp-pick-card:hover {
  border-color: var(--tcp-primary);
}

.tcp-pick-card:first-of-type {
  border: 2px solid var(--tcp-primary);
  margin-top: var(--tcp-space-8);
}

.tcp-pick-card-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tcp-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: var(--tcp-fs-base);
  flex-shrink: 0;
}

.tcp-pick-card h3 {
  margin: 0 0 var(--tcp-space-1);
  font-size: var(--tcp-fs-h3);
  font-weight: 700;
}

.tcp-pick-card h3 a {
  color: var(--tcp-text);
  text-decoration: none;
}

.tcp-pick-card h3 a:hover {
  color: var(--tcp-primary);
}

.tcp-pick-card-meta {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
  margin-bottom: var(--tcp-space-4);
  padding-bottom: var(--tcp-space-4);
  border-bottom: 1px solid var(--tcp-border);
}

.tcp-pick-card-meta strong {
  color: var(--tcp-text);
}

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

.tcp-pick-card .tcp-cta-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--tcp-space-3) var(--tcp-space-6);
  min-height: 48px;
  line-height: 1.5;
  font-size: var(--tcp-fs-base);
  border-radius: 8px;
  margin-top: var(--tcp-space-4);
}

/* Star rating */
.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;
}

/* ==========================================================================
   DATA TABLES — clean, responsive
   ========================================================================== */

.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: 12px;
}

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

.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.04em;
  font-size: 0.6875rem;
}

.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;
}

/* ==========================================================================
   METHODOLOGY & CONTENT SECTIONS
   ========================================================================== */

.tcp-bestfor-content h2 {
  margin-top: var(--tcp-space-8);
  padding-top: var(--tcp-space-6);
  border-top: 1px solid var(--tcp-border);
}

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

/* Feature / criteria 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
   ========================================================================== */

.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: 1px solid var(--tcp-border);
  border-radius: 8px;
  padding: var(--tcp-space-4);
  margin-bottom: var(--tcp-space-3);
  background: var(--tcp-bg-alt);
  transition: border-color 0.15s ease;
}

.tcp-faq-item:hover {
  border-color: var(--tcp-primary);
}

.tcp-faq-item:last-child {
  margin-bottom: 0;
}

.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
   ========================================================================== */

.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: 48px;
  height: 48px;
  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
   ========================================================================== */

.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;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tcp-space-2);
}

.tcp-related-links li {
  margin: 0;
}

.tcp-related-links a {
  color: var(--tcp-primary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--tcp-space-2);
  padding: var(--tcp-space-2) var(--tcp-space-3);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.tcp-related-links a:hover {
  background: var(--tcp-bg-alt);
  text-decoration: none;
}

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

/* ==========================================================================
   RESPONSIVE — mobile: < 640px
   ========================================================================== */

@media (max-width: 639px) {
  .tcp-quick-picks {
    padding: var(--tcp-space-4);
  }

  .tcp-comparison-table th:nth-child(4),
  .tcp-comparison-table td:nth-child(4),
  .tcp-comparison-table th:nth-child(5),
  .tcp-comparison-table td:nth-child(5) {
    display: none;
  }

  .tcp-comparison-table th,
  .tcp-comparison-table td {
    padding: var(--tcp-space-2) var(--tcp-space-3);
    font-size: 0.8125rem;
  }

  .tcp-comparison-table .tcp-cta-button {
    padding: var(--tcp-space-2) var(--tcp-space-3);
    font-size: 0.75rem;
    white-space: nowrap;
    min-height: 36px;
  }

  .tcp-data-table th,
  .tcp-data-table td {
    padding: var(--tcp-space-2) var(--tcp-space-3);
    font-size: 0.8125rem;
    word-break: break-word;
  }

  .tcp-pick-card {
    padding: var(--tcp-space-4);
  }

  .tcp-pick-card:first-of-type {
    margin-top: var(--tcp-space-6);
  }
}

/* ==========================================================================
   RESPONSIVE — sm: 640px+
   ========================================================================== */

@media (min-width: 640px) {
  .tcp-pick-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 var(--tcp-space-4);
    align-items: start;
  }

  .tcp-pick-card-rank {
    grid-row: 1 / 4;
    margin-top: var(--tcp-space-1);
  }

  .tcp-pick-card .tcp-cta-button {
    grid-column: 2;
  }

  .tcp-related-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE — lg: 1024px+
   ========================================================================== */

@media (min-width: 1024px) {
  .tcp-bestfor-header h1 {
    font-size: 2.5rem;
  }
}
