/* blog-new.css — blog list + blog detail page styles. Theme comes from theme.css. */

/* ---------- shared page scaffolding ---------- */
.blog-page {
  padding: 140px 0 100px; /* clears the fixed navbar */
  min-height: 60vh;
}
.blog-page-header {
  margin-bottom: 56px;
}

/* ---------- blog list: post cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt, #111111);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 62, 201, 0.45);
}
.post-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-cover img {
  transform: scale(1.04);
}
.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  gap: 12px;
}
.post-card-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text, #F5F5F5);
}
.post-card-title a {
  color: inherit;
}
.post-card-title a:hover {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.post-card-read {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.post-card-read i {
  -webkit-text-fill-color: #FF6F3C;
  margin-left: 6px;
  font-size: 0.8rem;
}
.blog-empty {
  color: rgba(245, 245, 245, 0.6);
  font-size: 1.05rem;
}

/* ---------- blog detail: article ---------- */
.article {
  max-width: 800px;
  margin: 0 auto;
}
.article-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.article-back {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.7);
  transition: color 0.2s ease;
}
.article-back:hover { color: var(--text, #F5F5F5); }
.article-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
  text-align: right;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.article-cover {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
}

/* typography for the sanitized post HTML (p,h2,h3,h4,ul,ol,li,strong,em,a,blockquote,br) */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(245, 245, 245, 0.85);
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text, #F5F5F5);
  margin: 1.8em 0 0.6em;
  line-height: 1.2;
}
.article-body h2 { font-size: 1.9rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.2rem; }
.article-body ul,
.article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--text, #F5F5F5); font-weight: 600; }
.article-body a {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(238, 62, 201, 0.5);
}
.article-body blockquote {
  border-left: 3px solid #EE3EC9;
  padding: 4px 0 4px 20px;
  margin: 0 0 1.4em;
  font-style: italic;
  color: rgba(245, 245, 245, 0.75);
}

@media (max-width: 768px) {
  .blog-page { padding: 110px 0 70px; }
  .article-top { flex-direction: column; align-items: flex-start; }
  .article-meta { text-align: left; }
}
