/* =============================================
   post.css — Blog Detail Page
   MUHAZU Global
   Shared by all blog post pages.
   ============================================= */

html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }

/* ---- Reading Progress Bar ---- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #CCF045;
  z-index: 9998;
  width: 0%;
  transition: width 100ms linear;
}

/* ---- Scroll reveal ---- */
.pd-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms ease, transform 550ms ease;
  transition-delay: var(--pd-delay, 0ms);
}

.pd-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Load anims (header elements) ---- */
.pd-anim-1, .pd-anim-2, .pd-anim-3,
.pd-anim-4, .pd-anim-5 { opacity: 0; }

body.is-loaded .pd-anim-1 { animation: pd-fade 400ms ease forwards; animation-delay: 0ms; }
body.is-loaded .pd-anim-2 { animation: pd-slide 700ms ease forwards; animation-delay: 100ms; }
body.is-loaded .pd-anim-3 { animation: pd-fade 400ms ease forwards; animation-delay: 280ms; }
body.is-loaded .pd-anim-4 { animation: pd-scale 800ms ease forwards; animation-delay: 360ms; }
body.is-loaded .pd-anim-5 { animation: pd-slide-sm 500ms ease forwards; animation-delay: 520ms; }

@keyframes pd-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pd-slide {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pd-slide-sm {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pd-scale {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================= */
/* POST HEADER                                   */
/* ============================================= */

.post-header {
  background: #ffffff;
  padding: 100px 5% 40px;
}

.post-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 28px;
}

.post-breadcrumb a {
  color: #888888;
  text-decoration: none;
  transition: color 200ms ease;
}

.post-breadcrumb a:hover {
  color: #0D0D0D;
}

/* H1 */
.post-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 0 24px;
}

/* Decorative row (between H1 and featured image) */
.post-deco-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.deco-star {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.deco-label {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  color: #888888;
  letter-spacing: 0.5px;
}

/* Featured image */
.post-featured-figure {
  margin: 0 0 32px;
}

.post-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Author + date bar */
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 0;
  flex-wrap: wrap;
}

.author-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #CCF045;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0D0D0D;
}

.author-role {
  font-size: 0.78rem;
  color: #888888;
}

.meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #888888;
}

.date-icon {
  width: 15px;
  height: 15px;
  opacity: 0.6;
  flex-shrink: 0;
}

.post-tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #CCF045;
  color: #0D0D0D;
  padding: 3px 10px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .post-header { padding: 90px 5% 0; }
  .post-featured-image { border-radius: 10px; }
  .post-tag { margin-left: 0; }
}

/* ============================================= */
/* POST BODY                                     */
/* ============================================= */

.post-body-wrapper {
  background: #ffffff;
  padding: 0 5% 80px;
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: #3A3A3A;
}

.post-body h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.875rem);
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.25;
  margin: 52px 0 18px;
}

.post-body h2:first-child { margin-top: 0; }

.post-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #0D0D0D;
  line-height: 1.3;
  margin: 36px 0 12px;
}

.post-body p {
  margin-bottom: 24px;
}

.post-body p:last-child { margin-bottom: 0; }

.post-body a {
  color: #0D0D0D;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}

.post-body a:hover {
  text-decoration-color: #0D0D0D;
}

.post-body strong {
  font-weight: 600;
  color: #0D0D0D;
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
  margin-bottom: 24px;
}

.post-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.post-body ul li::marker { color: #CCF045; }

.post-body blockquote {
  border-left: 3px solid #CCF045;
  padding: 4px 0 4px 22px;
  margin: 36px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: #333333;
  line-height: 1.65;
}

.post-body img {
  width: 100%;
  border-radius: 12px;
  margin: 32px 0;
  display: block;
}

.post-body hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 48px 0;
}

/* ============================================= */
/* FEATURE CALLOUT BLOCKS                        */
/* ============================================= */

.callout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.callout-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  background: #F8F8F6;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
}

.callout-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.callout-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0D0D0D;
  margin: 0 0 6px;
  line-height: 1.35;
}

.callout-body {
  font-size: 0.82rem;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .callout-row { grid-template-columns: 1fr; }
}

/* ============================================= */
/* VIDEO BLOCK                                   */
/* ============================================= */

.video-block {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
}

.video-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease, opacity 400ms ease;
}

.video-trigger:hover .video-thumb {
  transform: scale(1.03);
  opacity: 0.85;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 300ms ease;
}

.video-trigger:hover .video-overlay {
  background: rgba(0,0,0,0.40);
}

.play-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 200ms ease;
}

.video-trigger:hover .play-btn-wrap {
  transform: scale(1.08);
}

.play-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #CCF045;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D0D0D;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  padding-left: 4px;
}

.play-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 350ms ease;
  background: #000;
}

.lightbox[aria-hidden="false"] .lightbox-content {
  transform: scale(1.0);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 200ms ease;
  z-index: 2;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
}

.lightbox-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================= */
/* INLINE CTA (dalam artikel)                    */
/* ============================================= */

.post-inline-cta {
  background: #0D0D0D;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.post-inline-cta-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.post-inline-cta-text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.post-inline-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #CCF045;
  color: #0D0D0D;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 200ms ease;
}

.post-inline-cta-btn:hover {
  background: #d4f55e;
}

@media (max-width: 600px) {
  .post-inline-cta { flex-direction: column; align-items: flex-start; }
  .post-inline-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================= */
/* RELATED POSTS SECTION                         */
/* ============================================= */

.related-section {
  background: #F9F9F7;
  padding: 80px 5%;
}

.related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.related-h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #0D0D0D;
  margin: 0 0 40px;
  max-width: 520px;
  line-height: 1.25;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Related card (inherits blog card design) */
.rel-card {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.rel-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.rel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.rel-card:hover .rel-card-img img {
  transform: scale(1.04);
}

.rel-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rel-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rel-meta-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #CCF045;
  color: #0D0D0D;
  padding: 2px 7px;
  border-radius: 3px;
}

.rel-card-date {
  font-size: 0.72rem;
  color: #AAAAAA;
}

.rel-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0D0D0D;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0D0D0D;
  margin-top: auto;
}

.rel-link-arrow {
  transition: transform 200ms ease;
  display: inline-block;
}

.rel-card:hover .rel-link-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .related-grid    { grid-template-columns: 1fr; }
  .related-section { padding: 56px 5%; }
}

/* ============================================= */
/* CTA BANNER                                    */
/* ============================================= */

.post-cta {
  background: #0D0D0D;
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post-cta::before {
  content: 'LINDUNGI';
  position: absolute;
  bottom: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 800;
  color: #ffffff;
  opacity: 0.025;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.post-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.post-cta-h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}

.post-cta-h2 br { display: block; }

.post-cta-para {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0;
  line-height: 1.7;
}

.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #CCF045;
  color: #0D0D0D;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.post-cta-btn:hover {
  background: #d4f55e;
  box-shadow: 0 8px 28px rgba(204,240,69,0.3);
}

@media (max-width: 600px) {
  .post-cta     { padding: 64px 5%; }
  .post-cta-h2  { font-size: 1.5rem; }
  .post-cta-h2 br { display: none; }
  .post-cta-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-reveal { transition: none; opacity: 1; transform: none; }
  .pd-anim-1, .pd-anim-2, .pd-anim-3,
  .pd-anim-4, .pd-anim-5 { opacity: 1; animation: none; }
  .reading-progress { display: none; }
}
