/*
Theme Name: Astrodude Space
Theme URI: https://astrodudespace.com/
Author: Astrodude Space
Description: Dark, animated space-themed custom WordPress theme for Astrodude Space — an 11-year-old space enthusiast's blog covering planets, stars, galaxies and space facts.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: astrodude-space
*/

/* ==========================================================================
   Astrodude Space — Theme Styles
   ========================================================================== */

:root {
  --bg: #060716;
  --bg-alt: #0a0d24;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #6d28d9;
  --indigo: #6366f1;
  --pink: #ec4899;
  --text: #f5f6fb;
  --text-dim: #a6acc4;
  --text-dimmer: #6c7290;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(99,102,241,0.10));
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--purple-dark) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--purple); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple), var(--indigo)); border-radius: 10px; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
}
.eyebrow svg { width: 14px; height: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -6px rgba(139, 92, 246, 0.7); }

.btn-outline {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); transform: translateY(-3px); }

.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Starfield / background canvas ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 0%, #131a3d 0%, var(--bg) 55%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 85% 8%, rgba(139,92,246,0.16), transparent 60%),
    radial-gradient(500px circle at 5% 40%, rgba(99,102,241,0.10), transparent 60%);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-rocket {
  font-size: 38px;
  animation: rocket-float 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(139,92,246,0.6));
}
@keyframes rocket-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-16px) rotate(-8deg); }
}
.loader-bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient);
  animation: loader-slide 1.1s ease-in-out infinite;
}
@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- Cursor glow (desktop only) ---------- */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.10), transparent 70%);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding .35s ease, background .35s ease, border-color .35s ease, top .35s ease;
  border-bottom: 1px solid transparent;
}
/* Offset below the WP admin toolbar when a logged-in user views the front end */
body.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #site-header { top: 46px; }
}
#site-header.scrolled {
  padding: 12px 0;
  background: rgba(6, 7, 22, 0.75);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 42px; width: auto; transition: transform .4s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.brand-text .b2 {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--purple-light);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color .25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width .3s ease;
}
.nav-links a.active::after,
.nav-links .is-active > a::after,
.nav-links a:hover::after { width: 100%; }
.nav-links .is-active > a { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all .3s ease;
}
.icon-btn:hover { color: #fff; border-color: var(--purple-light); background: rgba(139,92,246,0.12); }
.icon-btn svg { width: 17px; height: 17px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: rgba(10,12,32,0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 99;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu li { list-style: none; }
.mobile-menu a { font-size: 17px; font-weight: 500; color: var(--text-dim); }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .is-active > a { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Full-bleed background video, shared visually with the fixed header above it */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background: #05060f;
  pointer-events: none;
}
.hero-video.is-visible { opacity: 1; }
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,6,15,0.5) 0%, rgba(5,6,15,0.3) 35%, rgba(6,7,22,0.75) 85%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(5,6,15,0.5) 0%, rgba(5,6,15,0.1) 60%);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}
.hero-copy { max-width: 700px; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 22px;
}
.hero-copy h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dimmer);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-cue .dot-track {
  width: 22px; height: 36px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue .dot-track span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--purple-light);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- Category strip ---------- */
.cat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: -10px;
  backdrop-filter: blur(10px);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(var(--cat-cols, 6), 1fr);
  gap: 16px;
}
.cat-card {
  text-align: center;
  padding: 22px 10px;
  border-radius: var(--radius-md);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease;
  cursor: pointer;
}
.cat-card:hover { background: rgba(139,92,246,0.08); transform: translateY(-8px); }
.cat-icon {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(139,92,246,0.25);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cat-card:hover .cat-icon { transform: rotate(-8deg) scale(1.08); }
.cat-icon svg { width: 26px; height: 26px; color: var(--purple-light); }
.cat-card h4 { font-size: 15px; margin-bottom: 4px; }
.cat-card p { font-size: 12.5px; color: var(--text-dimmer); }

/* ---------- Section heading ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.sec-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-pad { padding: 110px 0; }

/* ---------- Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .4s ease;
  position: relative;
}
.blog-card:hover { transform: translateY(-10px); border-color: rgba(139,92,246,0.35); box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6); }
.blog-thumb { position: relative; height: 210px; overflow: hidden; background: var(--bg-alt); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.blog-card:hover .blog-thumb img { transform: scale(1.1); }
.blog-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff;
  z-index: 2;
}
.blog-bookmark {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(6,7,22,0.55);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 2;
  transition: background .3s ease, transform .3s ease;
}
.blog-bookmark:hover { background: var(--purple); transform: scale(1.1); }
.blog-bookmark svg { width: 15px; height: 15px; }
.blog-body { padding: 24px; }
.blog-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-dimmer);
  margin-bottom: 12px;
}
.blog-meta svg { width: 14px; height: 14px; }
.blog-body h3 { font-size: 19px; margin-bottom: 10px; }
.blog-body h3 a:hover { color: var(--purple-light); }
.blog-body p { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.blog-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--purple-light);
  transition: gap .3s ease;
}
.blog-readmore svg { width: 15px; height: 15px; transition: transform .3s ease; }
.blog-readmore:hover { gap: 10px; }
.blog-readmore:hover svg { transform: translateX(2px); }

/* ---------- About ---------- */
.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 50px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.about-copy p { color: var(--text-dim); margin: 20px 0 30px; max-width: 520px; }
.about-visual {
  position: relative;
  height: 380px;
  display: grid; place-items: center;
}
.about-orb {
  position: relative;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(139,92,246,0.35), rgba(10,12,32,0.2) 70%);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  overflow: hidden;
}
.about-orb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: 0.92; }
.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(139,92,246,0.35);
  border-radius: 50%;
}
.orbit-ring.r1 { inset: -30px; animation: spin-slow 18s linear infinite; }
.orbit-ring.r2 { inset: -60px; animation: spin-slow 28s linear infinite reverse; }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.orbit-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 12px var(--purple-light);
}
.float-chip {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(10,12,32,0.85);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  animation: float-badge 5s ease-in-out infinite;
}
.float-chip svg { width: 22px; height: 22px; color: var(--purple-light); }
.float-chip.c1 { top: 4%; right: 8%; animation-delay: .2s; }
.float-chip.c2 { bottom: 8%; left: 2%; animation-delay: 1.2s; }
.float-chip.c3 { top: 42%; right: -4%; animation-delay: 2.1s; }

/* ---------- Stats ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 50px 0;
}
.stat-item { text-align: center; }
.stat-icon { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--purple-light); }
.stat-icon svg { width: 100%; height: 100%; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ---------- Newsletter CTA ---------- */
.cta-panel {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::before, .cta-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.cta-panel::before { width: 220px; height: 220px; top: -80px; left: -60px; }
.cta-panel::after { width: 160px; height: 160px; bottom: -70px; right: -30px; }
.cta-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-panel p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 30px; }
.cta-form {
  display: flex; gap: 12px; max-width: 440px; margin: 0 auto;
  position: relative; z-index: 2;
}
.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.7); }
.cta-form button {
  background: #0a0d24;
  color: #fff;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .3s ease;
}
.cta-form button:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer { padding-top: 90px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.footer-col p { color: var(--text-dim); font-size: 14px; max-width: 300px; }
.footer-col h5 { font-size: 14.5px; margin-bottom: 20px; color: #fff; letter-spacing: 0.03em; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a { font-size: 14px; color: var(--text-dim); transition: color .25s ease, padding-left .25s ease; }
.footer-col ul li a:hover { color: var(--purple-light); padding-left: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 0 40px;
  font-size: 13.5px;
  color: var(--text-dimmer);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  z-index: 60;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .35s ease;
  box-shadow: 0 8px 20px -4px rgba(139,92,246,0.6);
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top svg { width: 18px; height: 18px; color: #fff; }

/* ---------- Reveal animation base ---------- */
.reveal { opacity: 0; transform: translateY(36px); }

/* ==========================================================================
   Blog archive / category / search listing
   ========================================================================== */
.page-banner {
  padding: 160px 0 60px;
  text-align: center;
}
.page-banner .eyebrow { justify-content: center; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { color: var(--text-dim); margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
}
.pagination a:hover { color: #fff; border-color: var(--purple-light); background: rgba(139,92,246,0.12); }
.pagination .current { background: var(--gradient); color: #fff; border-color: transparent; }

/* ==========================================================================
   Single post
   ========================================================================== */
.single-post-header { padding: 150px 0 40px; }
.single-post-header .blog-meta { justify-content: center; margin-bottom: 18px; }
.single-post-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
}
.single-post-header .blog-badge { position: static; display: inline-flex; margin-bottom: 18px; }
.single-post-header .badge-row { text-align: center; }
.single-post-thumb {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 30px auto 0;
  padding: 0 24px;
}
.single-post-thumb img {
  max-width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 0 auto;
}
.single-post-body {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.post-content { color: var(--text-dim); font-size: 17px; }
.post-content h2, .post-content h3 { color: #fff; margin: 40px 0 18px; }
.post-content p { margin-bottom: 22px; }
.post-content a { color: var(--purple-light); text-decoration: underline; }
.post-content ul, .post-content ol { margin: 0 0 22px 22px; list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 10px; }
.post-content img { border-radius: var(--radius-md); margin: 30px 0; }
.post-content blockquote {
  border-left: 3px solid var(--purple);
  padding: 4px 0 4px 22px;
  margin: 30px 0;
  color: var(--text);
  font-style: italic;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-soft);
}
.post-tags a {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all .25s ease;
}
.post-tags a:hover { color: #fff; border-color: var(--purple-light); background: rgba(139,92,246,0.12); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
}
.post-nav a {
  display: block;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .3s ease;
}
.post-nav a:hover { border-color: var(--purple-light); transform: translateY(-3px); }
.post-nav .dir { font-size: 12px; color: var(--purple-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.post-nav .next-link { text-align: right; }
.post-nav .title { font-size: 14.5px; font-weight: 600; color: #fff; }

/* ==========================================================================
   Simple placeholder pages (Gallery / About / Contact)
   ========================================================================== */
.placeholder-page { padding: 160px 0 120px; text-align: center; }
.placeholder-page .icon-orb {
  width: 90px; height: 90px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(139,92,246,0.3);
}
.placeholder-page .icon-orb svg { width: 38px; height: 38px; color: var(--purple-light); }
.placeholder-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.placeholder-page p { color: var(--text-dim); max-width: 720px; margin: 0 auto 30px; }
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
  margin-bottom: 20px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .about-panel { grid-template-columns: 1fr; padding: 44px; }
  .about-visual { order: -1; height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .icon-btn,
  .nav-actions .btn-primary { display: none; }
  .burger { display: flex; }
  .hero-copy { max-width: 100%; }
  .hero { padding-top: 130px; }
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(5,6,15,0.35) 0%, rgba(5,6,15,0.45) 45%, rgba(6,7,22,0.85) 88%, var(--bg) 100%);
  }
  .blog-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .cta-form { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-panel { padding: 22px; }
  .about-panel { padding: 30px; border-radius: var(--radius-md); }
  .cta-panel { padding: 36px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 26px; }
}
