/* News Dashboard */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.news-dashboard {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 20px;
}

/* Header */
.news-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  text-align: center;
}

.news-title h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

.last-updated {
  margin: 8px 0 0;
  font-size: 14px;
  color: #888;
}

/* Footer */
.news-footer {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
}

.news-footer p {
  margin: 0;
}

/* Content layout */
.news-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Loading/Empty states */
.news-loading,
.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 18px;
}

/* Hero card */
.hero-card {
  background: linear-gradient(135deg, #2d3a4f 0%, #1f2937 100%);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-category {
  display: inline-block;
  background: rgba(74, 144, 217, 0.3);
  color: #7ab8f5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-headline {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-expanded {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.hero-card.expanded .hero-expanded {
  display: block;
}

.hero-summary {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
  margin: 0 0 16px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expand-hint {
  font-size: 12px;
  color: #666;
  margin-top: 12px;
}

/* Story grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Story card */
.story-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.story-card.priority-2 {
  border-left: 3px solid #f59e0b;
}

.story-card.priority-3 {
  border-left: 3px solid #6b7280;
}

.story-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.story-headline {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.story-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.more-sources {
  font-size: 12px;
  color: #888;
}

.story-expanded {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.story-card.expanded .story-expanded {
  display: block;
}

.story-summary {
  font-size: 14px;
  line-height: 1.5;
  color: #bbb;
  margin: 0 0 12px;
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Source badges */
.source-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.source-badge.left {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.source-badge.center {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.source-badge.right {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Source links */
.source-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.source-link.left {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.source-link.left:hover {
  background: rgba(59, 130, 246, 0.25);
}

.source-link.center {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.source-link.center:hover {
  background: rgba(156, 163, 175, 0.25);
}

.source-link.right {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.source-link.right:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .news-dashboard {
    padding: 16px;
  }

  .news-title h1 {
    font-size: 24px;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-headline {
    font-size: 22px;
  }

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

  .story-card {
    padding: 16px;
  }
}
