/* ================================================
   The Archives - Stylesheet
   Matches learnsportsbetting.com design system
   ================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #1a1a1a; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ================================================
   Navigation (matches main site header)
   ================================================ */
.archives-nav {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.logo-text { font-size: 22px; font-weight: 800; color: #1a1a1a; }
.logo-accent { color: #16a34a; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; font-weight: 500; color: #525252; transition: color 0.2s; }
.nav-link:hover { color: #16a34a; }
.nav-cta {
  background: #16a34a !important;
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.nav-cta:hover { background: #15803d !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2px; background: #1a1a1a;
  margin: 5px 0; transition: 0.3s;
}

/* ================================================
   Main Content Container
   ================================================ */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ================================================
   Breadcrumbs
   ================================================ */
.breadcrumbs {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  padding: 0;
}
.breadcrumbs a { color: #525252; }
.breadcrumbs a:hover { color: #16a34a; }
.breadcrumbs span { color: #1a1a1a; font-weight: 500; }

/* ================================================
   Page Header
   ================================================ */
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.page-header .subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

/* ================================================
   Executive Summary
   ================================================ */
.executive-summary {
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* ================================================
   Data Box (Stats Card)
   ================================================ */
.data-box {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-item {
  text-align: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}
.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 6px;
}
.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
}
.stat-value.positive { color: #16a34a; }
.stat-value.negative { color: #dc2626; }

/* Verdict Badge */
.verdict-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}
.verdict-elite { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.verdict-profitable { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.verdict-neutral { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.verdict-fade { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.verdict-strong-fade { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ================================================
   Season Breakdown Table
   ================================================ */
.season-breakdown {
  margin-bottom: 40px;
}
.season-breakdown h2,
.analysis-section h2,
.related-trends h2,
.faq-section h2,
.methodology h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead tr, tr.header-green {
  background: #1a1a1a;
}
thead th, tr.header-green th {
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f9fafb; }
tbody tr.positive td:last-child { color: #16a34a; font-weight: 600; }
tbody tr.negative td:last-child { color: #dc2626; font-weight: 600; }

/* ================================================
   AI Analysis Section
   ================================================ */
.analysis-section {
  margin-bottom: 40px;
}
.ai-analysis {
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* ================================================
   Related Trends
   ================================================ */
.related-trends {
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.related-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}
.related-card:hover {
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.related-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #16a34a;
  margin-bottom: 4px;
}
.related-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

/* ================================================
   FAQ Section
   ================================================ */
.faq-section {
  margin-bottom: 40px;
}
.faq-item {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: #fff;
}
.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.faq-answer {
  font-size: 14px;
  color: #525252;
  line-height: 1.7;
}

/* ================================================
   CTA Box
   ================================================ */
.cta-box {
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  text-align: center;
}
.cta-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-box p {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}
/* Action CTA (green - profitable trend) */
.cta-action {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
}
.cta-action h3 { color: #166534; }
.cta-action p { color: #15803d; }
/* Fade CTA (red/orange - fade trend) */
.cta-fade {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
}
.cta-fade h3 { color: #991b1b; }
.cta-fade p { color: #b91c1c; }
/* Neutral CTA */
.cta-neutral {
  background: #f9fafb;
  border: 1px solid #e5e5e5;
}
.cta-neutral h3 { color: #1a1a1a; }
.cta-neutral p { color: #525252; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #16a34a;
  color: #fff;
}
.btn-primary:hover { background: #15803d; }
.btn-outline {
  border: 2px solid #d4d4d4;
  color: #525252;
  background: transparent;
}
.btn-outline:hover { border-color: #16a34a; color: #16a34a; }

/* ================================================
   Methodology
   ================================================ */
.methodology {
  margin-bottom: 40px;
}
.methodology p {
  font-size: 13px;
  color: #999;
  line-height: 1.8;
}

/* ================================================
   Footer (matches main site)
   ================================================ */
.archives-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 64px 24px 32px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.5;
  margin-bottom: 16px;
}
.footer-section p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.7;
  margin-top: 12px;
}
.footer-section ul {
  list-style: none;
}
.footer-section li {
  margin-bottom: 10px;
}
.footer-section a {
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.2s;
}
.footer-section a:hover { opacity: 1; color: #22c55e; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.footer-bottom .disclaimer {
  font-size: 12px;
  opacity: 0.4;
}

/* ================================================
   Landing Pages
   ================================================ */
.landing-hero {
  background: linear-gradient(135deg, #f8fdf8 0%, #f0fdf4 100%);
  padding: 48px 24px;
  margin-bottom: 40px;
  border-radius: 0;
}
.landing-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.landing-hero p {
  font-size: 17px;
  color: #525252;
  max-width: 880px;
  margin: 0 auto;
}

/* Sport / Team Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}
.card:hover {
  border-color: #16a34a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}
.card .card-link {
  font-size: 14px;
  color: #16a34a;
  font-weight: 600;
}

/* Trend Table on Landing Pages */
.trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 32px;
}
.trend-table th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.trend-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.trend-table tr:hover { background: #f9fafb; }
.trend-table a { color: #16a34a; font-weight: 500; }
.trend-table a:hover { text-decoration: underline; }

/* Sport badges */
.sport-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.sport-badge.nba { background: #fef3c7; color: #92400e; }
.sport-badge.nfl { background: #dbeafe; color: #1e40af; }
.sport-badge.mlb { background: #fce7f3; color: #9d174d; }

/* ================================================
   Search (if included)
   ================================================ */
.search-container {
  margin-bottom: 32px;
}
.search-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: #16a34a; }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  main { padding: 24px 16px 48px; }
  .page-header h1 { font-size: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .data-box { padding: 20px; }
  .stat-value { font-size: 20px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .executive-summary { padding: 16px; }
}

/* ================================================
   Team Cards Grid (Sport Index Pages)
   ================================================ */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.team-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
}
.team-card:hover {
  border-color: #16a34a;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
}
.team-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-stats span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.team-stats .positive {
  background: #f0fdf4;
  color: #16a34a;
}
.team-stats .negative {
  background: #fef2f2;
  color: #dc2626;
}

/* ================================================
   Top Trends Section
   ================================================ */
.top-trends-section {
  margin-bottom: 40px;
}
.top-trends-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #16a34a;
  display: inline-block;
}
.teams-section {
  margin-bottom: 40px;
}
.teams-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

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

/* ================================================
   Active Nav Link
   ================================================ */
.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;
}

/* ================================================
   Enhanced Tables (zebra, hover, row borders)
   ================================================ */
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; }
tbody tr.positive td:last-child,
tbody tr.negative td:last-child { font-weight: 700; }

/* ================================================
   Sortable Table Headers
   ================================================ */
th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
th.sortable:hover {
  background: #333;
}
.sort-icon {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.6;
}
th.sortable.asc .sort-icon::after { content: ' \25B2'; }
th.sortable.desc .sort-icon::after { content: ' \25BC'; }

/* ================================================
   Positive / Negative Cells
   ================================================ */
.positive-cell { color: #16a34a; font-weight: 600; }
.negative-cell { color: #dc2626; font-weight: 600; }

/* ================================================
   Top Trend Highlight Cards
   ================================================ */
.top-trends-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.top-trend-highlight {
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
  color: #fff;
}
.top-trend-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.top-trend-highlight.positive-card {
  background: linear-gradient(135deg, #16a34a, #10b981);
}
.top-trend-highlight.negative-card {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}
.top-trend-highlight h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.top-trend-highlight .trend-situation {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}
.top-trend-highlight .trend-highlight-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.top-trend-highlight .trend-highlight-stats span {
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

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

/* ================================================
   Back Link
   ================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.back-link:hover { color: #15803d; }

/* ================================================
   Responsive — Team Cards & Top Trends Cards
   ================================================ */
@media (max-width: 1024px) {
  .team-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .top-trends-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .team-cards-grid { grid-template-columns: 1fr; }
  .top-trends-cards { grid-template-columns: 1fr; }
  .nav-link.active::after { display: none; }
}
