/* Custom styles for The Informed Nation */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

body {
  font-family: var(--font-sans);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Article Editorial Typography */
.article-prose {
  font-size: 1.125rem;
  line-height: 1.85;
}

.article-prose h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-prose h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.article-prose p {
  margin-bottom: 1.5rem;
}

.article-prose ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-prose ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1.25rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 2rem 0;
}

.article-prose pre {
  background-color: #000000;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.article-prose code {
  background-color: rgba(148, 163, 184, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.article-prose pre code {
  background-color: transparent;
  padding: 0;
}

.article-prose img {
  border-radius: 1rem;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.article-prose th, .article-prose td {
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-prose th {
  background-color: rgba(148, 163, 184, 0.1);
  font-weight: 600;
}

/* Glassmorphism accents */
.glass-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Breaking news ticker animation */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-move {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-move:hover {
  animation-play-state: paused;
}

/* Card hover micro-interactions */
.news-card-hover {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card-hover:hover {
  transform: translateY(-4px);
}
