/* =========================
   blog.css (FULL REWRITE)
   ========================= */

/* --- Page background + base typography --- */
body {
  margin: 0;
  padding: 0;
  font-family: monospace;
  background-image: url("/img/bgs/pixelbloom.gif");
  background-repeat: repeat;
  background-size: auto;
}

/* --- Header image --- */
.site_header {
  display: block;
  margin: 0 auto;
  width: 80vw;
  height: auto;
  image-rendering: pixelated;
}

/* --- Navbar --- */
.navbar ul {
  list-style: none;
  padding: 0;
  margin: 10px auto;

  width: 80vw;
  display: flex;
  justify-content: center;
  gap: 0;

  background-color: #ffe0f1;
  border: 4px solid #f96dba;
  border-radius: 20px;
  overflow: hidden;
}

.navbar li a {
  display: block;
  padding: 15px 16px;
  text-decoration: none;

  font-family: monospace;
  font-size: 20px;
  color: hotpink;
}

.navbar li a:hover {
  background-color: aliceblue;
}

.navbar li a.active {
  background-color: deeppink;
  color: white;
}

/* --- Main content wrapper --- */
.page_body {
  width: 80vw;
  margin: 0 auto 12px;
  padding: 14px 18px;

  background-color: #ffe0f1;
  border: 4px solid #f96dba;
  border-radius: 20px;

  box-sizing: border-box;
  font-size: 18px;
}

.page_body h1 {
  margin: 0 0 10px;
  color: hotpink;
}

.page_body p {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.4;
}

/* --- Tag key box --- */
.tag-key {
  border: 2px solid #777;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0 22px;
}

.tag-key h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.tag-key-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tag-key-list li {
  color: #555;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  margin-right: 8px;

  border: 1.5px solid #777;
  border-radius: 999px;
  background-color: #ffa6d7;

  color: #000;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* --- Search + clear controls --- */
.blog-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 10px;
}

.blog-controls input {
  flex: 1;
  padding: 10px 12px;

  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;

  font-family: monospace;
  font-size: 16px;
}

.blog-controls button {
  padding: 10px 12px;

  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;

  cursor: pointer;
  font-family: monospace;
  font-size: 16px;
}

.blog-controls button:hover {
  background: aliceblue;
}

/* --- Tag chips (filter buttons) --- */
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.chip {
  padding: 6px 10px;

  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;

  cursor: pointer;
  font-family: monospace;
  font-size: 0.9rem;
}
.chip[data-tag="personal"]    { background: #f0c3ce; }
.chip[data-tag="pixelart"]    { background: #ffe2af ; }
.chip[data-tag="devlog"]      { background: #d7bdf2; }
.chip[data-tag="gamedev"]     { background: #bae1f0; }
.chip[data-tag="webdev"]      { background: #fcff9e; }
.chip[data-tag="inspiration"] { background: #aeebba; }
.chip[data-tag="learning"]    { background: #dbffb0; }

.chip:hover {
  background: aliceblue;
}

.chip.active {
  background: #000;
  color: #fff;
}

.active-filters {
  margin: 8px 0 14px;
}

/* --- Posts grid --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

/* --- Post cards (SOLID PINK OFFSET SHADOW) --- */
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;

  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 14px;

  /* The magic: box-shadow can't overlay text */
  box-shadow: 0 0 0 transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #f96dba; /* solid pink */
}

/* Optional: keyboard accessibility (tabbing) */
.post-card:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
  box-shadow: 8px 8px 0 #f96dba;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.meta {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0 0 10px;
}

.excerpt {
  margin: 0 0 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags > *::before {
  content: "#";
  margin-right: 2px;
  opacity: 0.7;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination button {
  padding: 8px 10px;

  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;

  cursor: pointer;
  font-family: monospace;
  font-size: 16px;
}

.pagination button:hover {
  background: aliceblue;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Footer --- */
footer {
  text-align: center;
  margin: 10px 0 18px;
  font-size: 16px;
}

/* Card tag pills (the little "webdev" on each card) */
.card-tags .tag,
.card-tags .chip,
.card-tags span,
.card-tags a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid #777; /* same border as key pills */
  color: #000;

  font-size: 0.95rem;
  white-space: nowrap;
  
}
.tag-key .tag[data-tag="personal"]     { background: #f0c3ce; }
.tag-key .tag[data-tag="pixelart"]     { background: #ffe2af ; }
.tag-key .tag[data-tag="devlog"]       { background: #d7bdf2; }
.tag-key .tag[data-tag="gamedev"]      { background: #bae1f0; }
.tag-key .tag[data-tag="webdev"]       { background: #fcff9e; }
.tag-key .tag[data-tag="inspiration"]  { background: #aeebba; }
.tag-key .tag[data-tag="learning"]     { background: #dbffb0; }

.post_body {
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

.post p {
  margin: 0 0 1em;
  margin-bottom: 1.4em;
}

.post-footer{
  margin: 2rem auto 0;
  max-width: 60ch;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.95em;

  border-top: 2px dashed #f4a3cf; /* indie-web vibe */
  background: transparent;
}


.post-footer h2 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.post-footer p {
  margin: 0;
  font-size: 0.95rem;   
}

.post-footer a {
  font-weight: 700;
  text-decoration: underline;
}

.post_body img.fullwidth {
  width: 100%;
  height: auto;
  display: block;
}