/* -------------------------------------------------------------
   RESET
------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.dark {
  background: #0a0a0a;
  color: #eaeaea;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

body.light {
  background: #f2f2f2;
  color: #2a2a2a;
}

/* -------------------------------------------------------------
   CONTAINER
------------------------------------------------------------- */
.container {
  width: 92%;
  max-width: 1100px;
  margin: auto;
}

/* -------------------------------------------------------------
   HEADER + NAV
------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: #00fff7;
  letter-spacing: 1px;
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00fff7;
  text-shadow: 0 0 6px #00fff7;
}

.button.ghost {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #00fff7;
  color: #00fff7;
  transition: 0.3s;
}

.button.ghost:hover {
  background: #00fff7;
  color: #000;
}

/* -------------------------------------------------------------
   MOBILE NAV
------------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  height: 2.5px;
  width: 24px;
  border-radius: 2px;
  background: #eaeaea;
  transition: 0.3s;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  background: #111;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.mobile-nav a {
  text-decoration: none;
  color: #eaeaea;
  font-weight: 500;
}

.mobile-nav .button.primary {
  padding: 0.7rem 1rem;
  text-align: center;
  border-radius: 6px;
  background: #00fff7;
  font-weight: 600;
  color: #000;
}

/* Show on mobile */
@media (max-width: 850px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.show {
    display: flex;
  }
}

/* -------------------------------------------------------------
   BLOG PAGE
------------------------------------------------------------- */
.blog h1 {
  text-align: center;
  font-size: 2.2rem;
  margin: 2.5rem 0 2rem;
  color: #00fff7;
  font-weight: 800;
}

/* Featured post */
.featured {
  margin-bottom: 3rem;
}

.featured .post {
  background: #111;
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid #222;
  box-shadow: 0 0 20px rgba(0, 255, 247, 0.08);
}

.featured h2 {
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.featured .meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #00fff7;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.read-more:hover {
  text-shadow: 0 0 8px #00fff7;
}

/* Blog grid */
.posts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 4rem;
}

.post-card {
  background: #111;
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  transition: 0.35s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: #00fff7;
  box-shadow: 0 0 14px rgba(0, 255, 247, 0.25);
}

.post-card h3 {
  margin-bottom: 0.6rem;
  color: #00fff7;
}

.post-card p {
  color: #bbb;
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  color: #777;
  border-top: 1px solid #222;
  margin-top: 2rem;
}
