:root {
  --header-bg: #0d1b2a;
  --accent: #1e6fff;
  --accent-hover: #1558cc;
  --text: #1a1a1a;
  --muted: #5c6570;
  --border: #e2e8f0;
  --bg: #ffffff;
  --card-bg: #f8fafc;
  --max-width: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.site-header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 56px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  list-style: none;
}

.main-nav a {
  color: #cbd5e1;
  font-size: .85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.main-nav a:hover { color: #fff; }

.header-actions { margin-left: auto; }

.lang-switch { display: flex; gap: .5rem; }

.lang-link {
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .45rem;
  border: 1px solid #334155;
  border-radius: 3px;
  text-decoration: none !important;
}

.lang-link.active, .lang-link:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--header-bg);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}

.meta-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 2px;
  margin-right: .5rem;
}

time { color: var(--muted); font-size: .85rem; }

.hero-section { margin-bottom: 2rem; }

.hero-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  display: block;
}

.hero-body { padding: 1.5rem; }

.hero-body h1 { font-size: 1.75rem; line-height: 1.25; margin: .75rem 0; }
.hero-body h1 a { color: var(--text); text-decoration: none; }
.hero-body h1 a:hover { color: var(--accent); }

.excerpt { color: var(--muted); margin: .75rem 0 1rem; }

.btn-read {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: .5rem 1rem;
  border-radius: 3px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .9rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.news-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.news-card h3, .news-card h2 { font-size: 1.05rem; margin: .35rem 0; }
.news-card h3 a, .news-card h2 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover, .news-card h2 a:hover { color: var(--accent); }
.news-card p { color: var(--muted); font-size: .9rem; }

.news-card.horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: start;
}

.card-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.trending-list { list-style: none; }
.trending-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.trending-list .views { display: block; font-size: .75rem; color: var(--muted); }

.cat-list { list-style: none; }
.cat-list li { padding: .35rem 0; }

.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 2rem; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-top: .25rem; }

.article-full { max-width: 800px; }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-size: 2rem; line-height: 1.2; margin: .75rem 0; }
.byline { color: var(--muted); font-size: .9rem; }

.article-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.article-body { font-size: 1.05rem; }
.article-body p { margin-bottom: 1rem; }
.article-body img { max-width: 100%; height: auto; }
.article-body h2, .article-body h3 { margin: 1.5rem 0 .75rem; }

.article-source {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

.source-attribution { margin-top: 1.5rem; font-style: italic; color: var(--muted); }

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  justify-content: center;
}

.empty-state { color: var(--muted); padding: 2rem; text-align: center; }

.site-footer {
  background: var(--header-bg);
  color: #94a3b8;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.footer-links a { color: #94a3b8; font-size: .85rem; }
.footer-copy { font-size: .8rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .hero-article { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .news-card.horizontal { grid-template-columns: 1fr; }
}
