/*
  Applied AI Observer Network Dashboard
  CAH 205 - Spring 2026

  Design: Digital Publication / Tech Magazine
  Aesthetic: Clean, bold, high-contrast with electric orange accent
  Typography: Sora (display) + DM Sans (body)
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Core palette - crisp and modern */
  --bg-page: #FAFBFC;
  --bg-white: #FFFFFF;
  --bg-elevated: #F4F5F7;
  --bg-muted: #E8EAED;

  /* Text hierarchy */
  --text-primary: #0F1419;
  --text-secondary: #536471;
  --text-tertiary: #8899A6;
  --text-inverse: #FFFFFF;

  /* Accent - electric orange */
  --accent: #FF5722;
  --accent-hover: #E64A19;
  --accent-light: #FFF3E0;
  --accent-glow: rgba(255, 87, 34, 0.15);

  /* Instructor accent - distinguished teal */
  --instructor: #00897B;
  --instructor-light: #E0F2F1;
  --instructor-glow: rgba(0, 137, 123, 0.12);

  /* Borders */
  --border-light: #E1E4E8;
  --border-medium: #D0D7DE;
  --border-focus: var(--accent);

  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-width: 1140px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 16px rgba(255, 87, 34, 0.25);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Decorative Accent Stripe
   ======================================== */
.accent-stripe {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 45%,
    var(--accent-light) 45%,
    var(--accent-light) 55%,
    transparent 55%
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   Links
   ======================================== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ========================================
   Header
   ======================================== */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Live indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-light);
  border-radius: 100px;
  position: relative;
}

.pulse-ring {
  position: absolute;
  left: var(--space-md);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.live-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Header right section */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Header navigation link */
.header-nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
}

.header-nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ========================================
   Filter Bar
   ======================================== */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.select-wrapper {
  position: relative;
}

.filter-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-2xl) var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius);
  cursor: pointer;
  appearance: none;
  transition: all 0.15s ease;
  min-width: 140px;
}

.filter-select:hover {
  border-color: var(--accent);
  background: var(--bg-white);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-secondary);
  pointer-events: none;
}

.filter-status {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.filter-status .count {
  font-weight: 700;
  color: var(--accent);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

/* ========================================
   Post Grid
   ======================================== */
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

/* ========================================
   Post Card
   ======================================== */
.post-card {
  position: relative;
  padding: var(--space-lg);
  background: linear-gradient(
    135deg,
    var(--bg-white) 0%,
    var(--instructor-light) 100%
  );
  border: 1px solid rgba(0, 137, 123, 0.2);
  border-radius: var(--border-radius-lg);
  transition: all 0.2s ease;
  animation: card-enter 0.4s ease backwards;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays */
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }
.post-card:nth-child(7) { animation-delay: 0.35s; }
.post-card:nth-child(8) { animation-delay: 0.4s; }
.post-card:nth-child(9) { animation-delay: 0.45s; }

/* Accent bar on left - teal for all posts */
.post-card::before {
  content: '';
  position: absolute;
  top: var(--space-md);
  left: 0;
  width: 4px;
  height: calc(100% - var(--space-xl));
  background: var(--instructor);
  border-radius: 0 4px 4px 0;
  transition: all 0.2s ease;
}

.post-card:hover {
  border-color: var(--instructor);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card:hover::before {
  box-shadow: 0 4px 16px rgba(0, 137, 123, 0.3);
}

/* Post title */
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.post-card h2 a {
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.post-card h2 a:hover {
  color: var(--instructor);
}

/* Post meta */
.post-card .meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.post-card .meta .author {
  font-weight: 600;
  color: var(--text-primary);
}


/* Read link */
.post-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--instructor);
  margin-top: var(--space-md);
  padding-left: var(--space-md);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.post-card:hover .read-link {
  opacity: 1;
  transform: translateX(0);
}

.post-card .read-link:hover {
  color: #00695C;
}


/* ========================================
   Empty & Error States
   ======================================== */
.empty-state,
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-white);
  border: 2px dashed var(--border-medium);
  border-radius: var(--border-radius-lg);
}

.empty-state h3,
.error-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-state p,
.error-state p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.error-state {
  background: #FFF8E1;
  border-color: #FFB74D;
  border-style: solid;
}

.error-state p {
  color: #E65100;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--space-3xl);
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.update-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.update-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.update-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-right {
  text-align: right;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-course {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.footer-divider {
  color: var(--text-tertiary);
}

.footer-term {
  color: var(--text-tertiary);
}

/* Network stats */
.network-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 900px) {
  .accent-stripe {
    width: 200px;
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  .accent-stripe {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .header-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .live-indicator {
    align-self: flex-start;
  }

  .network-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .stat-item {
    align-items: flex-start;
  }

  .filter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .filter-status {
    width: 100%;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
  }

  .post-feed {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    padding: var(--space-md);
  }

  .filter-inner {
    padding: var(--space-md);
  }

  .main-content {
    padding: var(--space-lg) var(--space-md);
  }

  .post-card {
    padding: var(--space-md);
  }

  .post-card h2 {
    font-size: 1.05rem;
  }

  .site-title {
    font-size: 1.15rem;
  }

  .footer-inner {
    padding: var(--space-lg) var(--space-md);
  }
}

/* ========================================
   Directory Page
   ======================================== */
.directory-content {
  padding-top: var(--space-lg);
}

.directory-intro {
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--accent);
}

.directory-intro p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.directory-section {
  margin-bottom: var(--space-2xl);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.person-card {
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  transition: all 0.2s ease;
}

.person-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.instructor-card {
  border-left: 4px solid var(--instructor);
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--instructor-light) 100%);
}

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

.person-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.link-blog,
.link-repo,
.link-snapshot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
}

.link-blog {
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid transparent;
}

.link-blog:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.link-repo {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
}

.link-repo:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.link-snapshot {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
}

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

.link-icon {
  font-size: 0.9em;
}

/* ========================================
   Snapshot Pages
   ======================================== */
.snapshot-header .header-nav-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.snapshot-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.snapshot-content {
  padding-top: var(--space-lg);
}

.snapshot-section {
  margin-bottom: var(--space-2xl);
}

.snapshot-summary {
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--accent);
}

.snapshot-summary p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Theme list */
.theme-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.theme-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.theme-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Snapshot posts list */
.snapshot-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.snapshot-post {
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  transition: all 0.15s ease;
}

.snapshot-post:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.snapshot-post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.snapshot-post-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.snapshot-post-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.snapshot-post-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.snapshot-footer {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.snapshot-updated {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Footer link */
.footer-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s ease;
}

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

/* Directory/Snapshot responsive */
@media (max-width: 768px) {
  .snapshot-header .header-nav-group {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-post-header {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* ========================================
   Network Page
   ======================================== */
.network-content {
  padding-top: var(--space-lg);
}

.network-section {
  margin-bottom: var(--space-2xl);
}

/* Topic clusters */
.topic-cluster {
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-lg);
  transition: all 0.15s ease;
}

.topic-cluster:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.topic-cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.topic-cluster-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.topic-cluster-count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-light);
  border: 1px solid var(--accent-glow);
  border-radius: var(--border-radius);
  white-space: nowrap;
}

.topic-cluster-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.topic-cluster-writers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.writer-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.writer-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Connections section */
.connection-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.connection-item {
  padding: var(--space-md);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all 0.15s ease;
}

.connection-item:hover {
  border-color: var(--accent);
}

.connection-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
}

.connection-topic {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.network-updated {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.network-updated p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Network responsive */
@media (max-width: 768px) {
  .topic-cluster-header {
    flex-direction: column;
  }

  .connection-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .accent-stripe,
  .filter-bar,
  .live-indicator {
    display: none;
  }

  body {
    background: white;
  }

  .post-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .post-card .read-link {
    opacity: 1;
  }
}
