/* ================================================
   Archives UI Upgrade — Visual Polish Layer
   Applied to ALL pages via <link> injection
   ================================================ */

/* ---- Visual Hierarchy ---- */
.page-header h1 {
  position: relative;
  padding-bottom: 12px;
}
.page-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #16a34a;
  border-radius: 2px;
}

/* Section headers with left accent */
.season-breakdown h2,
.analysis-section h2,
.related-trends h2,
.faq-section h2,
.methodology h2 {
  padding-left: 16px;
  border-left: 4px solid #16a34a;
}

/* ---- Enhanced Tables ---- */
.table-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
tbody td {
  padding: 12px 16px;
}
tbody tr:nth-child(even) {
  background: #fafbfc;
}
tbody tr:hover {
  background: #f0fdf4;
}
tbody tr.positive {
  border-left: 3px solid #16a34a;
}
tbody tr.negative {
  border-left: 3px solid #dc2626;
}

/* ---- Card Improvements ---- */
.related-card,
.team-card,
.card {
  transition: all 0.2s ease;
}
.related-card:hover,
.team-card:hover,
.card:hover {
  border-color: #16a34a;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.15);
  transform: translateY(-3px);
}

/* Verdict badges — larger, pill-shaped */
.verdict-badge,
.trend-verdict-badge {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ROI color coding in stat grids */
.stat-value.positive,
.trend-stat-value.positive,
.positive-cell { color: #16a34a; }
.stat-value.negative,
.trend-stat-value.negative,
.negative-cell { color: #dc2626; }

/* ---- Navigation ---- */
.nav-link.active {
  color: #16a34a;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  height: 3px;
  background: #16a34a;
  border-radius: 2px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  padding: 10px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 24px;
}
.breadcrumbs .separator {
  color: #16a34a;
  font-weight: 600;
  margin: 0 6px;
}

/* ---- Back to Top Button ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3);
  transition: all 0.2s;
  z-index: 99;
}
.back-to-top:hover {
  background: #15803d;
  transform: translateY(-2px);
}
.back-to-top.visible {
  display: flex;
}

/* ---- Search Focus Glow ---- */
.search-input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
  outline: none;
}

/* ---- Filter Active State ---- */
.filter-chip.active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* ---- Micro-interactions ---- */
a, .btn, .card, .related-card, .team-card, .filter-chip {
  transition: all 0.2s ease;
}

/* ---- Executive Summary polish ---- */
.executive-summary {
  border-left: 4px solid #16a34a;
}

/* ---- CTA box polish ---- */
.cta-box .btn-primary {
  padding: 16px 32px;
  font-size: 16px;
  transition: all 0.2s;
}
.cta-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,163,74,0.3);
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .team-cards-grid,
  .top-trends-cards,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .search-input {
    width: 100%;
  }
  .nav-link.active::after {
    display: none;
  }
  .breadcrumbs {
    font-size: 13px;
    padding: 8px 12px;
  }
  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}
