/* ================================================================
   SVYAZ.HOMES — Aurora Sunset Design System
   Gradient palette: rose -> violet -> azure (+ coral accents)
   ================================================================ */

/* --- Variables --- */
:root {
  color-scheme: dark;

  /* Background layers */
  --bg-0: #060414;
  --bg-1: #0a0820;
  --bg-2: #110b2c;
  --bg-3: #191040;
  --bg: var(--bg-0);
  --panel: rgba(20, 9, 48, 0.75);

  /* Text ink */
  --ink-0: #f4f1ff;
  --ink-1: #e7defc;
  --ink-2: #b9aede;
  --ink-3: #7a6e9d;
  --text: var(--ink-0);
  --muted: var(--ink-2);

  /* Neon accents */
  --neon-cyan: #3aa0ff;
  --neon-pink: #ff4f9a;
  --neon-violet: #9b5cff;
  --neon-lime: #ffcf6b;
  --neon-amber: #ff9e5c;

  /* Legacy compat */
  --accent: var(--neon-violet);
  --accent-strong: var(--neon-cyan);

  /* Borders & shadows */
  --border: rgba(155, 92, 255, 0.22);
  --border-strong: rgba(155, 92, 255, 0.5);
  --shadow-neon-pink: 0 0 24px rgba(255, 79, 154,0.55), 0 0 60px rgba(255, 79, 154,0.25);
  --shadow-neon-cyan: 0 0 24px rgba(58, 160, 255,0.55), 0 0 60px rgba(58, 160, 255,0.25);
  --shadow-neon-violet: 0 0 24px rgba(155, 92, 255,0.55), 0 0 60px rgba(155, 92, 255,0.25);

  /* Radius */
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Fonts */
  --font-sans: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: 'Orbitron', 'Rubik', sans-serif;

  /* Container */
  --container: 1240px;

  font-family: var(--font-sans);
}


/* --- Base & Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1);
  background:
    radial-gradient(1200px 900px at 12% -10%, #10204d 0%, transparent 55%),
    radial-gradient(1100px 800px at 100% 10%, #2e0f5e 0%, transparent 60%),
    radial-gradient(900px 700px at 50% 110%, #5a1546 0%, transparent 55%),
    var(--bg-0);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--neon-pink);
}

/* Override for read-more button to keep dark text on hover */
a.read-more:hover {
  color: #060414;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--ink-3); }

.page {
  padding-bottom: 60px;
  position: relative;
  z-index: 3;
}

/* Animated background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(155, 92, 255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  animation: gridShift 40s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0; }
  to   { background-position: 56px 56px; }
}

.bg-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  animation: scan 8s linear infinite;
}
@keyframes scan {
  from { transform: translateY(0); }
  to   { transform: translateY(120px); }
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbFloat 22s ease-in-out infinite;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--neon-pink), transparent 60%);
  top: -120px; left: -120px;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--neon-violet), transparent 60%);
  top: 25%; right: -160px;
  animation-delay: -8s;
}
.orb-3 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, var(--neon-cyan), transparent 65%);
  bottom: -160px; left: 30%;
  animation-delay: -14s;
  opacity: 0.4;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

@media (max-width: 720px) {
  .orb { filter: blur(40px); opacity: 0.35; animation: none; }
  .bg-scanlines { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .glitch::before, .glitch::after { animation: none !important; }
}


/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8, 3, 26, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled,
.site-header:hover {
  background: rgba(5, 1, 17, 0.85);
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--ink-0);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.brand a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulse 1.6s ease-in-out infinite;
  margin-left: 4px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.tagline {
  color: var(--ink-3);
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Header navigation */
.meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: 1;
  margin-left: 28px;
  margin-right: 0;
  padding-right: 0;
}

.header-link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  transition: right 0.25s ease;
}

.header-link:hover {
  color: var(--ink-0);
}

.header-link:hover::after {
  right: 0;
}

.header-link.active {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Dropdown categories menu */
.header-categories-dropdown {
  position: relative;
  display: inline-block;
}

.category-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(155, 92, 255, 0.08);
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.category-trigger:hover {
  background: rgba(155, 92, 255, 0.15);
  border-color: var(--border-strong);
}

.category-trigger.active {
  background: rgba(58, 160, 255, 0.1);
  border-color: rgba(58, 160, 255, 0.4);
  color: var(--neon-cyan);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.header-categories-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.category-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 180px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(20, 9, 48, 0.95);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  padding: 8px 0;
  backdrop-filter: blur(14px);
}

.header-categories-dropdown:hover .category-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--ink-1);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  font-weight: 500;
  font-size: 14px;
}

.category-dropdown-item:hover {
  background: rgba(155, 92, 255, 0.12);
  color: var(--neon-cyan);
}

.category-dropdown-item.active {
  background: rgba(58, 160, 255, 0.1);
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Header buttons */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
  color: #ffffff !important;
  background: unset !important;
  border: 1px solid var(--border-strong);
  background: rgba(155, 92, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
}

.btn-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-header:hover::before {
  transform: translateX(120%);
}

.btn-header:hover {
  transform: translateY(-2px);
  border-color: var(--neon-pink);
  box-shadow: 0 0 16px rgba(255, 79, 154,0.45);
  color: #ffffff !important;
}

.button-icon {
  display: inline-block;
  margin: 0 4px;
  font-size: 1em;
  line-height: 1;
}

.button-icon-image {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  object-fit: contain;
  margin: 0 4px;
}

.button-text {
  display: inline-block;
  vertical-align: middle;
}


/* --- Footer --- */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  position: relative;
  z-index: 3;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .container p {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--neon-pink);
  transform: translateX(3px);
}


/* --- Layout & Hero --- */
.hero {
  padding: 80px 0 40px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 79, 154,0.12), transparent 60%),
    radial-gradient(60% 50% at 80% 70%, rgba(58, 160, 255,0.10), transparent 60%);
  pointer-events: none;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(58, 160, 255,0.08);
  border: 1px solid rgba(58, 160, 255,0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
}

.hero-content .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulse 1.4s ease-in-out infinite;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.5vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 24px 0 20px;
  color: var(--ink-0);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hero-content h1 a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(58, 160, 255,0.5);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-content h1 a:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 16px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  color: #060414 !important;
  background: linear-gradient(120deg, var(--neon-pink), var(--neon-violet) 60%, var(--neon-cyan));
  background-size: 200% 200%;
  box-shadow: 0 0 0 0 rgba(255, 79, 154,0.5), 0 14px 40px rgba(155, 92, 255,0.45);
  animation: gradShift 6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-hero:hover::before {
  transform: translateX(120%);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 79, 154,0.6), 0 18px 50px rgba(155, 92, 255,0.6);
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.lede {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 640px;
  line-height: 1.6;
}

.lede .hl,
.hl {
  color: var(--ink-0);
  border-bottom: 1px dashed rgba(58, 160, 255,0.5);
  padding-bottom: 1px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}


/* --- 404 Page --- */
.page-404 {
  padding: 120px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-404::before {
  content: "404";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(200px, 40vw, 400px);
  font-weight: 900;
  color: rgba(155, 92, 255,0.05);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.page-404-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.page-404-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 24px;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(58, 160, 255,0.08);
  border-radius: 999px;
  border: 1px solid rgba(58, 160, 255,0.35);
  font-family: var(--font-mono);
}

.page-404-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  margin: 0 0 24px;
  color: var(--ink-0);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--ink-0), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404-text {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.page-404-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.page-404 .btn {
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  box-shadow: 0 15px 40px rgba(155, 92, 255,0.4);
  transition: all 0.2s ease;
}

.page-404 .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 79, 154,0.5);
}


/* --- Posts --- */
.post-list {
  display: grid;
  gap: 22px;
  padding: 24px 0 40px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(58, 160, 255,0.7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(58, 160, 255,0.10), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(255, 79, 154,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58, 160, 255,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 30px rgba(58, 160, 255,0.18);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card:hover::after {
  opacity: 1;
}

.post-card-image-link {
  display: block;
  width: calc(100% + 48px);
  margin: -28px -24px 14px -24px;
  overflow: hidden;
  text-decoration: none;
  max-width: none;
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

.post-card h2 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-0);
  line-height: 1.3;
}

.excerpt {
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 15px;
}

.post-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(155, 92, 255,0.18);
}


/* --- Post Detail --- */
.post {
  padding: 30px 0 16px;
}

.post h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  margin: 12px 0 16px;
  font-weight: 800;
  color: var(--ink-0);
  line-height: 1.1;
}

.hero-image {
  max-width: min(800px, 100%);
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin: 10px auto 20px;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* Article buttons */
.article-buttons {
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.article-buttons-top {
  margin: 20px 0 24px;
}

.article-buttons-bottom {
  margin: 32px 0 24px;
  padding: 24px 0;
  border-top: 1px dashed rgba(155, 92, 255,0.18);
}

.btn-article {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  color: #060414 !important;
  background: linear-gradient(120deg, var(--neon-pink), var(--neon-violet) 60%, var(--neon-cyan)) !important;
  background-size: 200% 200%;
  box-shadow: 0 14px 40px rgba(155, 92, 255,0.45);
  animation: gradShift 6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-article:hover::before {
  transform: translateX(120%);
}

.btn-article:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 24px rgba(255, 79, 154,0.6), 0 18px 50px rgba(155, 92, 255,0.6);
}

/* Copyable text block */
.copyable-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s ease;
  color: #060414 !important;
  background: linear-gradient(135deg, var(--copy-color, #ef4444), var(--copy-color, #ef4444)) !important;
  cursor: pointer;
  user-select: none;
  border: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.copyable-block:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.2);
}

.copyable-block:active {
  transform: translateY(-1px) scale(0.98);
}

.copyable-block .copy-text {
  display: inline-block;
}

.copyable-block .copy-icon {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.1em;
  opacity: 0.8;
}

/* Post body content */
.post-body {
  line-height: 1.8;
  color: var(--ink-1);
  font-size: 17px;
}

.post-body p {
  margin: 0 0 16px;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: var(--ink-0);
  margin: 44px 0 14px;
  font-weight: 700;
  line-height: 1.3;
}

.post-body h1 { font-size: 2em; }
.post-body h2 {
  font-size: 1.75em;
  position: relative;
  padding-left: 18px;
}
.post-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
  border-radius: 2px;
}
.post-body h3 { font-size: 1.5em; }
.post-body h4 { font-size: 1.25em; }

.post-body ul,
.post-body ol {
  margin: 16px 0;
  padding-left: 30px;
}

.post-body li {
  margin: 8px 0;
}

.post-body li::marker {
  color: var(--neon-cyan);
}

.post-body a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(58, 160, 255,0.4);
  transition: color 0.2s, border-color 0.2s;
}

.post-body a:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.post-body strong,
.post-body b {
  font-weight: 700;
  color: var(--ink-0);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(58, 160, 255,0.10);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--neon-cyan);
}

.post-body pre {
  background: rgba(20,9,48,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--neon-pink);
  background: linear-gradient(120deg, rgba(255, 79, 154,0.06), rgba(58, 160, 255,0.04));
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-1);
  font-style: italic;
}

.post-body img {
  max-width: min(800px, 100%);
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 16px auto;
  display: block;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  overflow-x: auto;
  display: block;
}

.post-body table th,
.post-body table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.post-body table th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--neon-cyan);
  background: rgba(58, 160, 255,0.05);
}

.author-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(58, 160, 255,0.4);
  transition: color 0.15s ease;
}

.author-link:hover {
  color: var(--neon-cyan);
}


/* --- Similar Posts --- */
.similar-posts {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px dashed rgba(155, 92, 255,0.18);
}

.similar-posts h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 0 0 24px;
}

.similar-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.similar-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}

.similar-post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(58, 160, 255,0.10), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(255, 79, 154,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.similar-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 160, 255,0.35);
  box-shadow: 0 12px 32px rgba(58, 160, 255,0.10);
}

.similar-post-card:hover::before {
  opacity: 1;
}

.similar-post-image-link {
  display: block;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
}

.similar-post-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.similar-post-card:hover .similar-post-image {
  transform: scale(1.05);
}

.similar-post-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.similar-post-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-family: var(--font-display);
  font-weight: 700;
}

.similar-post-content h3 a {
  color: var(--ink-0);
  text-decoration: none;
  transition: color 0.15s ease;
}

.similar-post-content h3 a:hover {
  color: var(--neon-cyan);
}

.similar-post-excerpt {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.similar-post-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}


/* --- Authors --- */
.team-list {
  padding: 24px 0 40px;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.author-card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.author-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-pink), var(--neon-cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  border-radius: 0 0 var(--radius) var(--radius);
}

.author-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 154,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 30px rgba(255, 79, 154,0.16);
}

.author-card:hover::after {
  transform: scaleX(1);
}

.author-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 700;
}

.author-info h2 a {
  color: var(--ink-0);
  text-decoration: none;
}

.author-info h2 a:hover {
  color: var(--neon-cyan);
}

.author-email {
  margin: 8px 0;
  color: var(--ink-3);
  font-size: 14px;
}

.author-email a {
  color: var(--neon-cyan);
}

.author-stats {
  margin: 12px 0 0;
}

.author-actions {
  margin-top: auto;
}

.author-avatar {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.author-avatar a {
  display: inline-block;
}

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.25s ease;
}

.author-card:hover .avatar-img {
  transform: scale(1.05);
  border-color: var(--neon-pink);
  box-shadow: 0 0 16px rgba(255, 79, 154,0.4);
}

.author-avatar-large {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.avatar-img-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--neon-violet);
  box-shadow: 0 0 24px rgba(155, 92, 255,0.4);
}


/* --- Forms / Comments --- */
.comments {
  padding: 12px 0 20px;
}

.comments h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  color: var(--ink-0);
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s ease;
}

.comment:hover {
  border-color: var(--border-strong);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.input,
.textarea {
  width: 100%;
  background: rgba(5,1,13,0.55);
  border: 1px solid rgba(58, 160, 255,0.25);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink-1);
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(58, 160, 255,0.14);
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--ink-0);
}

.comment-form small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.form-actions .btn {
  margin: 0;
}


/* --- Components --- */
.actions {
  margin: 20px 0;
}

.btn {
  background: linear-gradient(120deg, var(--neon-pink), var(--neon-violet) 60%, var(--neon-cyan));
  background-size: 200% 200%;
  color: #060414;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(155, 92, 255,0.35);
  animation: gradShift 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

/* Override .btn background for custom colored buttons */
.btn-header,
.btn-article,
.btn-hero {
  background: unset !important;
}

.comment-form .btn {
  margin: 16px 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 79, 154,0.45);
}

.like-btn {
  background: linear-gradient(135deg, #ff6a9f, #ffb86c);
}

.read-more {
  display: inline-flex;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: linear-gradient(120deg, var(--neon-pink), var(--neon-violet) 60%, var(--neon-cyan));
  background-size: 200% 200%;
  color: #060414;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 25px rgba(155, 92, 255,0.3);
  flex: 0 0 auto;
  animation: gradShift 6s ease-in-out infinite;
  text-decoration: none;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 79, 154,0.4);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(155, 92, 255,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink-1);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(155, 92, 255,0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(58, 160, 255,0.3);
}

.like-btn-card.liked {
  background: linear-gradient(135deg, #ff6a9f, #ffb86c);
  border-color: #ff6a9f;
  color: #060414;
}

.lazy-loading-indicator {
  margin: 40px 0 20px;
  text-align: center;
  padding: 20px;
}

.lazy-loading-indicator p {
  margin: 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* --- Pagination --- */
.pagination {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.pagination-link:hover {
  background: rgba(58, 160, 255,0.14);
  border-color: var(--neon-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.pagination-link-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--ink-3);
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  padding: 10px 16px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 14px;
}


/* --- Breadcrumbs --- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 24px 0 0;
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--neon-pink);
}

.breadcrumb-current {
  color: var(--ink-0);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--ink-3);
  margin: 0 4px;
  user-select: none;
}


/* --- Filters --- */
.filters-section {
  margin: 32px 0 24px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(155, 92, 255,0.08), rgba(58, 160, 255,0.04));
  border: 1px solid rgba(155, 92, 255,0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 76px;
  z-index: 5;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-label {
  color: var(--ink-0);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.filter-select {
  padding: 10px 40px 10px 16px;
  background: rgba(5,1,13,0.55);
  border: 1px solid rgba(58, 160, 255,0.25);
  border-radius: 999px;
  color: var(--ink-1);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300f0ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  min-width: 180px;
}

.filter-select:hover {
  border-color: var(--neon-cyan);
  background-color: rgba(58, 160, 255,0.06);
  box-shadow: 0 4px 12px rgba(58, 160, 255,0.15);
  transform: translateY(-1px);
}

.filter-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background-color: rgba(58, 160, 255,0.08);
  box-shadow: 0 0 0 3px rgba(58, 160, 255,0.18), 0 4px 12px rgba(58, 160, 255,0.15);
}

.filter-select option {
  background: rgba(20,9,48,0.95);
  color: var(--ink-1);
  padding: 8px;
}

/* Search form in filters */
.search-form-filter {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}

.search-input-filter {
  flex: 1;
  width: 100%;
  padding: 10px 48px 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink-1);
  background: rgba(5,1,13,0.55);
  border: 1px solid rgba(58, 160, 255,0.25);
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.search-input-filter::-webkit-search-decoration,
.search-input-filter::-webkit-search-cancel-button,
.search-input-filter::-webkit-search-results-button,
.search-input-filter::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-input-filter::placeholder {
  color: var(--ink-3);
  opacity: 0.7;
}

.search-input-filter:hover {
  border-color: rgba(58, 160, 255,0.45);
  background-color: rgba(58, 160, 255,0.04);
}

.search-input-filter:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background-color: rgba(58, 160, 255,0.06);
  box-shadow: 0 0 0 3px rgba(58, 160, 255,0.14);
}

.search-button-filter {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--neon-cyan);
  background: rgba(58, 160, 255,0.1);
  border: 1px solid rgba(58, 160, 255,0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.search-button-filter:hover {
  background: rgba(58, 160, 255,0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(58, 160, 255,0.3);
}

.search-button-filter:active {
  transform: translateY(-50%) scale(0.96);
}

.search-button-filter:focus {
  outline: none;
}

.search-button-filter:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.search-button-filter svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.filters-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  opacity: 0.5;
}


/* --- Responsive --- */
@media (max-width: 1080px) {
  .similar-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
    width: 100%;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    height: auto;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-nav {
    margin-top: 8px;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 40px 0 20px;
  }

  .hero-content h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .similar-posts-grid {
    grid-template-columns: 1fr;
  }

  .authors-grid {
    grid-template-columns: 1fr;
  }

  .pagination-links {
    gap: 8px;
  }

  .pagination-link,
  .pagination-link-disabled {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .pagination-info {
    padding: 8px 12px;
    font-size: 12px;
  }

  .filters-section {
    position: static;
    padding: 12px;
  }

  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-form-filter {
    min-width: 100%;
    max-width: 100%;
  }

  .filters-divider {
    display: none;
  }

  .filter-select {
    width: 100%;
  }

  .post-card-image-link {
    width: 100% !important;
    margin: -16px -16px 16px -16px !important;
  }

  .article-buttons {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin: 16px 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .article-buttons-top {
    margin: 16px 0 20px !important;
  }

  .article-buttons-bottom {
    margin: 24px 0 20px !important;
    padding: 20px 0 !important;
  }

  .btn-article,
  .copyable-block {
    padding: 14px 24px !important;
    font-size: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .post-body img,
  .post-body video,
  .post-body iframe {
    max-width: 100% !important;
    max-height: 400px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .hero-image {
    max-width: 100% !important;
    max-height: 400px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .post-body table {
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .post-body pre,
  .post-body code {
    max-width: 100% !important;
    overflow-x: auto !important;
    word-wrap: break-word !important;
  }

  .page-404 {
    padding: 80px 0;
    min-height: 60vh;
  }

  .page-404::before {
    font-size: clamp(150px, 50vw, 250px);
  }

  .page-404-inner {
    padding: 20px;
  }

  .page-404-text {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .page-404 .btn {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   VISUAL ENHANCEMENT LAYER — modern styles, motion & 3D depth
   Additive only (appended). Does not alter markup/structure.
   Safe: scoped overrides, @supports + prefers-reduced-motion guards.
   ================================================================ */

/* 1) Animated aurora depth behind content (rides existing fixed bg layer) */
.bg-orbs::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(255, 79, 154, 0.12),
    rgba(155, 92, 255, 0.12),
    rgba(58, 160, 255, 0.12),
    rgba(255, 184, 108, 0.07),
    rgba(255, 79, 154, 0.12));
  filter: blur(130px) saturate(125%);
  opacity: 0.55;
  pointer-events: none;
  animation: fx-aurora-spin 44s linear infinite;
  will-change: transform;
}
@keyframes fx-aurora-spin {
  to { transform: rotate(360deg) scale(1.04); }
}
/* gentle colour drift across the orb field for living motion */
.bg-orbs { animation: fx-hue-drift 26s ease-in-out infinite; }
@keyframes fx-hue-drift {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(38deg); }
}

/* 2) 3D depth on card grids — perspective + tilt-on-hover */
.post-list,
.authors-grid,
.similar-posts-list {
  perspective: 1500px;
  perspective-origin: 50% 30%;
}

.post-card,
.author-card,
.similar-post-card {
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.18, 0.7, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.45s ease;
}

.post-card:hover {
  transform: translateY(-10px) rotateX(4.5deg) rotateY(-3.5deg) scale(1.018);
  border-color: rgba(58, 160, 255, 0.6);
  box-shadow:
    0 42px 80px -22px rgba(0, 0, 0, 0.75),
    0 0 42px rgba(58, 160, 255, 0.22),
    0 0 80px rgba(255, 79, 154, 0.12);
}

.author-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(3deg) scale(1.02);
  border-color: rgba(255, 79, 154, 0.6);
  box-shadow:
    0 42px 80px -22px rgba(0, 0, 0, 0.75),
    0 0 42px rgba(255, 79, 154, 0.2),
    0 0 80px rgba(155, 92, 255, 0.14);
}

.similar-post-card:hover {
  transform: translateY(-6px) rotateX(3deg) scale(1.015);
}

/* lift inner media/title forward for a layered 3D parallax feel */
.post-card:hover .post-card-image-link,
.post-card:hover h2 { transform: translateZ(28px); }
.post-card .post-card-image-link,
.post-card h2 { transition: transform 0.5s cubic-bezier(0.18, 0.7, 0.2, 1); }

/* 3) Hero — animated neon glow + slow float (colour & link styles preserved) */
.hero-content h1 { animation: fx-hero-glow 5.5s ease-in-out infinite; }
@keyframes fx-hero-glow {
  0%, 100% { text-shadow: 0 0 26px rgba(58, 160, 255, 0.25), 0 0 64px rgba(155, 92, 255, 0.16); }
  50%      { text-shadow: 0 0 40px rgba(255, 79, 154, 0.36), 0 0 86px rgba(58, 160, 255, 0.22); }
}
.hero-content { animation: fx-float 9s ease-in-out infinite; }
@keyframes fx-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* 4) Richer micro-interactions on buttons & search */
.btn-hero:active,
.btn:active,
.read-more:active { transform: translateY(1px) scale(0.985); }

.read-more { transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease; }
.read-more:hover { transform: translateY(-2px); }

.search-input-filter:focus {
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.18), 0 0 26px rgba(58, 160, 255, 0.22);
  border-color: rgba(58, 160, 255, 0.6);
}

.eyebrow { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.eyebrow:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(58, 160, 255, 0.3); }

/* 5) Scroll-reveal motion — modern, pure CSS, progressive enhancement.
   Guarded so unsupported browsers always render content fully. */
@supports (animation-timeline: view()) {
  .post-card,
  .author-card,
  .similar-post-card {
    /* opacity/blur only — keeps hover transform tilt intact */
    animation: fx-reveal-soft linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 48%;
  }
  @keyframes fx-reveal-soft {
    from { opacity: 0; filter: blur(7px); }
    to   { opacity: 1; filter: blur(0); }
  }

  .hero-content > *,
  .section-title,
  .post-body > h2,
  .post-body > h3 {
    animation: fx-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
  @keyframes fx-reveal-up {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* 7) Signature gradient title — beautiful aurora gradient text fill */
.hero-content h1,
.hero-content h1 a,
.post h1 {
  background-image: linear-gradient(100deg,
    var(--neon-pink) 0%,
    var(--neon-violet) 46%,
    var(--neon-cyan) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border-bottom: none !important;
  animation: fx-title-sheen 9s ease-in-out infinite;
}
@keyframes fx-title-sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* glow via drop-shadow filter (works with transparent gradient text) */
.hero-content h1 {
  animation: fx-hero-glow-f 6s ease-in-out infinite;
}
.post h1 {
  filter: drop-shadow(0 0 20px rgba(155, 92, 255, 0.4)) drop-shadow(0 0 44px rgba(58, 160, 255, 0.22));
}
@keyframes fx-hero-glow-f {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(155, 92, 255, 0.45)) drop-shadow(0 0 40px rgba(58, 160, 255, 0.25)); }
  50%      { filter: drop-shadow(0 0 26px rgba(255, 79, 154, 0.55)) drop-shadow(0 0 60px rgba(155, 92, 255, 0.3)); }
}

/* 6) Honour reduced-motion: neutralise the enhancement layer */
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-content h1 a { animation: none !important; }
  .bg-orbs::before,
  .bg-orbs,
  .hero-content,
  .hero-content h1 { animation: none !important; }
  .post-card:hover,
  .author-card:hover,
  .similar-post-card:hover { transform: translateY(-4px) !important; }
  .post-card,
  .author-card,
  .similar-post-card,
  .hero-content > *,
  .section-title,
  .post-body > h2,
  .post-body > h3 {
    opacity: 1 !important;
    filter: none !important;
    transform: none;
  }
}
