/* ============================================================
   RIFAT MAHMUD PORTFOLIO — blog-post.css
   Individual blog post page styles
   ============================================================ */

/* ── Post Hero ─────────────────────────────────────────────── */
.post-hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.post-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,22,40,0) 0%, rgba(10,22,40,0.6) 100%),
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(232,48,42,0.06) 0%, transparent 70%);
  background-color: var(--navy);
}
.post-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.post-hero__back:hover { color: var(--cream); }
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.post-hero__date,
.post-hero__read {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.post-hero__date::before,
.post-hero__read::before {
  content: '·';
  margin-right: 0.5rem;
  opacity: 0.5;
}
.post-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 2rem;
}
.post-hero__title em {
  font-style: italic;
  color: var(--gold);
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.post-hero__author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--slate2);
  border: 2px solid rgba(212,168,67,0.3);
  flex-shrink: 0;
}
.post-hero__author strong {
  display: block;
  color: var(--cream);
  font-size: 0.95rem;
}
.post-hero__author span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.03em;
}

/* ── Post Layout ──────────────────────────────────────────── */
.post-layout {
  padding: 4rem 0 6rem;
}
.post-layout__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.post-sidebar__sticky {
  position: sticky;
  top: 6rem;
}
.post-sidebar__label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.post-toc {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 2.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255,255,255,0.08);
}
.post-toc__link {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.35rem 0 0.35rem 0.75rem;
  margin-left: -0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.post-toc__link:hover,
.post-toc__link.active {
  color: var(--gold);
  border-left-color: var(--gold);
}
.post-sidebar__share {
  margin-top: 0.5rem;
}
.post-sidebar__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  margin-top: 0.5rem;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}
.post-sidebar__share-btn:hover {
  color: var(--cream);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

/* ── Article Body ─────────────────────────────────────────── */
.post-article {
  max-width: 720px;
}
.post-article section {
  margin-bottom: 0.5rem;
  scroll-margin-top: 5rem;
}
.post-article__lead {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.post-article p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.3rem;
}
.post-article p em { color: var(--gold); font-style: italic; }
.post-article p strong { color: var(--cream); }

.post-article h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
}

/* Divider */
.post-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,168,67,0.2), transparent);
  margin: 3rem 0;
}

/* Lists */
.post-list {
  margin: 1rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.post-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}
.post-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.6rem;
}
.post-list li strong { color: var(--cream); }

/* Callout boxes */
.post-callout {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  align-items: flex-start;
}
.post-callout--gold {
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.22);
}
.post-callout--red {
  background: rgba(232,48,42,0.07);
  border: 1px solid rgba(232,48,42,0.2);
}
.post-callout__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}
.post-callout div {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}
.post-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cream);
  font-size: 0.88rem;
}
.post-callout--gold strong { color: var(--gold); }
.post-callout--red strong  { color: #f87171; }

/* Numbered steps */
.post-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.post-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--slate);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.post-step__num {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: rgba(212,168,67,0.25);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: right;
}
.post-step__content h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.post-step__content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Sector examples */
.post-examples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.post-example {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}
.post-example__sector {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.post-example p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Author CTA block */
.post-cta {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate2), var(--slate));
  border: 1px solid rgba(212,168,67,0.2);
}
.post-cta__inner {
  padding: 2.5rem;
}
.post-cta__label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem !important;
}
.post-cta__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.post-cta__author-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--slate2);
  border: 2px solid rgba(212,168,67,0.3);
  flex-shrink: 0;
}
.post-cta__author strong {
  display: block;
  font-size: 1rem;
  color: var(--cream);
}
.post-cta__author span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--ff-mono);
}
.post-cta__body {
  font-size: 0.92rem !important;
  color: var(--muted) !important;
  margin-bottom: 1.75rem !important;
  line-height: 1.7 !important;
}
.post-cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Post navigation */
.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.post-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.post-nav__back:hover { color: var(--cream); }

/* ── Post Hero Banner Photo ───────────────────────────────── */
.post-hero-photo {
  background: var(--slate);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.post-hero-photo__img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Inline post photos ──────────────────────────────────── */
.post-photo {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.post-photo__img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.post-photo:hover .post-photo__img {
  transform: scale(1.02);
}
.post-photo__caption {
  background: var(--slate);
  padding: 0.65rem 1rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-layout__inner {
    grid-template-columns: 1fr;
  }
  .post-sidebar { display: none; }
  .post-article { max-width: 100%; }
}
@media (max-width: 640px) {
  .post-hero { padding: 7rem 0 3.5rem; }
  .post-hero__title { font-size: 2rem; }
  .post-step { flex-direction: column; gap: 0.75rem; }
  .post-step__num { width: auto; text-align: left; }
  .post-cta__author { flex-direction: column; text-align: center; align-items: center; }
  .post-cta__actions { flex-direction: column; }
  .post-cta__actions .btn { width: 100%; justify-content: center; }
  .post-hero-photo__img { max-height: 260px; }
  .post-photo__img { max-height: 240px; }
}
