/* ── BLOG PAGE HEADER ── */
.blog-page-header {
  border-bottom: 1px solid #1a001a;
  padding: 20px 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.blog-page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6600aa 20%, #6600aa 80%, transparent);
}
.blog-breadcrumb {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-breadcrumb a {
  color: #8844cc;
  text-decoration: underline;
  cursor: pointer;
}
.blog-breadcrumb a:hover { color: #aa66ee; }
.blog-breadcrumb .sep { color: #333; }
.blog-page-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: #aaa;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(150,80,255,.4), 1px 1px 0 #000;
}
.blog-post-count {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #444;
}

/* ── TWO-COLUMN LAYOUT ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  min-height: calc(100% - 80px);
}

/* ── MAIN COLUMN ── */
.blog-main {
  padding: 24px 28px;
  border-right: 1px solid #1a001a;
  position: relative;
}
.blog-main::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, #440088 10%, #440088 90%, transparent);
}

/* Post card */
.post-card {
  border: 1px solid #2a002a;
  border-top-color: #3a003a;
  border-left-color: #3a003a;
  background: linear-gradient(180deg, rgba(20,0,30,.7) 0%, rgba(10,0,15,.9) 100%);
  margin-bottom: 20px;
  position: relative;
  transition: border-color .15s;
}
.post-card:hover {
  border-color: #6600aa;
  box-shadow: 0 0 16px rgba(100,0,180,.25), inset 0 0 20px rgba(80,0,120,.1);
}
.post-card-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #1a001a;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.post-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-cat-tag {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #000;
  background: #8844cc;
  padding: 1px 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.post-date {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #444;
  letter-spacing: 1px;
}
.post-new-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  background: #006600;
  color: #00ff00;
  padding: 3px 5px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,200,0,.3);
}
.post-card-body { padding: 14px 16px 16px; }
.post-title {
  font-family: 'Pirata One', cursive;
  font-size: 26px;
  color: #ddd;
  margin-bottom: 8px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(150,80,255,.2);
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.post-title:hover { color: #fff; text-shadow: 0 0 16px rgba(180,120,255,.5); }
.post-excerpt {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 14px;
}
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-author {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-author-avatar {
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #2a002a 0%, #5500aa 100%);
  border: 1px solid #5500aa;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.read-more-btn {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #8844cc;
  background: transparent;
  border: 1px solid #440077;
  padding: 2px 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .1s;
}
.read-more-btn:hover {
  background: #1a0030;
  border-color: #8844cc;
  color: #cc88ff;
  box-shadow: 0 0 8px rgba(120,60,200,.3);
}

/* Pagination */
.blog-pagination {
  display: flex;
  gap: 4px;
  padding: 8px 0 4px;
  align-items: center;
}
.page-btn {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #666;
  background: rgba(20,0,30,.6);
  border: 1px solid #2a002a;
  padding: 2px 10px;
  cursor: pointer;
  text-decoration: none;
}
.page-btn:hover { border-color: #6600aa; color: #aa66ff; }
.page-btn.active { background: #2a004a; border-color: #6600aa; color: #cc88ff; }

/* ── SIDEBAR ── */
.blog-sidebar { padding: 24px 16px; }

.sidebar-section {
  margin-bottom: 24px;
}
.sidebar-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #666;
  letter-spacing: 2px;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid #1a001a;
  position: relative;
}
.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 40px; height: 1px;
  background: #6600aa;
}

/* Category list */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  border-bottom: 1px solid #111;
}
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 4px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #888;
  text-decoration: none;
  cursor: pointer;
  transition: color .1s;
}
.cat-list a:hover { color: #cc88ff; }
.cat-list a:hover .cat-count { background: #3a005a; border-color: #6600aa; }
.cat-count {
  background: #0d000d;
  border: 1px solid #220033;
  color: #555;
  font-size: 12px;
  padding: 0 5px;
  min-width: 22px;
  text-align: center;
}

/* Recent posts */
.recent-post {
  padding: 6px 0;
  border-bottom: 1px solid #111;
}
.recent-post:last-child { border-bottom: none; }
.recent-post-title {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #8844cc;
  cursor: pointer;
  display: block;
  text-decoration: none;
  line-height: 1.2;
}
.recent-post-title:hover { color: #cc88ff; }
.recent-post-date {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #333;
  margin-top: 2px;
}

/* Tags cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag-pill {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #666;
  background: rgba(20,0,30,.5);
  border: 1px solid #1a001a;
  padding: 1px 7px;
  cursor: pointer;
  text-decoration: none;
}
.tag-pill:hover { color: #aa66ff; border-color: #440077; background: rgba(40,0,60,.6); }

/* Sidebar counter widget */
.visitor-counter {
  background: #000;
  border: 1px solid #222;
  padding: 8px;
  text-align: center;
}
.counter-label {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #333;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.counter-digits {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #00cc00;
  text-shadow: 0 0 8px #00ff00;
  letter-spacing: 2px;
}

/* ── MARQUEE ── */
.marquee-bar {
  background: #000;
  border-top: 2px solid #1a001a;
  padding: 4px 0;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #555;
}
