/* ════════════════════════════════════
   INDIVIDUAL BLOG POST PAGE — post.css
════════════════════════════════════ */

/* ── POST HERO ── */
.post-hero {
  padding: 130px 6% 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.post-hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.post-hero-inner { max-width: 860px; }

.post-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--muted);
  margin-bottom: 20px;
}
.post-breadcrumb a { color: var(--accent); text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }

.post-cat-badge {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.post-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 28px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(201,168,76,0.12);
}
.post-author {
  display: flex; align-items: center; gap: 12px;
}
.post-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  color: #0a0a0a;
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.post-author-name {
  display: block;
  font-weight: 600; font-size: .88rem;
  color: var(--white);
}
.post-author-role {
  display: block;
  font-size: .75rem; color: var(--muted);
}
.post-meta-extras {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-left: auto;
}
.post-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--muted);
}
.post-meta-item svg { color: var(--accent); flex-shrink: 0; }

/* ── COVER IMAGE ── */
.post-cover {
  padding: 0 6%;
  margin-bottom: 0;
}
.post-cover-img {
  height: 780px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(201,168,76,0.2) 0%, transparent 65%),
    linear-gradient(135deg, #0f0a00, #1e1500, #0a0800);
  border: 1px solid rgba(201,168,76,0.12);
  display: flex; align-items: center; justify-content: center;
}
.post-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 50%);
}
.post-cover-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.post-cover-icon {
  font-size: 5rem;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.3));
  animation: coverFloat 4s ease-in-out infinite;
}
@keyframes coverFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── MAIN LAYOUT ── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 6% 80px;
  align-items: start;
}

/* ── ARTICLE ── */
.post-article { min-width: 0; }

.post-intro {
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(245,240,232,0.85);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.post-intro strong { color: var(--accent); }

/* TOC */
.post-toc {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.16);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px;
  margin-bottom: 44px;
}
.post-toc-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: .85rem;
  color: var(--accent);
  letter-spacing: .5px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.post-toc-list {
  list-style: none;
  counter-reset: toc;
  display: flex; flex-direction: column; gap: 8px;
}
.post-toc-list li { counter-increment: toc; }
.post-toc-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: .87rem;
  display: flex; align-items: center; gap: 10px;
  transition: color .2s;
}
.post-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: .7rem; font-weight: 700;
  color: rgba(201,168,76,0.4);
  flex-shrink: 0;
}
.post-toc-list a:hover,
.post-toc-list a.active { color: var(--accent); }

/* Sections */
.post-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}
.post-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  letter-spacing: -.5px;
}
.post-section-num {
  font-size: .72rem; font-weight: 800;
  color: var(--accent);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.post-section p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.post-section p strong { color: var(--white); }

/* Highlight box */
.post-highlight {
  display: flex; gap: 14px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
}
.post-highlight--warning {
  background: rgba(255,160,0,0.06);
  border-color: rgba(255,160,0,0.2);
}
.post-highlight-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.post-highlight strong { color: var(--white); }

/* Keyword pills */
.post-keyword-list {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0;
}
.post-keyword {
  display: flex; align-items: center; gap: 12px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--white);
}
.kw-tag {
  font-size: .68rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* Steps */
.post-steps {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0;
}
.post-step {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--muted);
}
.post-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  color: #0a0a0a;
  font-weight: 800; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.post-step strong { color: var(--white); }

/* Bullet list */
.post-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin: 16px 0 20px;
}
.post-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--muted);
  line-height: 1.65;
}
.post-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d080, #c9a84c);
  flex-shrink: 0; margin-top: 7px;
}

/* Takeaway */
.post-takeaway {
  display: flex; gap: 20px;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.04));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  padding: 28px;
}
.post-takeaway-icon { font-size: 1.8rem; flex-shrink: 0; }
.post-takeaway-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.post-takeaway-content p {
  color: var(--muted); font-size: .92rem; line-height: 1.75; margin: 0;
}

/* Tags */
.post-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 36px 0 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.post-tags-label {
  font-size: .8rem; color: var(--muted); font-weight: 600;
  margin-right: 4px;
}
.post-tag {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--accent);
  font-size: .75rem; font-weight: 600;
  padding: 4px 13px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.post-tag:hover { background: rgba(201,168,76,0.16); border-color: rgba(201,168,76,0.45); }

/* Share */
.post-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 36px;
}
.post-share-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .8rem; font-weight: 600;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
}
.post-share-btn:hover { transform: translateY(-2px); opacity: .85; }
.post-share-fb { background: #1877F2; color: #fff; }
.post-share-li { background: #0A66C2; color: #fff; }
.post-share-wa { background: #25D366; color: #fff; }

/* Author box */
.post-author-box {
  display: flex; gap: 22px;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 16px;
  padding: 28px;
}
.post-author-box-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  color: #0a0a0a;
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.post-author-box-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--white); margin-bottom: 2px;
}
.post-author-box-role {
  font-size: .78rem; color: var(--accent); margin-bottom: 10px; display: block;
}
.post-author-box p {
  font-size: .87rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px;
}
.post-author-box-socials { display: flex; gap: 10px; }
.post-author-box-socials a {
  font-size: .78rem; font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 12px; border-radius: 6px;
  transition: background .2s;
}
.post-author-box-socials a:hover { background: rgba(201,168,76,0.1); }

/* ── SIDEBAR ── */
.post-sidebar {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 100px;
}

.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-widget-title {
  font-family: 'Poppins', sans-serif;
  font-size: .82rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

/* CTA Widget */
.sidebar-cta {
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.04));
  border-color: rgba(201,168,76,0.28);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.sidebar-cta-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 150px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.15), transparent 70%);
  pointer-events: none;
}
.sidebar-cta-icon {
  font-size: 2rem; margin-bottom: 12px; display: block;
  position: relative; z-index: 1;
}
.sidebar-cta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
  position: relative; z-index: 1;
}
.sidebar-cta p {
  font-size: .84rem; color: var(--muted);
  line-height: 1.65; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.sidebar-cta-btn {
  display: block; text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  color: #0a0a0a;
  font-weight: 700; font-size: .85rem;
  text-decoration: none;
  transition: box-shadow .3s, transform .3s;
  position: relative; z-index: 1;
}
.sidebar-cta-btn:hover {
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
  transform: translateY(-2px);
}

/* Recent posts */
.sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post {
  display: flex; gap: 12px;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
  align-items: flex-start;
}
.sidebar-post:hover, .sidebar-post.active {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.18);
}
.sidebar-post-img {
  width: 56px; height: 46px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
.spi-1 { background: radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.4), #1a1000); }
.spi-2 { background: radial-gradient(ellipse at 60% 30%, rgba(240,208,128,0.35), #0d0b00); }
.spi-3 { background: radial-gradient(ellipse at 70% 60%, rgba(201,168,76,0.35), #0a0a0a); }
.spi-4 { background: radial-gradient(ellipse at 40% 50%, rgba(201,168,76,0.3), #100e00); }
.spi-5 { background: radial-gradient(ellipse at 55% 35%, rgba(240,208,128,0.3), #0d0b00); }
.sidebar-post-info { min-width: 0; }
.sidebar-post-cat {
  font-size: .65rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 3px;
}
.sidebar-post p {
  font-size: .8rem; color: var(--white);
  line-height: 1.4; margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-date { font-size: .7rem; color: var(--muted); }

/* Categories */
.sidebar-cats { display: flex; flex-direction: column; gap: 6px; }
.sidebar-cat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.08);
  text-decoration: none;
  font-size: .85rem; color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.sidebar-cat:hover { background: rgba(201,168,76,0.07); color: var(--accent); border-color: rgba(201,168,76,0.2); }
.sidebar-cat-count {
  background: rgba(201,168,76,0.1);
  color: var(--accent);
  font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
}

/* Tags cloud */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-tag {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--muted);
  font-size: .75rem;
  padding: 4px 11px; border-radius: 50px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.sidebar-tag:hover { background: rgba(201,168,76,0.14); color: var(--accent); border-color: rgba(201,168,76,0.4); }

/* Contact widget */
.sidebar-contact p { font-size: .84rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.sidebar-contact-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-contact-link {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--white); font-size: .84rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.sidebar-contact-link:hover { background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.3); }
.sidebar-contact-link svg { color: var(--accent); flex-shrink: 0; }

/* ── RELATED POSTS ── */
.related-posts {
  background: var(--bg2);
  padding: 80px 6%;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.related-posts-inner { max-width: 1200px; margin: 0 auto; }
.related-posts .section-tag { margin-bottom: 10px; }
.related-posts .section-title { margin-bottom: 40px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.23,1,.32,1), border-color .3s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 16px 48px rgba(201,168,76,0.1);
}
.related-card-img {
  height: 160px;
  position: relative;
}
.rimg-2 { background: radial-gradient(ellipse 70% 60% at 60% 30%, rgba(240,208,128,0.2), #0d0900); }
.rimg-3 { background: radial-gradient(ellipse 60% 50% at 70% 60%, rgba(201,168,76,0.18), #0a0a0a); }
.rimg-4 { background: radial-gradient(ellipse 75% 55% at 40% 50%, rgba(201,168,76,0.17), #0f0b00); }

.related-card-body { padding: 20px 22px 24px; flex: 1; }
.related-cat {
  font-size: .68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 8px;
}
.related-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem; font-weight: 700;
  color: var(--white); line-height: 1.45;
  margin-bottom: 10px;
  transition: color .2s;
}
.related-card:hover h3 { color: var(--accent); }
.related-date { font-size: .74rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-grid .related-card:last-child { display: none; }
}
@media (max-width: 640px) {
  .post-hero { padding: 110px 5% 40px; }
  .post-layout { padding: 40px 5% 60px; gap: 32px; }
  .post-cover { padding: 0 5%; }
  .post-cover-img { height: 220px; }
  .post-meta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .post-meta-extras { margin-left: 0; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid .related-card:last-child { display: flex; }
  .post-author-box { flex-direction: column; }
  .post-takeaway { flex-direction: column; gap: 12px; }
}
/* ── COVER SVG (replaces emoji) ── */
.post-cover-icon { display: none; }
.post-cover-svg {
  width: 100%; height: 100%;
  max-width: 700px;
  position: relative; z-index: 1;
  animation: coverFloat 5s ease-in-out infinite;
}

/* ── HIGHLIGHT ICON (SVG instead of emoji) ── */
.post-highlight-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.post-highlight--warning .post-highlight-icon {
  background: rgba(255,160,0,0.08);
  border-color: rgba(255,160,0,0.2);
}

/* ── TAKEAWAY ICON (SVG) ── */
.post-takeaway-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── SIDEBAR CTA ICON (SVG) ── */
.sidebar-cta-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: inherit;
  position: relative; z-index: 1;
}


.post-cover-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.12);
  display: block;
}
.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark overlay */
.post-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Optional pattern (remove if not needed) */
.post-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
