:root {
  --bg-color: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  padding: 2.5rem 1.25rem;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

/* Header & Branding */
header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo-icon {
  background: #0b1120;
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
}

.site-title span {
  color: var(--accent);
}

.site-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

/* Navigation Bar */
.nav-bar {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

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

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

/* Article Cards */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0b1120;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.3s ease;
  display: block;
}

.post-card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.75rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.post-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-card h2 a {
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.15s ease;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.post-excerpt {
  color: #cbd5e1;
  font-size: 1rem;
}

/* Single Post Page Layout */
.post-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
}

.post-content h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: #e2e8f0;
}

.featured-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 8px;
  margin: 1.25rem 0 1.75rem 0;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Empty State & Footer */
.no-posts {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color 0.15s ease;
  font-family: inherit;
}

.nav-btn:hover {
  color: #fff;
}

.nav-btn.active {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
