/* =============================================================
   LUMORA — Blog styles
   blog grid · post card · single-post reading view
   ============================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-card); }
.post-card .thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.post-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,5,15,0.6));
}
.post-card .thumb .chip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
}
.post-card .pad { padding: 22px; }
.post-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.post-card .meta { color: var(--text-mute); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.post-card .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-mute); }

/* Featured post (homepage / blog hero) */
.post-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 0;
}
@media (max-width: 900px) { .post-feature { grid-template-columns: 1fr; } }
.post-feature .thumb { aspect-ratio: 16/10; }
.post-feature .body { padding: 40px; }
@media (max-width: 640px) { .post-feature .body { padding: 28px; } }

/* Tag chip list */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Single post reading view ---------- */
.post-hero {
  text-align: center;
  padding: 64px 0 32px;
}
.post-hero .tag-row { justify-content: center; margin-bottom: 20px; }

.post-cover {
  aspect-ratio: 21/9;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 0 auto 48px;
  max-width: 1080px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-card);
}

.prose {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
}
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 28px;
  margin-top: 56px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.prose p, .prose ul, .prose ol, .prose blockquote { color: var(--text-dim); }
.prose a {
  color: var(--pink-2);
  text-decoration: underline;
  text-decoration-color: rgba(255,77,157,.45);
  text-underline-offset: 3px;
}
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul li, .prose ol li { margin: .4em 0; }
.prose blockquote {
  border-left: 3px solid var(--pink);
  padding: 8px 0 8px 24px;
  font-style: italic;
  color: var(--text);
  background: rgba(255, 77, 157, 0.04);
  border-radius: 0 12px 12px 0;
}
.prose code {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: .9em;
  color: var(--pink-2);
}
.prose img { border-radius: var(--r-md); margin: 32px auto; }

/* Post meta strip */
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-mute);
  font-size: 14px;
  flex-wrap: wrap;
}
.post-meta .author-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.post-meta .author-pill .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--aurora);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: #fff;
}
.post-meta .author-pill .name { color: var(--text); font-weight: 600; }

/* Table of contents / share rail */
.post-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-rail .rail-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  font-size: 16px;
  transition: background .25s, transform .25s;
}
.post-rail .rail-btn:hover { background: var(--glass-strong); transform: translateY(-2px); border-color: var(--pink); color: var(--pink-2); }

/* Newsletter inline */
.newsletter {
  background: radial-gradient(600px 400px at 50% 0%, rgba(168, 85, 247, 0.22), transparent 60%), var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: center;
}
@media (max-width: 640px) { .newsletter { padding: 28px 22px; } }
.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 24px auto 0;
}
.newsletter input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text);
  outline: none;
}
.newsletter input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,77,157,.18); }
@media (max-width: 540px) { .newsletter form { flex-direction: column; align-items: stretch; } }
