﻿/* Steven Weisburd Master Portal - Styles */
/* Echo Angel v1.0.0 | January 2026 */

:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #ed8936;
  --accent-light: #fbd38d;
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --success: #48bb78;
  --warning: #ecc94b;
  --hot: #e53e3e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 700; }
.logo-sub { font-size: 0.85rem; opacity: 0.9; font-weight: 400; }

/* Navigation */
.nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.nav a {
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav a:hover, .nav a.active {
  background: var(--bg);
  border-bottom-color: var(--accent);
  color: var(--primary);
}

/* Main Content */
.main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* Topic Cards - Special styling */

/* =============================================
   SW-PORTAL-STYLING-v1 - Topic Card Overhaul
   Fixed: 2026-01-21 | Echo Angel Recovery
   ============================================= */

/* Topic Card - Vertical Stack Layout */
.topic-card {
  background: var(--card-bg);
  border-radius: 8px;
  border-left: 5px solid var(--accent);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.topic-card.rank-1 { border-left-color: var(--hot); }
.topic-card.rank-2 { border-left-color: var(--accent); }
.topic-card.rank-3 { border-left-color: var(--warning); }

/* Topic Header - Horizontal with proper spacing */
.topic-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.rank {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 50px;
  line-height: 1;
}

.topic-card:nth-child(1) .rank,
.topic-card.rank-1 .rank { color: var(--hot); }
.topic-card:nth-child(2) .rank { color: var(--accent); }
.topic-card:nth-child(3) .rank { color: var(--warning); }

.topic-title-section {
  flex: 1;
  min-width: 200px;
}

.topic-title-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.topic-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

/* Score Badge - Contextual */
.score-badge {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-badge::before {
  content: "Score: ";
  font-weight: 500;
  opacity: 0.9;
}

/* Hot Badge */
.hot-badge {
  display: inline-block;
  background: var(--hot);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Topic Content Sections */
.topic-content {
  margin-bottom: 1rem;
}

.topic-section {
  background: var(--bg);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid transparent;
}

.topic-section:nth-child(1) { border-left-color: var(--secondary); }
.topic-section:nth-child(2) { border-left-color: var(--accent); }
.topic-section:nth-child(3) { border-left-color: var(--success); }

.topic-section strong {
  color: var(--primary);
  font-weight: 600;
}

/* Topic Tags */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tag {
  background: var(--bg);
  color: var(--text-light);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.primary {
  background: var(--secondary);
  color: white;
}

/* Expandable Section - Below Content */
.expandable-section {
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

.expand-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}

.expand-toggle:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.expand-toggle .arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.expand-toggle.expanded .arrow {
  transform: rotate(90deg);
}

.expandable-content {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}

.expandable-content.show {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Expandable Content Sections */
.expandable-content h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.expandable-content h4:first-child {
  margin-top: 0;
}

/* Sources List */
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-item {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--accent);
}

.source-item a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.source-item a:hover {
  text-decoration: underline;
}

.source-meta {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.source-quote {
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-light);
  border-left: 3px solid var(--warning);
}

/* Audience Grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.audience-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 6px;
  border-top: 3px solid var(--border);
}

.audience-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.audience-label.primary { color: var(--secondary); }
.audience-label.secondary { color: var(--accent); }
.audience-label.crossover { color: var(--success); }

.audience-card:has(.audience-label.primary) { border-top-color: var(--secondary); }
.audience-card:has(.audience-label.secondary) { border-top-color: var(--accent); }
.audience-card:has(.audience-label.crossover) { border-top-color: var(--success); }

.audience-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* Reach Indicator */
.reach-indicator {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.reach-narrow { background: #e3f2fd; color: #1565c0; }
.reach-broad { background: #fff3e0; color: #e65100; }
.reach-crossover { background: #e8f5e9; color: #2e7d32; }

/* Headlines List */
.headlines-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.headline-item {
  background: var(--card-bg);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  border-left: 3px solid var(--secondary);
}

.headline-item:hover {
  background: var(--bg);
}

/* Keywords Section */
.keywords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  background: var(--card-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.keyword-tag.trending {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  font-weight: 600;
}

.keyword-tag.trending::after {
  content: " 📈";
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .topic-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .rank {
    font-size: 1.5rem;
  }
  
  .score-badge {
    align-self: flex-start;
  }
  
  .audience-grid {
    grid-template-columns: 1fr;
  }
  
  .topic-section {
    padding: 0.875rem 1rem;
  }
}

/* END SW-PORTAL-STYLING-v1 */
/* Section Titles */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border-top: 4px solid var(--secondary);
  transition: all 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.project-link:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #dd6b20; }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-small { padding: 0.25rem 0.75rem; font-size: 0.8rem; }

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer a { color: var(--accent-light); }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-light); }

/* Hot badge */
.hot-badge {
  background: var(--hot);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

/* Week header */
.week-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.week-header h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.week-header .subtitle { opacity: 0.9; font-size: 0.9rem; }

/* Archive list */
.archive-list { list-style: none; }
.archive-list li {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-list li:hover { background: var(--bg); }

/* Responsive */
@media (max-width: 768px) {
  .header-content { flex-direction: column; text-align: center; }
  .nav-content { flex-wrap: wrap; justify-content: center; }
  .nav a { padding: 0.75rem 1rem; font-size: 0.9rem; }
  .main { padding: 0 1rem; }
  .topic-card { flex-direction: column; }
  .topic-rank { min-width: auto; }
}

/* Print */
@media print {
  .nav, .footer, .btn { display: none; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* ========================================
   EXPANDABLE SECTIONS - v2.0 Enhancement
   ======================================== */

/* Expandable container */
.expandable-section {
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}

.expand-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 0.5rem 0;
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}

.expand-toggle:hover {
  color: var(--accent);
}

.expand-toggle .arrow {
  transition: transform 0.2s;
  font-size: 0.75rem;
}

.expand-toggle.expanded .arrow {
  transform: rotate(90deg);
}

.expandable-content {
  display: none;
  padding: 1rem 0;
  animation: fadeIn 0.2s ease-in;
}

.expandable-content.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   SOURCES SECTION
   ======================================== */

.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-item {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border-radius: 6px;
  border-left: 3px solid var(--secondary);
}

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

.source-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.source-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.source-quote {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent-light);
}

/* ========================================
   AUDIENCE SECTION
   ======================================== */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.audience-card {
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 6px;
}

.audience-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.audience-label.primary { color: var(--hot); }
.audience-label.secondary { color: var(--accent); }
.audience-label.crossover { color: var(--success); }

.audience-text {
  font-size: 0.9rem;
  color: var(--text);
}

/* Reach indicators */
.reach-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.reach-narrow { background: #fed7d7; color: #c53030; }
.reach-broad { background: #fefcbf; color: #975a16; }
.reach-crossover { background: #c6f6d5; color: #276749; }

/* ========================================
   HEADLINES SECTION
   ======================================== */

.headlines-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.headline-item {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--bg), #fff);
  border-radius: 4px;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--accent);
}

.headline-item::before {
  content: '"';
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 0.25rem;
}

.headline-item::after {
  content: '"';
  font-size: 1.2rem;
  color: var(--accent);
  margin-left: 0.25rem;
}

/* ========================================
   KEYWORDS/SEO SECTION
   ======================================== */

.keywords-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
}

.keyword-tag.trending {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  font-weight: 600;
}

.keyword-tag .trend-arrow {
  color: #16a34a;
  font-weight: bold;
}

.keyword-tag .trend-arrow.down {
  color: #dc2626;
}

/* SEO Explainer Box */
.seo-explainer {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.seo-explainer h4 {
  color: #1e40af;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.seo-explainer p {
  font-size: 0.85rem;
  color: #1e3a8a;
  margin: 0;
}

/* Tools recommendation box */
.tools-box {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.tools-box h5 {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.tool-item {
  font-size: 0.8rem;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
}

.tool-item a {
  color: var(--secondary);
  text-decoration: none;
}

.tool-item a:hover {
  text-decoration: underline;
}

.tool-item .tool-type {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* ========================================
   PUBLICATIONS SECTION
   ======================================== */

.pub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pub-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--secondary);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s;
}

.pub-tag:hover {
  background: var(--accent);
}

/* Publication page specific */
.pub-tier {
  margin-bottom: 2rem;
}

.pub-tier-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pub-tier-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tier-1 { background: #fef3c7; color: #92400e; }
.tier-2 { background: #dbeafe; color: #1e40af; }
.tier-3 { background: #f3e8ff; color: #6b21a8; }
.tier-4 { background: #dcfce7; color: #166534; }

.pub-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.pub-card:hover {
  border-color: var(--secondary);
}

.pub-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pub-audience {
  font-size: 0.85rem;
  color: var(--text-light);
}

.pub-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

/* ========================================
   HONORABLE MENTIONS COMPACT
   ======================================== */

.mention-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.mention-item:last-child {
  border-bottom: none;
}

.mention-title {
  font-weight: 600;
  color: var(--primary);
}

.mention-score {
  background: var(--warning);
  color: var(--text);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.mention-source {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.mention-source a {
  color: var(--secondary);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
  
  .pub-card {
    grid-template-columns: 1fr;
  }
  
  .expandable-content {
    padding: 0.75rem 0;
  }
}

/* ========================================
   TOPIC CARD COMPLETE STYLES v2.1
   ======================================== */

/* Base topic card - inherits card styling */
.topic-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
}

.topic-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Topic header - contains rank, title, score */
.topic-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Rank number (#1, #2, #3) */
.rank {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hot);
  line-height: 1;
  min-width: 50px;
}

.topic-card:nth-child(2) .rank { color: var(--accent); }
.topic-card:nth-child(3) .rank { color: var(--warning); }

/* Title section */
.topic-title-section {
  flex: 1;
}

.topic-title-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.topic-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* HOT badge */
.hot-badge {
  display: inline-block;
  background: var(--hot);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Score badge */
.score-badge {
  background: linear-gradient(135deg, var(--success), #38a169);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Topic content area */
.topic-content {
  margin-bottom: 1rem;
}

/* Individual sections (The Story, Why NOW, Your Angle) */
.topic-section {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.topic-section strong {
  color: var(--primary);
}

/* Topic tags container */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

/* Individual tags */
.tag {
  display: inline-block;
  background: var(--bg);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.tag:hover {
  background: var(--border);
}

.tag.primary {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Section cards (for Honorable Mentions, etc.) */
.section-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Week header */
.week-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.week-header h2 {
  margin-bottom: 0.5rem;
}

.week-header p {
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.update-note {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Methodology note */
.methodology-note {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2rem;
}

.methodology-note a {
  color: var(--secondary);
}

/* Site header specific */
.site-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2rem;
  margin-bottom: 0;
}

.site-header .header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.site-header .tagline {
  font-size: 0.85rem;
  opacity: 0.9;
}

.version-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Main navigation */
.main-nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.main-nav a {
  display: inline-block;
  padding: 1rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.main-nav a:hover {
  color: var(--secondary);
  background: var(--bg);
}

.main-nav a.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Site footer */
.site-footer {
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
  .topic-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .rank {
    font-size: 1.5rem;
  }
  
  .score-badge {
    align-self: flex-start;
  }
  
  .container {
    padding: 1rem;
  }
  
  .main-nav a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
