/* KALCHA post.css — Single post styles */

/* POST HERO */
.post-hero {
  background: var(--black);
  padding: calc(var(--nav-h) + 72px) var(--px) 72px;
}
.post-hero-inner {
  max-width: 740px;
  margin: 0 auto;
}
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.post-back {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color .2s;
}
.post-back:hover { color: var(--white); }
.post-cat-badge {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(27,63,228,0.2);
  color: rgba(100,140,255,0.9);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 24px;
}
.post-excerpt {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 580px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.post-byline-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.post-byline-meta {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* HERO IMAGE */
.post-hero-img {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.post-hero-img-inner {
  height: clamp(280px, 45vw, 540px);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.post-hero-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* POST BODY */
.post-body {
  padding: clamp(56px, 8vh, 96px) var(--px);
  background: var(--white);
}
.post-body-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* TYPOGRAPHY */
.post-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2a2a2a;
  font-weight: 300;
  margin-bottom: 24px;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--black);
  margin: 52px 0 20px;
  line-height: 1.05;
}
.post-content blockquote {
  border-left: 3px solid var(--blue);
  margin: 40px 0;
  padding: 4px 0 4px 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--black);
  font-style: italic;
  font-weight: 400;
}
.bq-mark, .bq-end {
  font-family: var(--font-serif);
  color: var(--blue);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
}
.bq-mark { margin-right: 4px; }
.bq-end { margin-left: 4px; }
.post-content ul {
  margin: 16px 0 24px 0;
}
.post-content ul li {
  font-size: 1rem;
  line-height: 1.8;
  color: #2a2a2a;
  font-weight: 300;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.post-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* POST FOOTER */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.07);
  flex-wrap: wrap;
}
.post-footer-left { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--off-white);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-share-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
  cursor: none;
}
.post-share-btn:hover { border-color: var(--blue); color: var(--blue); }

/* RELATED */
.post-related {
  padding: clamp(56px, 8vh, 96px) var(--px);
  background: var(--off-white);
}
.post-related-inner { max-width: var(--max-w); margin: 0 auto; }
.post-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 0;
}
.related-card {
  display: flex;
  flex-direction: column;
  cursor: none;
}
.related-img {
  height: 240px;
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  transition: transform .5s var(--ease);
}
.related-card:hover .related-img { transform: scale(1.02); }
.related-img img { width: 100%; height: 100%; object-fit: cover; }

.related-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--black);
  margin: 6px 0 8px;
  line-height: 1.1;
}
.related-info p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .post-hero { padding: calc(var(--nav-h) + 48px) var(--px) 56px; }
  .post-title { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .post-body { padding: 48px var(--px); }
  .post-content p { font-size: 0.95rem; }
  .post-content h2 { font-size: 1.6rem; margin: 36px 0 16px; }
  .post-hero-img-inner { margin-top: -24px; }
  .post-related-grid { grid-template-columns: 1fr; }
  .related-img { height: 200px; }
}
@media(max-width: 520px) {
  .post-footer { flex-direction: column; align-items: flex-start; }
  .post-hero-img-inner { border-radius: var(--r-lg); }
}
