/* ===== Global ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0b0f14;
  color: #e6edf3;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #4cc9f0;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* ===== Layout Fix (Sticky Footer) ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 30px;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid #1f2933;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
}

.logo {
  width: 38px;
  border-radius: 50%;
}

.nav-right a {
  margin-left: 20px;
  font-size: 15px;
  opacity: 0.8;
  transition: 0.2s;
}

.nav-right a:hover {
  opacity: 1;
}

.nav-right i {
  font-size: 18px;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 60px 20px 30px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  color: #9aa4af;
}

/* ===== Posts Grid ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.post-card {
  background: #11161c;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1f2933;

  transition: all 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: #4cc9f0;
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card h2 {
  padding: 15px;
  font-size: 18px;
}

/* ===== Post Page ===== */
.post-container {
  max-width: 800px;
}

.post-container h1 {
  font-size: 32px;
}

.post-date {
  color: #8b949e;
  margin-bottom: 25px;
}

/* ===== Markdown Styling ===== */
.post-content h2 {
  margin-top: 30px;
}

.post-content pre {
  background: #161b22;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
}

.post-content code {
  color: #4cc9f0;
}

/* ===== Back Button ===== */
.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  color: #8b949e;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 30px;
  margin-top: 40px;
  border-top: 1px solid #1f2933;
  color: #8b949e;
}
