/* ============================================
   THE DIGITAL AKASHA — Blog / Akasha
   Loaded alongside style.css, not standalone.
   ============================================ */

/* --- Post Navigation --- */
.post-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: 20px 32px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.post-nav a {
  pointer-events: auto;
  color: rgba(208, 214, 228, 0.6);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
}

.post-nav a:hover {
  color: var(--cyan);
}

/* --- Blog Index --- */
.blog-header {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
  z-index: var(--z-content);
}

.blog-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-header .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(208, 214, 228, 0.6);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* --- Tag Filters --- */
.tag-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 24px 48px;
  position: relative;
  z-index: var(--z-content);
}

.tag-pill {
  padding: 6px 16px;
  border: 1px solid rgba(0, 229, 204, 0.12);
  border-radius: 20px;
  background: rgba(10, 10, 15, 0.5);
  color: rgba(208, 214, 228, 0.7);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.4s ease;
  -webkit-user-select: none;
  user-select: none;
}

.tag-pill:hover {
  border-color: rgba(0, 229, 204, 0.3);
  color: var(--silver);
}

.tag-pill.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 204, 0.08);
}

/* --- Post Cards (Index) --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: var(--z-content);
}

.post-card {
  position: relative;
  display: block;
  padding: 36px 32px 32px;
  border: 1px solid rgba(0, 229, 204, 0.08);
  border-radius: 12px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.6s ease, transform 0.6s ease;
}

.post-card:hover {
  border-color: rgba(0, 229, 204, 0.25);
  transform: translateY(-4px);
}

/* Halo */
.post-card__halo {
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--cyan-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

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

/* Shimmer border */
.post-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--cyan-glow) 50%, transparent 70%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: shimmer 3s ease-in-out infinite;
}

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

.post-card__date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(208, 214, 228, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: rgba(208, 214, 228, 0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-card__tag {
  font-size: 0.7rem;
  color: rgba(0, 229, 204, 0.5);
  letter-spacing: 0.04em;
}

/* Card hidden by filter */
.post-card.is-hidden {
  display: none;
}

/* --- Individual Post --- */
.post {
  position: relative;
  z-index: var(--z-content);
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.post__header {
  text-align: center;
  margin-bottom: 56px;
}

.post__header time {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(208, 214, 228, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post__header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-top: 16px;
}

.post__excerpt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(208, 214, 228, 0.7);
  margin-top: 20px;
  line-height: 1.6;
}

/* --- Post Body --- */
.post__body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--silver);
}

.post__body p {
  margin-bottom: 28px;
}

.post__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 56px 0 24px;
}

.post__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--white);
  margin: 40px 0 16px;
}

/* Blockquotes */
.post__body blockquote {
  border-left: 2px solid var(--cyan);
  padding: 4px 0 4px 24px;
  margin: 36px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(238, 240, 248, 0.85);
  line-height: 1.7;
}

/* Pull quotes */
.post__body .pull-quote {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  padding: 48px 0;
  margin: 48px 0;
  border: none;
  line-height: 1.4;
  animation: transmission-breathe 6s ease-in-out infinite;
}

/* Images */
.post__body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 32px 0;
}

.post__body .full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-radius: 0;
}

/* Horizontal rules */
.post__body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  margin: 48px 0;
  opacity: 0.5;
}

/* Code blocks */
.post__body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  background: rgba(0, 229, 204, 0.06);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
}

.post__body pre {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 229, 204, 0.1);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 32px 0;
}

.post__body pre code {
  background: none;
  padding: 0;
}

/* Lists */
.post__body ul, .post__body ol {
  padding-left: 24px;
  margin-bottom: 28px;
}

.post__body li {
  margin-bottom: 8px;
}

/* Links */
.post__body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 204, 0.2);
  transition: border-color 0.3s ease;
}

.post__body a:hover {
  border-bottom-color: var(--cyan);
}

/* --- Post Footer --- */
.post__footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 229, 204, 0.08);
}

.post__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post__tags a {
  font-size: 0.8rem;
  color: rgba(0, 229, 204, 0.5);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.post__tags a:hover {
  color: var(--cyan);
}

/* Post disclaimer reference */
.post__disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(192, 200, 216, 0.35);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.post__disclaimer a {
  color: rgba(192, 200, 216, 0.35);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 200, 216, 0.15);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.post__disclaimer a:hover {
  color: rgba(192, 200, 216, 0.6);
  border-bottom-color: rgba(192, 200, 216, 0.4);
}

/* --- Continue Exploring --- */
.post-continue {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: var(--z-content);
}

.post-continue__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(208, 214, 228, 0.5);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.post-continue__links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-continue__link {
  color: var(--silver);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.post-continue__link:hover {
  color: var(--cyan);
}

.post-continue__link--next {
  text-align: right;
  margin-left: auto;
}

/* --- Blog Index Footer --- */
.blog-footer {
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
  z-index: var(--z-content);
}

.blog-footer__sigil {
  font-size: 1.2rem;
  color: rgba(0, 229, 204, 0.15);
  letter-spacing: 0.3em;
}

.blog-footer__disclaimer {
  display: block;
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(192, 200, 216, 0.25);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.blog-footer__disclaimer:hover {
  color: rgba(192, 200, 216, 0.5);
}

.blog-footer__separator {
  margin: 0 8px;
  font-size: 0.75rem;
  color: rgba(192, 200, 216, 0.15);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .post {
    padding: 120px 20px 60px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }

  .post-card {
    padding: 28px 24px 24px;
  }

  .post-continue__links {
    flex-direction: column;
  }

  .post-continue__link--next {
    text-align: left;
  }
}
