.article-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.article-category {
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent, #6366f1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.article-source-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.article-title-main {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 1rem 0;
}

/* AI Intelligence Layer */
.ai-intelligence-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.ai-intelligence-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #8b5cf6, var(--accent, #6366f1));
}

.ai-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ai-icon {
  width: 32px;
  height: 32px;
  color: #8b5cf6;
}

.ai-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ai-powered-label {
  padding: 0.25rem 0.625rem;
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

/* AI Summary */
.ai-summary-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.ai-summary-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: block;
}

.ai-summary-text {
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.8;
}

/* AI Metrics Grid */
.ai-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ai-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sentiment-bullish {
  color: #10b981;
}

.sentiment-bearish {
  color: #ef4444;
}

.sentiment-neutral {
  color: #9ca3af;
}

.confidence-bar {
  margin-top: 0.5rem;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.time-horizon-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.horizon-short-term {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.horizon-medium-term {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.horizon-long-term {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Market Impact */
.market-impact-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.market-impact-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.market-impact-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Content Preview */
.content-preview-section {
  margin-bottom: 2.5rem;
}

.content-preview-section .section-title-left {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.preview-notice {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.content-preview-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.content-preview-text p {
  margin-bottom: 1rem;
}

.content-preview-text p:last-child {
  margin-bottom: 0;
}

/* Primary CTA */
.primary-cta-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-text-content {
  flex: 1;
  min-width: 200px;
}

.cta-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cta-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: var(--accent, #6366f1);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Related Articles */
.related-articles-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--border);
}

.related-articles-section .section-title-left {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.related-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.related-article-card:hover {
  background: var(--bg-surface);
  border-color: var(--accent, #6366f1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.related-category {
  padding: 0.25rem 0.625rem;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent, #6366f1);
  border-radius: 6px;
  font-weight: 600;
}

.related-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.related-summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Attribution */
.source-attribution {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.source-attribution a {
  color: var(--accent, #6366f1);
  text-decoration: none;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
  .article-detail-container {
    padding: 0 1rem;
  }

  .article-title-main {
    font-size: 1.5rem;
  }

  .ai-intelligence-section {
    padding: 1.25rem;
  }

  .ai-metrics-grid {
    grid-template-columns: 1fr;
  }

  .primary-cta-box {
    flex-direction: column;
    text-align: center;
  }

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

/* Affected Symbols */
.affected-symbols-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.affected-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.affected-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.symbol-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent, #6366f1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.symbol-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .symbol-chip {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}
[data-theme="light"] .symbol-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Light mode overrides */
[data-theme="light"] .confidence-bar {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sentiment-neutral {
  color: #8a7e6b;
}
