/* public/css/post.css
   ─────────────────────────────────────────────────────────
   SINGLE-POST PAGE  – hero + centred glass card
   ───────────────────────────────────────────────────────── */

/* ========================================================
   0. HERO  (full-viewport background)
   ======================================================== */
.post-hero {
  position: relative;
  min-height: 100dvh;                      /* fills viewport */
  display: flex;
  flex-direction: column;                  /* stack cards vertically */
  align-items: center;                     /* centre cards horizontally */
  justify-content: flex-start;             /* keep stack near the top */
  gap: 2.5rem;                             /* space between cards */
  padding-top: 14vh;                       /* push first card down a bit */
  background: url("../img/hero5.jpg") center/cover fixed no-repeat;
  overflow: hidden;
}
.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);              /* dark overlay */
  z-index: 0;
}
.post-hero > * { position: relative; z-index: 1; }  /* lift card */

/* ========================================================
   1. GLASS-MORPHIC CARD
   ======================================================== */
.content-section {
  position: relative;
  width: min(900px, 92%);
  margin-inline: auto;
  padding: 3rem 3.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  background-image: var(--glass-highlight);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
  text-align: center;
}

/* Conic gradient ring */
.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(89,220,225,.9),
    rgba(147,152,255,.9),
    rgba(89,220,225,.9)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .3;
  transition: opacity .35s ease;
}
.content-section:hover::before { opacity: .6; }

/* ========================================================
   2. TITLE + META
   ======================================================== */
.content-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.5rem);
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.meta {
  margin: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  color: var(--text-300);
  opacity: .9;
}
.meta::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 8px var(--primary);
}

/* ========================================================
   3. HERO IMAGE
   ======================================================== */
.post-img {
  display: block;
  margin: 0 auto 2.5rem;
  width: 100%;
  max-width: 800px;                       /* shrink overall size */
  height: auto;                           /* keep aspect ratio */
  object-fit: contain;                    /* no cropping */
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  filter: brightness(1.05);
  transition: filter 0.3s;
}
.post-img:hover { filter: brightness(1.1); }

/* ========================================================
   4. BODY TEXT
   ======================================================== */
.content-section > div {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-100);
  white-space: pre-wrap;
  text-align: left;
}
.content-section p      { margin: 0 0 1.5rem; }
.content-section a      { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.content-section a:hover{ text-decoration: none; text-shadow: 0 0 8px rgba(89,220,225,0.4); }
.content-section img    { max-width: 100%; border-radius: .75rem; border: 1px solid var(--glass-border); margin: 1.5rem 0; }

/* ========================================================
   5. STACK UTILITIES
   ======================================================== */
.stack-sm > * + * { margin-top: 1rem;  }
.stack-md > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2rem;  }

/* ========================================================
   6. RESPONSIVE TWEAKS
   ======================================================== */
@media (max-width: 800px) {
  .content-section { padding: 2.5rem 1.75rem; }
  .post-img        { max-width: 100%; }
}
@media (max-width: 500px) {
  .content-section { padding: 2rem 1.25rem; }
  .content-section h2 { font-size: 1.8rem; }
}

/* End of post.css */
