
/* --- PREMIUM BLOG HERO --- */
.post-hero {
  position: relative;
  padding: 140px 1.5rem 3rem 1.5rem; /* Clears fixed navbar */
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.post-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% -20%, rgba(124, 58, 237, 0.15) 0%, rgba(3, 7, 17, 0) 70%);
  z-index: -2;
}

.post-hero-accent {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  height: 200px;
  background: var(--primary, #7c3aed);
  filter: blur(100px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

.post-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-breadcrumb a {
  color: var(--text, #f3f4f6);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.post-breadcrumb a:hover {
  color: var(--primary, #a855f7);
}

.post-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.2);
}

.post-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted, #9ca3af);
  margin-top: 1.5rem;
}

.post-cat-badge {
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.8rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text, #f3f4f6);
  font-weight: 500;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
}

.post-meta-dot {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .post-hero {
    padding: 100px 1rem 2rem 1rem;
  }
}

/* blog-premium.css */

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }
}

main {
  min-width: 0;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .post-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
    height: max-content;
  }
}

.sidebar-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sidebar-card h4 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text, #f4f4f5);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

/* TOC Styling */
#dynamic-sidebar-toc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#dynamic-sidebar-toc a {
  color: var(--text-muted, #a1a1aa);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  line-height: 1.4;
}

#dynamic-sidebar-toc a:hover,
#dynamic-sidebar-toc a.active {
  color: #10b981;
  padding-left: 4px;
}

/* Related Articles Styling */
#dynamic-related-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text, #f4f4f5);
  transition: transform 0.2s ease;
  font-size: 0.95rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.related-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.rel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Share Section */
.share-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.share-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text, #f4f4f5);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.twitter:hover { background: #1a91da; }

.share-btn.facebook { background: #1877f2; }
.share-btn.facebook:hover { background: #166fe5; }

.share-btn.linkedin { background: #0a66c2; }
.share-btn.linkedin:hover { background: #0958a8; }

.share-btn.copy-link { 
  background: rgba(255, 255, 255, 0.1); 
  color: var(--text, #f4f4f5);
}
.share-btn.copy-link:hover { 
  background: rgba(255, 255, 255, 0.15); 
}

/* Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.newsletter-box h3 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: inherit;
  outline: none;
}

.newsletter-form input:focus {
  border-color: #a855f7;
}

/* Post CTA */
.post-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-card, rgba(255, 255, 255, 0.02));
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .post-cta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.post-cta h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.post-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Mobile TOC */
.mobile-toc {
  display: block;
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .mobile-toc { display: none; }
}
.mobile-toc-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem;
  color: var(--text, #f4f4f5);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-toc-list {
  display: none;
  padding: 0 1rem 1rem 1rem;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-toc-list.show {
  display: flex;
}
.mobile-toc-list a {
  color: var(--text-muted, #a1a1aa);
  text-decoration: none;
  font-size: 0.9rem;
}
.mobile-toc-list a:hover {
  color: #10b981;
}

