/* ═══════════════════════════════════════════════════════════
   DIGIMENTRA NEWS — Design System
   Premium dark tech news portal
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg-body: #06060c;
  --bg-surface: #0c0c15;
  --bg-elevated: #121220;
  --bg-card: #13131f;
  --bg-card-hover: #1a1a2c;
  --bg-input: #0e0e1a;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.18);

  /* Text */
  --text-primary: #ededf0;
  --text-secondary: #8e8ea0;
  --text-muted: #55556a;
  --text-inverse: #06060c;

  /* Accent Colors */
  --red: #ef4444;
  --rose: #f43f5e;
  --orange: #f97316;
  --amber: #f59e0b;
  --green: #10b981;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #a855f7;
  --pink: #ec4899;

  /* Primary */
  --accent: #e11d48;
  --accent-soft: rgba(225, 29, 72, 0.15);
  --accent-glow: rgba(225, 29, 72, 0.3);

  /* Category Colors */
  --cat-yapay-zeka: #a855f7;
  --cat-mobil: #3b82f6;
  --cat-yazilim: #10b981;
  --cat-oyun: #f43f5e;
  --cat-donanim: #f59e0b;
  --cat-sosyal-medya: #06b6d4;
  --cat-girisimcilik: #ec4899;
  --cat-teknoloji: #6366f1;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.25s;
  --duration-slow: 0.4s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(225, 29, 72, 0.15);

  /* Layout */
  --header-h: 64px;
  --ticker-h: 40px;
  --container: 1240px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; border: none; outline: none; background: none; color: inherit; }

::selection {
  background: var(--accent);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── Skeleton Loading ──────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skel {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease infinite;
  border-radius: var(--radius-sm);
}

.skel-hero-main {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
}

.skel-hero-side {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
}

.skel-title-lg { height: 36px; width: 80%; margin-bottom: 12px; }
.skel-title-md { height: 24px; width: 60%; margin-bottom: 12px; }
.skel-meta { height: 16px; width: 40%; }
.skel-image-full { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); }
.skel-line { height: 16px; width: 100%; margin-bottom: 12px; }
.skel-line.short { width: 60%; }

.hero-skeleton {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
}

.hero-skeleton .skel-hero-side:last-child { display: none; }

@media (min-width: 768px) {
  .hero-skeleton {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .hero-skeleton .skel-hero-side:last-child { display: block; }
}

/* ─── Header ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 12, 0.82);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--duration) var(--ease);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity var(--duration) var(--ease);
}

.logo:hover { opacity: 0.8; }

.logo-diamond {
  color: var(--accent);
  font-size: 1.1em;
  margin-right: 6px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px var(--accent-glow)); }
  50% { opacity: 0.7; filter: drop-shadow(0 0 12px var(--accent-glow)); }
}

.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent); }

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

@media (min-width: 900px) {
  .nav { display: flex; }
}

.nav-link {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.search-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Hamburger */
.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

@media (min-width: 900px) {
  .hamburger { display: none; }
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.hamburger:hover span { background: var(--text-primary); }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Nav ────────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease);
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
}

.mobile-nav-header .logo-diamond { margin-right: 0; }

.mobile-nav-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--duration) var(--ease);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

/* ─── Ticker ────────────────────────────────────────────── */
.ticker {
  height: var(--ticker-h);
  background: linear-gradient(90deg, var(--accent) 0%, #9f1239 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: ticker-bg 8s ease infinite;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

@keyframes ticker-bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--space-md);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: white;
  white-space: nowrap;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  height: 100%;
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 40px, black calc(100% - 40px), transparent);
}

.ticker-content {
  display: flex;
  gap: var(--space-2xl);
  white-space: nowrap;
  animation: scroll-ticker 60s linear infinite;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  padding-left: var(--space-md);
}

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

.ticker-item {
  cursor: pointer;
  transition: opacity var(--duration) var(--ease);
}

.ticker-item:hover { opacity: 0.7; }

.ticker-sep {
  color: rgba(255, 255, 255, 0.3);
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Main ──────────────────────────────────────────────── */
.main {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-4xl);
  min-height: 60vh;
}

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
  margin-bottom: var(--space-2xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
  }
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

@media (min-width: 768px) {
  .hero-main {
    grid-row: 1 / 3;
  }
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.hero-main:hover img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 6, 12, 0.95) 0%, rgba(6, 6, 12, 0.4) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  width: fit-content;
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: white;
}

.hero-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hero Side Cards */
.hero-side {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  min-height: 160px;
  background: var(--bg-card);
}

.hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.hero-side:hover img {
  transform: scale(1.06);
}

.hero-side .hero-overlay {
  padding: var(--space-md);
}

.hero-side .hero-title {
  font-size: 0.95rem;
}

.hero-side .hero-meta {
  font-size: 0.72rem;
}

/* ─── Filter Bar ────────────────────────────────────────── */
.filter-bar {
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  padding: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: fit-content;
  min-width: 100%;
}

.filter-tab {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.filter-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.filter-tab.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

/* ─── News Grid ─────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 600px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .news-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── News Card ─────────────────────────────────────────── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: card-in 0.5s var(--ease) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.news-card:hover .card-image img {
  transform: scale(1.06);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
}

.card-category {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  background: var(--cat-teknoloji);
}

/* Category-specific badge colors */
.card-category[data-cat="yapay-zeka"] { background: var(--cat-yapay-zeka); }
.card-category[data-cat="mobil"] { background: var(--cat-mobil); }
.card-category[data-cat="yazilim"] { background: var(--cat-yazilim); }
.card-category[data-cat="oyun"] { background: var(--cat-oyun); }
.card-category[data-cat="donanim"] { background: var(--cat-donanim); }
.card-category[data-cat="sosyal-medya"] { background: var(--cat-sosyal-medya); }
.card-category[data-cat="girisimcilik"] { background: var(--cat-girisimcilik); }
.card-category[data-cat="teknoloji"] { background: var(--cat-teknoloji); }

.card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration) var(--ease);
}

.news-card:hover .card-title {
  color: var(--accent);
}

.card-summary {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-source {
  font-weight: 600;
  color: var(--text-secondary);
}

.card-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Load More ─────────────────────────────────────────── */
.load-more {
  text-align: center;
  margin-top: var(--space-2xl);
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
}

.btn-load-more:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-load-more.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* ─── Ad Slots ──────────────────────────────────────────── */
.ad-slot {
  margin: var(--space-xl) 0;
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.75rem;
  min-height: 90px;
  letter-spacing: 0.04em;
}

/* ─── Search Overlay ────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.search-modal {
  position: relative;
  width: min(640px, 92vw);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-20px) scale(0.97);
  transition: transform var(--duration) var(--ease-spring);
}

.search-overlay.active .search-modal {
  transform: translateY(0) scale(1);
}

.search-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.search-header svg { color: var(--text-muted); flex-shrink: 0; }

.search-header input {
  flex: 1;
  font-size: 1.05rem;
  padding: 8px 0;
}

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

.search-close {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.search-close kbd {
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.search-result-item img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-result-info { flex: 1; }

.search-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.search-empty {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ─── Article Page ──────────────────────────────────────── */
.article-page {
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

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

.breadcrumb-sep { opacity: 0.4; }

.article-header {
  margin-bottom: var(--space-xl);
}

.article-category-badge {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  margin-bottom: var(--space-md);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-image-wrap {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.ad-slot-article {
  margin: var(--space-xl) 0;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-source {
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.article-source a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--duration) var(--ease);
}

.article-source a:hover { opacity: 0.8; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
}

/* ─── Category Page ─────────────────────────────────────── */
.category-header {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.category-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

.category-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.category-count {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-grid {
  display: flex;
  gap: var(--space-3xl);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  width: 100%;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-note {
  opacity: 0.6;
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.empty-state-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── Loading Spinner ───────────────────────────────────── */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Responsive Fine-tuning ────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-main {
    aspect-ratio: 4/3;
  }

  .filter-tabs {
    min-width: max-content;
  }

  .ticker-badge {
    font-size: 0.6rem;
    padding: 0 var(--space-sm);
  }
}

/* ─── Utility ───────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Page load animation ───────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero { animation: fade-up 0.6s var(--ease) both; }
.filter-bar { animation: fade-up 0.6s var(--ease) 0.1s both; }
.news-section { animation: fade-up 0.6s var(--ease) 0.2s both; }

/* ─── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
