/* ===================================
   CoinBlog Theme - CSS Stylesheet
   =================================== */

/* CSS Variables / Design Tokens */
:root {
  /* Layout */
  --page-max: 1280px;
  --gutter: 24px;
  --pad: 24px;

  /* Colors */
  --bg: #FFFFFF;
  --text: #111318;
  --text-muted: #5B606A;
  --border: #E6E8EC;
  --chip-bg: #F6F7F9;

  --accent: #FFC600;
  --link: #0A57FF;
  --positive: #00A651;
  --negative: #E03C31;
  --neutral: #9AA1AB;
  --play-black: #000000;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
}

/* ===================================
   Site Header
   =================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Market Ticker Strip */
.market-strip {
  height: 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.market-strip::-webkit-scrollbar {
  display: none;
}

.ticker-scroll {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--pad);
  gap: 24px;
  white-space: nowrap;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ticker-chip:hover {
  background: var(--chip-bg);
}

.ticker-symbol {
  font-weight: 600;
  color: var(--text);
}

.ticker-price {
  color: var(--text);
}

.ticker-change {
  font-weight: 500;
}

.ticker-change.positive {
  color: var(--positive);
}

.ticker-change.negative {
  color: var(--negative);
}

/* Main Navigation */
.main-nav {
  height: 64px;
  background: var(--bg);
}

.nav-container {
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 0 12px;
  line-height: 64px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.search-box input {
  width: 260px;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--text);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 48px;
  right: 0;
  width: 480px;
  max-height: 600px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1000;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 0.2s;
}

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

.search-result-item:hover {
  background: var(--chip-bg);
  text-decoration: none;
}

.search-result-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.search-result-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 6px;
}

.search-result-summary {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s;
}

.lang-selector:hover {
  background: var(--chip-bg);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.button-accent {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-block;
}

.button-accent:hover {
  background: #E6B200;
  text-decoration: none;
}

/* ===================================
   Main Content Layout
   =================================== */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 32px var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: 372px 1fr;
  gap: var(--gutter);
}

/* ===================================
   Section Titles
   =================================== */

.section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}

.section-header-with-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header-with-pagination .section-title {
  margin: 0;
}

.feature-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.pagination-dot:hover {
  background: var(--text);
}

/* Featured Carousel */
.featured-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  animation: fade-in 0.5s ease-out;
}

.carousel-slide.active {
  display: block;
}

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

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.section-header h2,
.section-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.section-header .icon {
  color: var(--text);
}

.section-header .arrow {
  color: var(--text-muted);
}

.section-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 12px;
}

.section-link:hover {
  color: var(--text);
}

.section-link .arrow {
  color: currentColor;
}

/* ===================================
   Left Rail - Latest News
   =================================== */

.latest-news {
  /* No additional styles needed */
}

.news-list {
  border-top: 1px solid var(--border);
}

.list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.list-item .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.meta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutral);
  flex-shrink: 0;
}

.meta .dot.positive {
  background: var(--positive);
}

.meta .dot.negative {
  background: var(--negative);
}

.meta .dot.neutral {
  background: var(--neutral);
}

.sentiment-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.list-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
}

.list-item h3 a {
  color: var(--text);
  text-decoration: none;
}

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

.list-item .snippet {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================
   Main Content - Featured Stories
   =================================== */

.main-content {
  /* No additional styles needed */
}

/* Feature Card */
.feature-card {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.feature-card.no-image {
  grid-template-columns: 1fr;
}

.feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--chip-bg);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

.feature-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.feature-card.no-image .feature-content {
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-main .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.feature-main h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

.feature-main h3 a {
  color: var(--text);
  text-decoration: none;
}

.feature-main h3 a:hover {
  text-decoration: underline;
}

.feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.feature-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-sidebar .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.feature-sidebar h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.feature-sidebar h4 a {
  color: var(--text);
  text-decoration: none;
}

.feature-sidebar h4 a:hover {
  text-decoration: underline;
}

/* More Stories Section */
.more-stories {
  margin-top: 48px;
}

.more-stories-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.more-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.more-story-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.more-story-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.more-story-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--chip-bg);
}

.more-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.more-story-card:hover .more-story-image img {
  transform: scale(1.05);
}

.more-story-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more-story-content .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.more-story-content h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.more-story-content h4 a {
  color: var(--text);
  text-decoration: none;
}

.more-story-content h4 a:hover {
  text-decoration: underline;
}

.more-story-content .excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Legacy Story Row (kept for backwards compatibility) */
.story-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;
}

.story-content .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.story-content h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}

.story-content h3 a {
  color: var(--text);
  text-decoration: none;
}

.story-content h3 a:hover {
  text-decoration: underline;
}

.story-content .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.story-content .sponsored {
  font-style: italic;
}

/* ===================================
   Right Rail - Video, Research, Press
   =================================== */

.rail-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Video Section */
.video-block {
  /* No additional styles needed */
}

.video-thumbnail {
  position: relative;
  margin-bottom: 12px;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-thumbnail:hover .play-overlay {
  opacity: 1;
}

.play-icon {
  transform: scale(1);
  transition: transform 0.3s;
}

.video-thumbnail:hover .play-icon {
  transform: scale(1.05);
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}

.video-title a {
  color: var(--text);
  text-decoration: none;
}

.video-title a:hover {
  text-decoration: underline;
}

/* Research Section */
.research-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.research-card {
  display: flex;
  gap: 12px;
}

.research-thumbnail {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.research-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-content h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}

.research-content h4 a {
  color: var(--text);
  text-decoration: none;
}

.research-content h4 a:hover {
  text-decoration: underline;
}

.research-content .byline {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Press Section */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.press-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.press-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.press-item h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
}

.press-item h4 a {
  color: var(--text);
  text-decoration: none;
}

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

.press-item .excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.press-item time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================
   Single Article Page
   =================================== */

.article-header {
  max-width: 800px;
  margin: 0 auto 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-meta .eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.article-description {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.article-featured-image {
  max-width: 800px;
  margin: 0 auto 32px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 16px;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 24px 0 12px;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
  list-style: inherit;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--link);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--text);
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 24px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-footer {
  max-width: 800px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.article-tags strong {
  font-weight: 600;
}

.article-tags .tag {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.article-tags .tag:hover {
  background: var(--chip-bg);
  border-color: var(--text);
  text-decoration: none;
}

/* Social Sharing */
.social-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.social-share strong {
  font-weight: 600;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.share-button:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.share-button.twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: #fff;
}

.share-button.linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: #fff;
}

.share-button.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

/* Related Articles */
.related-articles {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 var(--pad);
}

.related-articles .section-title {
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

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

.related-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--chip-bg);
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-content .eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.related-content h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}

.related-content h3 a {
  color: var(--text);
  text-decoration: none;
}

.related-content h3 a:hover {
  text-decoration: underline;
}

.related-content time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================
   List/Archive Pages
   =================================== */

.list-page {
  max-width: 1000px;
  margin: 0 auto;
}

.list-header {
  margin-bottom: 32px;
}

.list-header .section-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.list-description {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;
}

.article-card-content .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-card-content h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
}

.article-card-content h2 a {
  color: var(--text);
  text-decoration: none;
}

.article-card-content h2 a:hover {
  text-decoration: underline;
}

.article-card-content .excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.article-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 0;
}

.pagination-link {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.pagination-link:hover {
  background: var(--chip-bg);
  border-color: var(--text);
  text-decoration: none;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===================================
   Footer
   =================================== */

.site-footer {
  background: var(--chip-bg);
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 48px 0 24px;
}

.footer-container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* Newsletter Form */
.newsletter-section {
  max-width: 400px;
}

.newsletter-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  min-width: 320px;
  max-width: 420px;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease-out;
}

.toast.hiding {
  animation: toast-slide-out 0.3s ease-out forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #22c55e;
}

.toast-message {
  flex: 1;
  margin: 0;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

/* ===================================
   Responsive Breakpoints
   =================================== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .rail-left {
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-content {
    grid-template-columns: 1fr;
  }

  .feature-sidebar {
    flex-direction: row;
    gap: 32px;
  }

  .more-stories-grid {
    grid-template-columns: 1fr;
  }

  .story-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-card:nth-child(3) {
    display: none;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --pad: 16px;
    --gutter: 16px;
  }

  .page {
    padding: 24px var(--pad);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rail-left,
  .main-content,
  .rail-right {
    order: initial;
  }

  /* Header - Mobile */
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0 12px;
    line-height: 48px;
    font-size: 14px;
    white-space: nowrap;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .search-results {
    width: 100vw;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 0;
  }

  .nav-actions {
    gap: 8px;
  }

  .button-accent {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Content - Mobile */
  .section-title {
    font-size: 18px;
  }

  .feature-main h3 {
    font-size: 20px;
  }

  .feature-sidebar {
    flex-direction: column;
    gap: 16px;
  }

  .story-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-card:nth-child(3) {
    display: block;
  }

  /* More Stories - Mobile */
  .more-story-card {
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding-bottom: 16px;
  }

  /* Article - Mobile */
  .article-title {
    font-size: 28px;
  }

  .article-description {
    font-size: 16px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .article-content h3 {
    font-size: 20px;
  }

  /* List Page - Mobile */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .list-header .section-title {
    font-size: 24px;
  }

  /* Footer - Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Related Articles - Mobile */
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small mobile (< 480px) */
@media (max-width: 479px) {
  .brand-logo {
    font-size: 18px;
  }

  .ticker-scroll {
    gap: 16px;
  }

  .nav-links a {
    padding: 0 8px;
  }

  .feature-main h3 {
    font-size: 18px;
  }

  .article-title {
    font-size: 24px;
  }
}
