/* =======================================
   BLOG (Bludit) — index.php mapping
   Works for:
   - Home (list): .blog-list, .post-item, .paginator
   - Single post: .post (title, meta, content, tags)
   Theme toggles via body.high-tech-layout / body.creative-layout
   ======================================= */

/* --- Page wrappers --- */
#main {
  /* ensure blog area sits above dots bg visually the same as other pages */
  position: relative;
  z-index: 0;
}

.blog-list {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem; /* 20px */
}

/* --- List view items --- */
.post-item {
  background: #fff;
  border: 1px solid #000;
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
  color: #000;
}

body.creative-layout .post-item {
  background: #DBE9B7;
}

.post-item + hr {
  border: 0;
  height: 0;
  margin: .75rem 0 1.25rem;
}

.post-title {
  margin: 0 0 .25rem 0;
  font-size: 1.6rem;
  line-height: 1.25;
  color: #000;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
@media (hover:hover) and (pointer:fine) {
  .post-title a:hover { border-color: #000; }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
  color: #000;
  font-size: .95rem;
  margin-bottom: .5rem;
}
.post-cat { opacity: .9; }

.post-excerpt {
  color: #000;
  line-height: 1.6;
}

/* Read more CTA matches your site button style */
.read-more {
  display: inline-block;
  margin-top: .6rem;
  padding: .5rem 1rem;
  background-color: #029a2c;
  border: 1px solid #000;
  border-radius: .625rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease;
}
@media (hover:hover) and (pointer:fine) {
  .read-more:hover { transform: translateY(-2px); }
}

/* --- Pagination --- */
.paginator {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .75rem 1.25rem 1.25rem;
}
.paginator a {
  border: 1px solid #000;
  border-radius: .5rem;
  padding: .375rem .75rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 700;
}
body.creative-layout .paginator a { background: #DBE9B7; }
.paginator .newer::before { content: "« "; }
.paginator .older::after  { content: " »"; }

/* --- Single post --- */
.post {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem;
  color: #000;
}

.post > .post-title {
  margin: 0 0 .5rem 0;
  font-size: 2rem;
  line-height: 1.2;
}

.post > .post-meta {
  margin-bottom: 1rem;
}

.post-content {
  background: #fff;
  border: 1px solid #000;
  border-radius: 0.625rem;
  padding: 1.25rem;
  color: #000;
}
body.creative-layout .post-content { background: #DBE9B7; }

/* Article typography */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #000;
  margin: 1.25rem 0 .5rem;
  line-height: 1.25;
}
.post-content p { margin: 0 0 1rem 0; }
.post-content a { color: #000; text-decoration: underline; }
.post-content ul,
.post-content ol { padding-left: 1.1rem; margin: 0 0 1rem 0; }

/* Fix for Creative layout: bold text and list font sizes */
body.creative-layout .post-content strong,
body.creative-layout .post-content b {
  font-weight: 900 !important; /* Heavier than default bold (700) to show distinction */
}
body.creative-layout .post-content li {
  font-size: 1.2rem !important; /* Match paragraph font-size */
  line-height: 1.6; /* Better readability */
}
.post-content blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid #000;
  background: #f7f7f7;
  color: #000;
  border-radius: .25rem;
}
.post-content img,
.post-content video,
.post-content iframe {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border: 1px solid #000;
  border-radius: .5rem;
  background: #fff;
}
.post-content pre,
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.post-content pre {
  background: #111;
  color: #fff;
  padding: .75rem 1rem;
  border: 1px solid #000;
  border-radius: .5rem;
  overflow: auto;
  margin: 0 0 1rem 0;
}
.post-content code {
  background: #f0f0f0;
  color: #000;
  padding: .1rem .25rem;
  border-radius: .25rem;
}

/* Tags row */
.post-tags {
  margin-top: 1rem;
}
.post-tags .tag {
  display: inline-block;
  margin: 0 .4rem .4rem 0;
  padding: .25rem .6rem;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
}
body.creative-layout .post-tags .tag { background: #DBE9B7; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-list,
  .post { padding: .938rem; }
  .post-item { padding: .938rem; }
  .post-title { font-size: 1.4rem; }
  .post > .post-title { font-size: 1.7rem; }
}

/* --- Nice-to-haves --- */
/* Ensure any SVGs inherit text color */
.post-item svg,
.post-content svg,
.post-meta svg { width: 18px; height: 18px; fill: currentColor; }

/* If you want the Blog nav link to show as active (optional) */
.nav-item[href="/blog/"].is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}
