/* Shared blog styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #000;
  font-family: 'Inter', sans-serif;
  color: #bbffbb;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
#matrix-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.18; pointer-events: none; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 56px;
  background: rgba(0,6,0,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid #2eff7a44;
  box-shadow: 0 2px 24px rgba(0,255,100,0.12);
}
.nav-logo { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; font-weight: 700; color: #0f0; text-shadow: 0 0 8px #0f0; text-decoration: none; white-space: nowrap; }
.nav-logo img { height: 36px; width: auto; display: block; filter: drop-shadow(0 0 6px #0f0); }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500;
  color: #7aff7a; text-decoration: none; padding: 0.3rem 0.75rem;
  border-radius: 2rem; border: 1px solid transparent; transition: 0.2s; letter-spacing: 0.04em;
}
.nav-links a:hover { color: #fff; border-color: #0f0; box-shadow: 0 0 8px rgba(0,255,0,0.5); background: rgba(0,255,0,0.06); }
.nav-links a.active { color: #0f0; border-color: #0f0; background: rgba(0,255,0,0.08); }
.nav-divider { width: 1px; height: 22px; background: #2eff7a55; margin: 0 0.5rem; }
.lang-switcher { display: flex; gap: 0.3rem; }
.lang-btn {
  background: transparent; border: 1px solid transparent; color: #7aff7a;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 2rem; cursor: pointer; transition: 0.2s;
}
.lang-btn:hover { color: #fff; border-color: #0f0; box-shadow: 0 0 8px #0f0; }
.lang-btn.active { background: #003300; border-color: #0f0; color: #0f0; box-shadow: 0 0 8px #0f0; }
.nav-toggle { display: none; background: none; border: 1px solid #2eff7a; color: #0f0; font-size: 1.1rem; padding: 0.3rem 0.6rem; border-radius: 0.5rem; cursor: pointer; }
/* CV dropdown */
.cv-dropdown { position: relative; }
.cv-options {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: rgba(0,8,0,0.97); border: 1px solid #2eff7a55; border-radius: 0.8rem;
  min-width: 160px; overflow: hidden; z-index: 300;
}
.cv-dropdown.open .cv-options { display: block; }
.cv-options a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  color: #7aff7a; text-decoration: none; transition: 0.15s;
}
.cv-options a:hover { background: rgba(0,255,0,0.08); color: #fff; }
.btn-nav-dl {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #003300; border: 1px solid #0f0; color: #aaffaa;
  padding: 0.3rem 1rem; border-radius: 60px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.75rem;
  cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.btn-nav-dl:hover { background: #004400; box-shadow: 0 0 14px #0f0; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; background: rgba(0,6,0,0.98);
    border-bottom: 1px solid #2eff7a44; padding: 1rem; gap: 0.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-divider { display: none; }
}

/* Site footer */
.site-footer {
  margin-top: 3rem; padding: 1.5rem 0 0.5rem;
  border-top: 1px solid #2eff7a22;
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #5aff5a;
}
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: #7aff7a; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #0f0; text-shadow: 0 0 6px #0f0; }

/* Page wrapper */
.page { position: relative; z-index: 2; max-width: 860px; margin: 5rem auto 4rem; padding: 0 1.5rem; }

/* Blog index cards */
.blog-hero { text-align: center; padding: 3rem 0 2rem; }
.blog-hero h1 { font-family: 'JetBrains Mono', monospace; font-size: clamp(1.8rem,5vw,2.8rem); color: #b3ffb3; text-shadow: 0 0 12px #0f0; margin-bottom: 0.6rem; }
.blog-hero p { color: #7aff7a; font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.8rem; margin-top: 2.5rem; }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: rgba(0,10,0,0.7); border: 1px solid #2eff7a33;
  border-radius: 1.5rem; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; transition: 0.25s;
}
.post-card:hover { border-color: #0f0; box-shadow: 0 0 30px rgba(0,255,0,0.2); transform: translateY(-4px); }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #0f0; background: rgba(0,255,0,0.08); border: 1px solid #2eff7a44; padding: 0.2rem 0.7rem; border-radius: 2rem; display: inline-block; margin-bottom: 0.8rem; }
.post-title { font-family: 'JetBrains Mono', monospace; font-size: 1.05rem; font-weight: 700; color: #e0ffe0; margin-bottom: 0.6rem; line-height: 1.4; }
.post-excerpt { font-size: 0.88rem; color: #8aff8a; line-height: 1.6; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #5aff5a; }
.post-read { color: #0f0; font-weight: 600; }

/* Article page */
.article-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid #2eff7a22; margin-bottom: 2.5rem; }
.article-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #0f0; background: rgba(0,255,0,0.08); border: 1px solid #2eff7a44; padding: 0.2rem 0.8rem; border-radius: 2rem; display: inline-block; margin-bottom: 1rem; }
.article-title { font-family: 'JetBrains Mono', monospace; font-size: clamp(1.5rem,4vw,2.2rem); color: #b3ffb3; text-shadow: 0 0 8px #0f0; line-height: 1.25; margin-bottom: 1rem; }
.article-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #5aff5a; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* Article body */
.article-body { font-size: 1rem; line-height: 1.8; color: #c8ffc8; }
.article-body h2 { font-family: 'JetBrains Mono', monospace; font-size: 1.35rem; color: #b3ffb3; margin: 2.2rem 0 0.8rem; padding-left: 1rem; border-left: 3px solid #0f0; }
.article-body h3 { font-family: 'JetBrains Mono', monospace; font-size: 1.05rem; color: #9eff9e; margin: 1.6rem 0 0.5rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin: 0.8rem 0 1.2rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; color: #b0ffb0; }
.article-body strong { color: #e0ffe0; }
.article-body blockquote {
  border-left: 3px solid #0f0; padding: 0.8rem 1.2rem;
  background: rgba(0,255,0,0.05); border-radius: 0 0.8rem 0.8rem 0;
  margin: 1.5rem 0; color: #9eff9e; font-style: italic;
}
.article-body .highlight-box {
  background: rgba(0,20,0,0.6); border: 1px solid #2eff7a44;
  border-radius: 1rem; padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}
.article-body .highlight-box strong { color: #0f0; display: block; margin-bottom: 0.4rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }

/* CTA box */
.article-cta {
  margin-top: 3rem; padding: 2rem; text-align: center;
  background: rgba(0,15,0,0.7); border: 1px solid #2eff7a55;
  border-radius: 1.5rem;
}
.article-cta h3 { font-family: 'JetBrains Mono', monospace; color: #b3ffb3; margin-bottom: 0.6rem; }
.article-cta p { color: #7aff7a; font-size: 0.9rem; margin-bottom: 1.2rem; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #003300; border: 1px solid #0f0; color: #aaffaa;
  padding: 0.7rem 1.8rem; border-radius: 60px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: 0.2s;
}
.btn-cta:hover { background: #004400; box-shadow: 0 0 20px #0f0; transform: translateY(-2px); }

/* Back to blog */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #7aff7a; text-decoration: none; margin-bottom: 2rem; transition: 0.2s; }
.back-link:hover { color: #0f0; }

/* Article images */
.article-img {
  width: 100%; border-radius: 1rem; margin: 1.8rem 0;
  border: 1px solid #2eff7a22; display: block;
  object-fit: cover; max-height: 420px;
  filter: brightness(0.85) saturate(0.7) hue-rotate(80deg);
  transition: filter 0.3s;
}
.article-img:hover { filter: brightness(0.95) saturate(0.9) hue-rotate(80deg); }
.article-img-caption {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: #5aff5a; text-align: center; margin-top: -1rem; margin-bottom: 1.8rem; opacity: 0.7;
}
.article-img-inline {
  width: 100%; border-radius: 0.8rem; margin: 1.5rem 0 0.4rem;
  border: 1px solid #2eff7a22; display: block; object-fit: cover; max-height: 300px;
  filter: brightness(0.8) saturate(0.6) hue-rotate(80deg);
}

/* Post card cover image */
.post-card-cover {
  width: 100%; height: 180px; object-fit: cover;
  filter: brightness(0.7) saturate(0.5) hue-rotate(80deg);
  border-radius: 1.5rem 1.5rem 0 0;
  display: block;
}

/* Legacy blog-footer — kept for compatibility */
.blog-footer { margin-top: 4rem; padding: 1.5rem 0; border-top: 1px solid #2eff7a22; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #3aff3a; }
