/* ==========================================================================
   halaspace blog stylesheet
   Loaded ONLY on blog templates (home.php, single.php, archive.php, index.php)
   via functions.php conditional enqueue. Never loaded on front-page.php,
   so the landing page is completely unaffected by anything in this file.
   ========================================================================== */

body.halaspace-blog{
  --bg:#f7f8fc;
  --ink:#0f1533;
  --ink-soft:#4a5178;
  --ink-faint:#8890b5;
  --white:#ffffff;
  --line:rgba(15,21,51,0.08);
  --violet:#6d5efc;
  --violet-dk:#5646e6;
  --cyan:#28c7d6;
  --shadow-sm:0 4px 20px rgba(45,42,114,0.06);
  --shadow-md:0 18px 50px rgba(45,42,114,0.12);
  font-family:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  margin:0;
}
body.halaspace-blog h1,
body.halaspace-blog h2,
body.halaspace-blog h3{
  font-family:'Space Grotesk','Manrope',sans-serif;
  letter-spacing:-0.02em;
  line-height:1.15;
}
body.halaspace-blog a{ color:inherit; text-decoration:none; }
body.halaspace-blog .hb-wrap{ max-width:1000px; margin:0 auto; padding:0 24px; }

/* Nav */
.hb-nav{ position:sticky; top:0; z-index:20; background:rgba(247,248,252,.85); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.hb-nav .hb-wrap{ display:flex; align-items:center; justify-content:space-between; padding-top:16px; padding-bottom:16px; }
.hb-brand{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk'; font-weight:700; font-size:1.15rem; }
.hb-logo{ width:32px; height:32px; border-radius:9px; background:linear-gradient(120deg,#6d5efc,#28c7d6); flex:0 0 auto; }
.hb-brand span{ color:var(--violet); }
.hb-links{ display:flex; gap:22px; }
.hb-links a{ font-weight:600; color:var(--ink-soft); font-size:.95rem; }
.hb-links a:hover{ color:var(--ink); }

/* Content */
.hb-content{ padding:56px 24px 80px; }
.hb-title{ font-size:clamp(1.9rem,4vw,2.6rem); font-weight:700; margin-bottom:34px; }

/* Post grid / cards */
.hb-post-grid{ display:grid; grid-template-columns:1fr; gap:24px; }
.hb-card{ background:var(--white); border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .25s, box-shadow .25s; }
.hb-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.hb-thumb img{ width:100%; height:auto; display:block; }
.hb-card-body{ padding:22px; }
.hb-meta{ font-size:.8rem; font-weight:700; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.05em; }
.hb-card-title{ font-size:1.25rem; margin:10px 0 10px; }
.hb-card-title a:hover{ color:var(--violet); }
.hb-excerpt{ color:var(--ink-soft); font-size:.96rem; margin-bottom:14px; }
.hb-readmore{ font-weight:700; color:var(--violet-dk); font-size:.9rem; }

/* Pagination */
.hb-pagination{ margin-top:44px; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.hb-pagination .page-numbers{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px; border-radius:10px; background:var(--white); border:1px solid var(--line); font-weight:700; font-size:.9rem; }
.hb-pagination .page-numbers.current{ background:var(--violet); color:#fff; border-color:var(--violet); }
.hb-pagination .page-numbers:hover{ box-shadow:var(--shadow-sm); }

/* Single post */
.hb-single-title{ font-size:clamp(2rem,4.5vw,3rem); margin-bottom:18px; }
.hb-single-thumb img{ width:100%; border-radius:18px; margin-bottom:30px; }
.hb-single-body{ font-size:1.08rem; color:var(--ink-soft); }
.hb-single-body p{ margin-bottom:1.2em; }
.hb-single-body img{ max-width:100%; border-radius:14px; }
.hb-tags{ margin-top:26px; }
.hb-tags a{ display:inline-block; background:var(--white); border:1px solid var(--line); padding:6px 12px; border-radius:999px; font-size:.82rem; font-weight:700; color:var(--ink-soft); margin:4px 6px 0 0; }

.hb-post-nav{ display:flex; justify-content:space-between; gap:20px; margin-top:50px; padding-top:24px; border-top:1px solid var(--line); font-weight:700; flex-wrap:wrap; }
.hb-post-nav a:hover{ color:var(--violet); }

/* Footer */
.hb-foot{ border-top:1px solid var(--line); padding:30px 0; }
.hb-foot .hb-wrap{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; color:var(--ink-faint); font-size:.9rem; font-weight:600; }
.hb-back{ font-weight:700; color:var(--violet-dk); }

@media(min-width:680px){
  .hb-post-grid{ grid-template-columns:1fr 1fr; }
}
