/* === Base Theme Variables === */
:root {
  --bg-primary: #fefefe;
  --bg-secondary: #fff7ed;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --primary-color: #ea580c;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --border-color: #e7e5e4;
}

[data-theme="dark"] {
  --bg-primary: #2d2520;     /* Very soft, not harsh */
  --bg-secondary: #3a2f28;   /* Gentle contrast for code */
  --text-primary: #fafaf9;
  --text-secondary: #d6d3d1;
  --text-muted: #a8a29e;
  --primary-color: #fb923c;  /* Keep your orange! */
  --secondary-color: #38bdf8;
  --accent-color: #fbbf24;   /* Keep your amber! */
  --border-color: #4a3c2f;
}
/* === Layout === */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* === Navbar === */
.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Add hover transition */
  transition: all 0.3s ease;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  /* Add hover effect */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-img {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 3px 6px rgba(234, 88, 12, 0.3));
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

/* === Hero / Masthead === */
.hero {
  text-align: center; 
  padding: 1.25rem 1rem 1.25rem; 
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.site-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-family: "Georgia", "Times New Roman", serif;
}


.hero h1 {
  font-size: 2rem; /* down from 2.5rem */
  margin-bottom: 0.75rem; /* tighter spacing under title */
}


.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c2410c;
  margin-bottom: 0.5rem;
}
.subtext {
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.5rem;
}

.read-more-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: var(--primary-color);
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* === Sections === */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* === Explainer Grid === */

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.explainer-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.explainer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.explainer-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Hero images inside posts */
.post-hero {
  width: 100%;
  max-width: 1000px; 
  max-height: 360px; /* Maintains aspect ratio */
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
}

.explainer-card h2 {
  font-size: 1.2rem;
  margin: 1rem;
  color: var(--text-primary);
}

.explainer-card .excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 1rem 1rem;
}

/* === Hot Takes (Streamlined) === */
.hot-takes-section {
  padding: 2rem 1rem;
}

/* Home page hot takes grid */
.takes-grid {
  max-width: 720px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* Universal hot take card (used on home page and collection page) */
.take-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.take-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.take-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.take-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.take-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.take-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Title styling (works for both h2 and h3) */
.take-card h2,
.take-card h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.25rem;
}

.take-card a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.take-card a:hover {
  color: var(--primary-color);
}

.take-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Collection page layout */
.hot-takes-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Collection page uses same .take-card but in single column */
.hot-takes-collection {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Individual hot take post page */
.hot-take-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hot-take-post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.hot-take-post-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.hot-take-post-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hot-take-post-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hot-take-badge-large {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hot-take-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.hot-take-content h2 {
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.hot-take-content h3 {
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.hot-take-content  pre {

  background: var(--bg-secondary, #eee); 
    color: var(--text-code, #333);
    border-left: 4px solid var(--accent-color);
}


.hot-take-content pre {
  padding: 1rem 1.25rem; 
  margin: 1.5rem 0; 
  font-size: 0.9rem; 
  line-height: 1.4; 
  overflow-x: auto; 
  background: var(--bg-secondary); 
  border-left: 4px solid var(--accent-color); 
}

/* Blockquotes*/
.hot-take-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem; 
  font-style: italic;
  background-color: var(--bg-light); 
  color: var(--text-primary); 
  margin: 2rem 0;
}


.expand-roast-btn {
  background: linear-gradient(135deg, var(--primary-color), #dc2626);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expand-roast-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
  filter: brightness(1.1);
}

.expand-roast-btn:active {
  transform: translateY(0);
}

[data-theme="dark"] .expand-roast-btn {
  background: linear-gradient(135deg, var(--primary-color), #ef4444);
}

.full-take-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border-color);
}


/* Related explainer section */
.related-explainer {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.0rem;
  margin: 2rem 0;
  text-align: center;
}

.related-explainer h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hot-take-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.hot-take-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hot-take-nav a {
  color: var(--text-muted);
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.hot-take-nav a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}


/* Mobile responsive */
@media (max-width: 768px) {
  .takes-grid {
    grid-template-columns: 1fr;
  }
  
  .take-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .hot-take-post-header h1 {
    font-size: 2rem;
  }
  
  .hot-take-post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ---------------------------
   Featured Tier (homepage)
   --------------------------- */

/* Uses existing theme variables (falls back sensibly) */
.featured-tier {
  background: linear-gradient(180deg, var(--bg-secondary, #fff7ed), rgba(0,0,0,0.01));
  border: 1px solid var(--border-color, #e7e5e4);
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 8px 30px rgba(15,23,42,0.04);
  max-width: 900px;
  margin: 0.75rem auto;
}

.featured-tier .take-time {
  display: inline-block;
  color: var(--text-muted, #78716c);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.featured-tier h3 {
  margin: 0.25rem 0;
  font-size: 1.15rem;
  line-height: 1.15;
}
.featured-tier h3 a {
  color: var(--text-primary, #1c1917);
  text-decoration: none;
  font-weight: 700;
}
.featured-tier h3 a:hover { text-decoration: underline; }

/* Excerpt — multiline clamp for tidy cards (adjust lines if you want shorter) */
.featured-excerpt {
  /* required for the clamp technique */
  display: -webkit-box;           /* legacy WebKit technique */
  -webkit-box-orient: vertical;   /* legacy WebKit technique */
  overflow: hidden;
  text-overflow: ellipsis;

  /* vendor-prefixed then standard (keeps linters happy and future-proofs) */
  -webkit-line-clamp: 4;
  line-clamp: 4;
}


/* CTA spacing: reuse  existing .read-more-btn but add spacing */
.featured-tier .read-more-btn {
  margin-right: 0.5rem;
}

/* secondary CTA outline (matches earlier .btn-outline ) */
.featured-tier .read-more-btn.btn-outline {
  background: transparent;
  color: var(--text-primary, #1c1917);
  border: 1px solid var(--border-color, #e7e5e4);
  font-weight: 600;
}

/* responsive tweaks */
@media (max-width: 600px) {
  .featured-tier {
    padding: 0.9rem;
    margin: 0.9rem 1rem;
  }

  .featured-excerpt {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
}



/* === Footer === */
.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.site-footer-img {
  height: 20px;
  width: auto;
  vertical-align: middle; /* align with text */
  margin: 0 4px;
  display: inline;        /* flowing with text */
}

.site-footer a.footer-link {
  color: var(--text-secondary); 
  text-decoration: none;
  margin: 0 0.25rem;
  font-size: 0.85rem;
}

.site-footer a.footer-link:hover {
  color: var(--primary-color); 
  text-decoration: underline;
}
/* --- 1. TYPOGRAPHY & VISUAL HIERARCHY --- */
/* --- BASE TYPOGRAPHY RESET --- */
body {
    color: var(--text-primary, #333); /* Fallback to black if variable fails */
    background-color: var(--bg-primary, #fff); 
    line-height: 1.6;
}

/* Basic Link Styling */
a {
    color: var(--primary-color, #007bff); /* Use your theme's primary color */
    text-decoration: none; /* Remove default underline */
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color, #0056b3); 
    text-decoration: underline;
}

/* Ensure code blocks look correct */
.post-content pre {

  background: var(--bg-secondary, #eee); 
    color: var(--text-code, #333);
    border-left: 4px solid var(--accent-color);
}

/* Base Post Styling  */

.post {
  max-width: 760px; 
  margin: 0;
  padding: 0 1rem;
  flex: 1;
  min-width: 0;
}


/* Headings inside articles */
.post-content h2,
.post-content h3 {
  font-weight: 700; 
  margin-top: 3.5rem; 
  margin-bottom: 1rem; 
  line-height: 1.3;
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    opacity: 0.9;
}


.post-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.post-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Dark mode adjustments */
[data-theme="dark"] .post-content h2 {
    border-bottom-color: var(--primary-color);
}


/* Code Blocks  */
.post-content pre {
  padding: 1rem 1.25rem; 
  margin: 1.5rem 0; 
  font-size: 0.9rem; 
  line-height: 1.4; 
  overflow-x: auto; 
  background: var(--bg-secondary); 
  border-left: 4px solid var(--accent-color); 
}

/* Blockquotes*/
.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem; 
  font-style: italic;
  background-color: var(--bg-light); 
  color: var(--text-primary); 
  margin: 2rem 0;
}


/* --- 2. LAYOUT CSS FOR LARGE SCREEN SIDEBAR (ToC) --- */


.post-layout-wrapper {
  display: flex;
  justify-content: flex-start;
  padding: 0 1rem;
  gap: 120px;
  align-items: flex-start;  
}

.sticky-toc-sidebar {
    width: 250px; 
    flex-shrink: 0;  /* Prevent sidebar from shrinking */
    position: sticky;
    top: 4rem; 
    align-self: flex-start; 
    padding-top: 1rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

/* 3. Media Query to HIDE the sidebar on screens less than 1200px wide */
@media (max-width: 1200px) {
  .sticky-toc-sidebar {
    display: none;
  }
  .post-layout-wrapper {
      padding: 0;
  }
}

/* 4. ToC Link Styling  */
.toc-list {
    list-style: none;
    padding: 0;
}
.toc-list a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.4;
    font-weight: 600;
}
.toc-list a:hover {
    color: var(--primary-color);
}
.toc-list .active-link {
    font-weight: bold;
    color: var(--primary-color);
    border-left: 2px solid var(--primary-color);
    padding-left: 8px;
    margin-left: -8px; 
}

.toc-nav a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);  
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.toc-nav a:hover {
    color: var(--primary-color);
}


/* Hides the auto-generated anchor links next to headings */
.post-content .header-anchor {
    /* The anchor is hidden by default */
    visibility: hidden;
    text-decoration: none; 
    color: var(--text-primary);
    font-size: 80%;
    margin-left: 0.5rem;
    padding-right: 0.2rem;
}


html {
    scroll-behavior: smooth;
}

.post-content h2,
.post-content h3 {
    scroll-margin-top: 7rem; 
}


/* --- COPY BUTTON CSS --- */

.post-content pre {
    position: relative; 
}

/* 2. Style and position the button */
.copy-code-btn {
    position: absolute;
    top: 0.5rem;      /* Distance from the top of the pre block */
    right: 0.5rem;    /* Distance from the right of the pre block */
    padding: 0.2rem 0.5rem;
    background-color: var(--bg-secondary); 
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.7; 
    transition: opacity 0.2s;
}

.copy-code-btn:hover,
.copy-code-btn:focus {
    opacity: 1; 
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .post-nav {
    flex-direction: column;
    text-align: center;
  }
}


/* Podium Display (Home Page Preview) */
.podium-preview {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border-radius: 16px;
  padding: 40px 20px;
  margin: 32px 0;
  color: white;
  text-align: center;
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.podium-position {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  min-width: 160px;
  transition: transform 0.3s;
}

.podium-position:hover {
  transform: scale(1.05);
}

/* Correct podium order: 2nd-1st-3rd */
.podium-first {
  height: 200px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1c1917;
  order: 2;
}

.podium-second {
  height: 160px;
  background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
  color: #1c1917;
  order: 1;
}

.podium-third {
  height: 120px;
  background: linear-gradient(135deg, #cd7f32, #d4a574);
  color: white;
  order: 3;
}

.podium-rank {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.podium-tier {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.podium-tools {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Classic Tier List Display */
.classic-tier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 2rem 0;
}

.tier {
  display: flex;
  min-height: 100px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

[data-theme="dark"] .tier {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tier:hover {
  transform: translateY(-2px);
}

.tier-label {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 20px 12px;
}

.tier-rank {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.tier-tools {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  flex-wrap: wrap;
}

.tool-pill {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tool-emoji {
  font-size: 1.1rem;
}

/* Tier Colors */
.s-tier .tier-label { background: var(--primary-color); }
.a-tier .tier-label { background: var(--secondary-color); }
.b-tier .tier-label { background: var(--accent-color); }
.c-tier .tier-label { background: #f97316; }
.f-tier .tier-label { background: #ef4444; }

/* Analysis Section */
.tier-analysis {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 2px solid var(--border-color);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.analysis-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.analysis-card h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.analysis-card ul {
  list-style-type: none;
  padding: 0;
}

.analysis-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.analysis-card li:last-child {
  border-bottom: none;
}

/* Tier List Page Styles */
.tier-list-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tier-list-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tier-list-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tier-list-meta {
  color: var(--text-muted);
  font-size: 1rem;
}

.tier-list-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.tier-list-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.read-more-btn.secondary {
  background: var(--secondary-color);
}

.read-more-btn.secondary:hover {
  background: color-mix(in srgb, var(--secondary-color) 85%, black);
}

/* Tier Lists Collection Page */
.tier-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tier-list-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tier-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

[data-theme="dark"] .tier-list-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.tier-list-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.tier-list-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.tier-list-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.tier-list-card h2 a:hover {
  color: var(--primary-color);
}

.featured-badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  flex-shrink: 0;
}

.tier-list-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tier-list-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-type {
  background: var(--secondary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Custom Tier List Post Layout */
.tier-list-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tier-post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tier-post-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tier-hero {
  width: 100%;
  max-width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.tier-post-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  align-items: center;
}

.visual-tier-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.visual-tier-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.tier-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.tier-post-content h2 {
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.tier-post-content h3 {
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.tier-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.tier-post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .podium-container {
    flex-direction: column;
    align-items: center;
  }
  
  .podium-position {
    width: 100%;
    max-width: 280px;
    height: auto !important;
    margin-bottom: 16px;
  }
  
  .tier {
    flex-direction: column;
    min-height: auto;
  }
  
  .tier-label {
    min-width: auto;
    padding: 16px;
  }
  
  .tier-tools {
    padding: 16px;
  }
  
  .tool-pill {
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .tier-list-header h1 {
    font-size: 2rem;
  }
  
  .tier-post-header h1 {
    font-size: 2rem;
  }
  
  .tier-post-meta {
    flex-direction: column;
    align-items: center;
  }
  
  .tier-post-nav {
    flex-direction: column;
  }
  
  .tier-list-nav {
    flex-direction: column;
  }
  
  .tier-lists-grid {
    grid-template-columns: 1fr;
  }
}
/* === Mobile Navigation Fix === */

/* Hide hamburger by default */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
  
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }
  
  /* Hide nav links by default on mobile */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  /* Show nav when active */
  .nav-links.active {
    max-height: 400px;
  }
  
  /* Style mobile nav items */
  .nav-links li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: background 0.2s ease;
  }
  
  .nav-links a:hover {
    background: var(--bg-secondary);
  }
  
  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Adjust hero title for mobile */
  .site-title {
    font-size: 2.2rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 1rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .site-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .post {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 1rem;
    
  }
  
  .post-hero {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
  }
  
  .post-content {
    width: 100%;
  }
  
  .post h1 {
    font-size: 1.8rem;
  }
}
/* === Table Styling === */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] table {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

table th {
  background-color: var(--primary-color);
  color: #fefefe;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
}

table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

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

table tbody tr:hover {
  background-color: var(--bg-secondary);
  transition: background-color 0.2s ease;
}

/* Highlight the best choice column (middle column) */
table td:nth-child(2),
table th:nth-child(2) {
  font-weight: 600;
  color: var(--primary-color);
}

[data-theme="dark"] table td:nth-child(2) {
  color: var(--accent-color);
}

/* Optional: Striped rows for better readability */
table tbody tr:nth-child(odd) {
  background-color: var(--bg-primary);
}

table tbody tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* Breadcrumb Styles */
.breadcrumbs {
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin: 0 0.5rem;
  color: var(--text-muted, #6b7280);
  font-weight: 400;
}

.breadcrumb-link {
  color: var(--link-color, #3b82f6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--link-hover-color, #1d4ed8);
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text-muted, #6b7280);
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dark theme adjustments */
[data-theme="dark"] .breadcrumbs {
  border-bottom-color: var(--border-color-dark, #374151);
}

[data-theme="dark"] .breadcrumb-item:not(:last-child)::after {
  color: var(--text-muted-dark, #9ca3af);
}

[data-theme="dark"] .breadcrumb-current {
  color: var(--text-muted-dark, #9ca3af);
}

[data-theme="dark"] .post-content pre {
  color: var(--text-muted-dark, #9ca3af);
}

[data-theme="dark"] .hot-take-content pre {
  color: var(--text-muted-dark, #9ca3af);
}


/* Responsive design */
@media (max-width: 768px) {
  .breadcrumb-current {
    max-width: 200px;
  }
}


.about-container {
  max-width: 800px; 
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Reddit Feed Section Styling */

section.reddit-feed {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  border-top: 2px dashed var(--border-color);
  opacity: 0.95;
}

/* Section title + subtitle */
section.reddit-feed .section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

section.reddit-feed .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Toggle button */
.reddit-toggle-btn {
  display: block;
  margin: 0 auto 1.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* === Contact Page === */
.contact-page {
  text-align: center;          /* center text + inline elements */
  max-width: 600px;            /* don’t stretch too wide */
  margin: 0 auto;              /* center the block itself */
  padding: 2rem 1rem;          /* breathing room */
}

.contact-page h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.contact-btn:hover {
  background: var(--secondary-color);
}

.legal-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.7;
  text-align: left;
}

.legal-page h1, 
.legal-page h2 {
  text-align: center;
  margin: 1.5rem 0 1rem;
}


.reddit-toggle-btn:hover {
  background: var(--bg-hover);
}

/* Collapsible content */
.reddit-feed-content {
  display: none;
}

.reddit-feed-content.active {
  display: grid;
  gap: 1rem;
}

/* Individual post card */
.reddit-post {
  padding: 1rem;
  border-radius: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, background 0.2s ease;
}

.reddit-post:hover {
  transform: translateY(-3px);
  background: var(--bg-hover);
}

.reddit-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.reddit-title:hover {
  color: var(--accent);
}

.reddit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.reddit-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
