/* ==========================================================================
   TheCyberPicks Homepage — tcp-homepage.css
   Uses LOCKED design system tokens from tcp-design-system.css
   No new color/font/spacing variables introduced
   ========================================================================== */

/* --- Hero Section --- */
.tcp-hero {
  background: var(--tcp-bg-alt);
  padding: var(--tcp-space-16) 0 var(--tcp-space-12);
  position: relative;
  overflow: hidden;
}

.tcp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--tcp-space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tcp-space-8);
  align-items: center;
}

.tcp-hero-content {
  max-width: 640px;
}

.tcp-hero h1 {
  font-size: var(--tcp-fs-h1);
  font-family: var(--tcp-font-heading);
  line-height: var(--tcp-lh-heading);
  color: var(--tcp-text);
  margin: 0 0 var(--tcp-space-4);
}

.tcp-hero-sub {
  font-size: 1.125rem;
  line-height: var(--tcp-lh-body);
  color: var(--tcp-text-muted);
  margin: 0 0 var(--tcp-space-8);
}

.tcp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tcp-space-3);
  margin-bottom: var(--tcp-space-8);
}

.tcp-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tcp-space-6);
}

.tcp-hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--tcp-space-2);
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
}

.tcp-hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--tcp-accent);
  flex-shrink: 0;
}

/* Hero shield graphic */
.tcp-hero-graphic {
  display: none;
  justify-content: center;
  align-items: center;
}

.tcp-hero-shield {
  width: 280px;
  height: 280px;
  opacity: 0.9;
}

/* --- Section headings --- */
.tcp-section-header {
  text-align: center;
  margin-bottom: var(--tcp-space-8);
}

.tcp-section-header h2 {
  font-size: var(--tcp-fs-h2);
  color: var(--tcp-text);
  margin: 0 0 var(--tcp-space-2);
}

.tcp-section-header p {
  font-size: var(--tcp-fs-base);
  color: var(--tcp-text-muted);
  margin: 0;
}

/* --- Comparison table section --- */
.tcp-table-section {
  padding: var(--tcp-space-12) 0;
}

.tcp-table-section .tcp-section-header {
  margin-bottom: var(--tcp-space-6);
}

.tcp-best-pick-badge {
  display: inline-block;
  background: var(--tcp-accent);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: var(--tcp-space-2);
  vertical-align: middle;
}

.tcp-comparison-table .tcp-best-pick-row {
  background: rgba(0, 200, 150, 0.04);
}

.tcp-comparison-table .tcp-best-pick-row:hover {
  background: rgba(0, 200, 150, 0.08);
}

/* Comparison table CTA sizing for homepage */
.tcp-comparison-table .tcp-cta-button {
  font-size: var(--tcp-fs-small);
  padding: var(--tcp-space-2) var(--tcp-space-4);
  white-space: nowrap;
}

/* --- Category Cards --- */
.tcp-categories-section {
  padding: var(--tcp-space-12) 0;
  background: var(--tcp-bg-alt);
}

.tcp-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tcp-space-6);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--tcp-space-4);
}

.tcp-category-card {
  background: var(--tcp-bg);
  border: 1px solid var(--tcp-border);
  border-radius: 12px;
  padding: var(--tcp-space-8);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.tcp-category-card:hover {
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.08);
}

.tcp-category-card--active:hover {
  transform: translateY(-2px);
}

.tcp-category-card--muted {
  opacity: 0.65;
}

.tcp-category-card--muted:hover {
  box-shadow: none;
  transform: none;
}

.tcp-category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--tcp-space-4);
  color: var(--tcp-primary);
}

.tcp-category-card--muted .tcp-category-icon {
  color: var(--tcp-text-muted);
}

.tcp-category-card h3 {
  font-size: var(--tcp-fs-h3);
  color: var(--tcp-text);
  margin: 0 0 var(--tcp-space-2);
}

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

.tcp-coming-soon-badge {
  display: inline-block;
  background: var(--tcp-border);
  color: var(--tcp-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Latest Articles --- */
.tcp-latest-section {
  padding: var(--tcp-space-12) 0;
}

.tcp-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tcp-space-6);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--tcp-space-4);
}

.tcp-article-card {
  background: var(--tcp-bg);
  border: 1px solid var(--tcp-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.tcp-article-card:hover {
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.08);
  transform: translateY(-2px);
}

.tcp-article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tcp-article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--tcp-bg-alt);
}

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

.tcp-article-meta {
  display: flex;
  gap: var(--tcp-space-3);
  font-size: 0.75rem;
  color: var(--tcp-text-muted);
  margin-bottom: var(--tcp-space-2);
}

.tcp-article-category {
  color: var(--tcp-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tcp-article-card-body h3 {
  font-size: var(--tcp-fs-base);
  line-height: var(--tcp-lh-heading);
  color: var(--tcp-text);
  margin: 0 0 var(--tcp-space-2);
}

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

.tcp-no-articles {
  text-align: center;
  padding: var(--tcp-space-12) var(--tcp-space-4);
  color: var(--tcp-text-muted);
}

/* --- Trust Strip --- */
.tcp-trust-section {
  padding: var(--tcp-space-12) 0;
  background: var(--tcp-bg-alt);
}

.tcp-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tcp-space-6);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--tcp-space-4);
}

.tcp-trust-pillar {
  text-align: center;
  padding: var(--tcp-space-6);
}

.tcp-trust-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--tcp-space-4);
  color: var(--tcp-primary);
}

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

.tcp-trust-pillar p {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
  margin: 0;
  line-height: var(--tcp-lh-body);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Newsletter Section --- */
.tcp-newsletter-section {
  padding: var(--tcp-space-16) 0;
  text-align: center;
}

.tcp-newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 var(--tcp-space-4);
}

.tcp-newsletter-section h2 {
  font-size: var(--tcp-fs-h2);
  color: var(--tcp-text);
  margin: 0 0 var(--tcp-space-2);
}

.tcp-newsletter-section .tcp-newsletter-subtitle {
  font-size: var(--tcp-fs-base);
  color: var(--tcp-text-muted);
  margin: 0 0 var(--tcp-space-8);
}

.tcp-newsletter-section .tcp-newsletter-form-hp {
  display: flex;
  gap: var(--tcp-space-2);
  margin-bottom: var(--tcp-space-3);
}

.tcp-newsletter-section .tcp-newsletter-form-hp input[type="email"] {
  flex: 1;
  padding: var(--tcp-space-3) var(--tcp-space-4);
  border: 2px solid var(--tcp-border);
  border-radius: 6px;
  font-size: var(--tcp-fs-base);
  font-family: var(--tcp-font-body);
  color: var(--tcp-text);
  background: var(--tcp-bg);
}

.tcp-newsletter-section .tcp-newsletter-form-hp input[type="email"]:focus {
  border-color: var(--tcp-primary);
  outline: none;
}

.tcp-newsletter-section .tcp-newsletter-form-hp button {
  padding: var(--tcp-space-3) var(--tcp-space-6);
  background: var(--tcp-accent);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: var(--tcp-fs-base);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.tcp-newsletter-section .tcp-newsletter-form-hp button:hover {
  background: #00b085;
}

.tcp-newsletter-section .tcp-newsletter-form-hp button:focus-visible {
  outline: 3px solid var(--tcp-primary);
  outline-offset: 2px;
}

.tcp-newsletter-privacy {
  font-size: var(--tcp-fs-small);
  color: var(--tcp-text-muted);
}

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

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

  .tcp-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tcp-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Responsive — md: 768px --- */
@media (min-width: 768px) {
  .tcp-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Responsive — lg: 1024px --- */
@media (min-width: 1024px) {
  .tcp-hero-inner {
    grid-template-columns: 1fr auto;
  }

  .tcp-hero-graphic {
    display: flex;
  }

  .tcp-hero h1 {
    font-size: 2.75rem;
  }

  .tcp-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Responsive — xl: 1280px --- */
@media (min-width: 1280px) {
  .tcp-hero h1 {
    font-size: 3rem;
  }

  .tcp-hero-shield {
    width: 320px;
    height: 320px;
  }
}
