/* ========================================
   SINGLE POST PAGE STYLES - REVAMPED
======================================== */

.single-post-page {
  background: #f8fafc;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container-narrow { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .container-narrow { padding: 0 1rem; }
}

/* ========================================
   HEADER - Dark Hero
======================================== */
/* Header spacer (72px) exists for fixed navbar - keep it.
   Top padding here only needs to add breathing room below it. */

.single-post-header {
  padding: 3rem 0 4rem;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f50 30%, #2563eb 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-top: 0;
}

.single-post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(0,217,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(0,217,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.single-post-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, #f8fafc, transparent);
  pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  padding: 0.625rem 1.25rem;
  background: rgba(255,255,255,0.07);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  width: fit-content;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.08);
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.breadcrumb a:hover { color: #fff; }
.breadcrumb a svg { flex-shrink: 0; }

.breadcrumb .separator {
  color: rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
}

.breadcrumb .separator svg { flex-shrink: 0; }

.breadcrumb .current {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .breadcrumb {
    font-size: 0.8125rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
  .breadcrumb .current { max-width: 180px; }
}

/* Post Meta */
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.post-category {
  background: linear-gradient(135deg, var(--accent) 0%, #5a67d8 100%);
  color: #fff;
  padding: 0.4rem 1.125rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(102,126,234,0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post-category:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102,126,234,0.5);
}

.single-post-header .post-date {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.single-post-header .post-date svg { color: rgba(255,255,255,0.35); }

/* Title */
.single-post-header .post-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: -0.03em;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .single-post-header .post-title { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .single-post-header { padding: 2.5rem 0 3rem; }
  .single-post-header .post-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .single-post-header { padding: 2rem 0 2.5rem; }
  .single-post-header .post-title {
    font-size: 1.625rem;
    letter-spacing: -0.02em;
  }
}

/* Author Info */
.post-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  width: fit-content;
}

.post-author-info:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.author-avatar { flex-shrink: 0; position: relative; }

.author-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(102,126,234,0.5);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-author-info:hover .author-avatar::after { opacity: 1; }

.author-avatar img {
  border-radius: 50%;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.author-name {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.author-name a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.author-name a:hover { color: var(--accent); }

.post-reading-time {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-reading-time svg { color: rgba(255,255,255,0.35); }

@media (max-width: 480px) {
  .post-author-info { padding: 0.875rem 1rem; width: 100%; }
  .author-avatar img { width: 40px; height: 40px; }
  .author-name { font-size: 0.875rem; }
}

/* ========================================
   FEATURED IMAGE - Overlapping Card
======================================== */
.single-post-featured-image {
  position: relative;
  margin-top: -50px;
  margin-bottom: 2.5rem;
  z-index: 2;
}

.single-post-featured-image .container-narrow {
  position: relative;
  max-width: 960px;
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.16), 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
}

.single-post-featured-image:hover img {
  transform: scale(1.003);
  box-shadow: 0 20px 54px rgba(0,0,0,0.2), 0 8px 18px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .single-post-featured-image { margin-top: -35px; margin-bottom: 2rem; }
  .single-post-featured-image img { border-radius: 12px; max-height: 320px; }
}

@media (max-width: 480px) {
  .single-post-featured-image { margin-top: -25px; }
  .single-post-featured-image img { border-radius: 10px; max-height: 240px; }
}

/* ========================================
   POST CONTENT AREA
======================================== */
.single-post-content {
  background: #fff;
  padding: 3rem 0 3.5rem;
  position: relative;
}

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #5a67d8 50%, #8b5cf6 100%);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 0 2px 2px 0;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 3.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.single-post-main { min-width: 0; }
.post-content-wrapper { max-width: 760px; }

/* ========================================
   TYPOGRAPHY
======================================== */
.single-post-content p {
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  color: #374151;
}

.single-post-content .post-content-wrapper > p:first-of-type::first-letter {
  font-size: 3.2em;
  font-weight: 800;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--accent);
  font-family: Georgia, 'Times New Roman', serif;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0f172a;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.single-post-content h2 {
  font-size: 1.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}

.single-post-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 45px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #5a67d8);
}

.single-post-content h3 { font-size: 1.5rem; color: #1e293b; }
.single-post-content h4 { font-size: 1.25rem; color: #334155; }

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 1.75rem;
  padding-left: 0;
  line-height: 1.85;
}

.single-post-content ul { list-style: none; }

.single-post-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.single-post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.single-post-content ol { counter-reset: item; list-style: none; }

.single-post-content ol li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.5rem;
  color: #374151;
  counter-increment: item;
}

.single-post-content ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #5a67d8 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.single-post-content li { margin-bottom: 0.5rem; color: #374151; }

.single-post-content blockquote {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.125rem;
  color: #475569;
  border-radius: 0 10px 10px 0;
  position: relative;
}

.single-post-content blockquote::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: -5px;
  left: 12px;
  font-family: Georgia, serif;
  line-height: 1;
}

.single-post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(102,126,234,0.3);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.single-post-content a:hover {
  color: #5a67d8;
  text-decoration-color: #5a67d8;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.single-post-content img:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.single-post-content figure { margin: 2rem 0; }

.single-post-content figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.625rem;
}

.single-post-content code {
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: 'Monaco','Menlo','Courier New', monospace;
  font-size: 0.85em;
  color: #db2777;
  border: 1px solid #e2e8f0;
}

.single-post-content pre {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  padding: 2.75rem 1.75rem 1.75rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  border: 1px solid #334155;
  position: relative;
}

.single-post-content pre::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 16px 0 0 #eab308, 32px 0 0 #22c55e;
}

.single-post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  border: none;
  font-size: 0.85rem;
  line-height: 1.65;
}

.page-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-links a,
.page-links > span {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: #f8fafc;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-links a:hover { background: var(--accent); color: #fff; }

/* ========================================
   SIDEBAR
======================================== */
.single-post-sidebar { position: relative; }

.sidebar-widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.sidebar-widget:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.sidebar-widget .widget-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.sidebar-widget .widget-title svg { color: var(--accent); flex-shrink: 0; }

.sticky-widget { position: sticky; top: 80px; }

/* TOC */
#toc-container { list-style: none; padding: 0; margin: 0; }

#toc-container a {
  display: block;
  padding: 0.4rem 0;
  color: #64748b;
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  padding-left: 0.875rem;
}

#toc-container a.toc-sub-heading { padding-left: 1.625rem; }

#toc-container a:hover,
#toc-container a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: #f8fafc;
}

/* Share Buttons Widget */
.share-buttons-widget {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.single-post-sidebar .share-btn-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: flex-start;
}

.single-post-sidebar .share-btn-widget svg { flex-shrink: 0; width: 14px; height: 14px; }
.single-post-sidebar .share-btn-widget.twitter { background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%); }
.single-post-sidebar .share-btn-widget.facebook { background: linear-gradient(135deg, #1877f2 0%, #0a5dcf 100%); }
.single-post-sidebar .share-btn-widget.linkedin { background: linear-gradient(135deg, #0077b5 0%, #005582 100%); }
.single-post-sidebar .share-btn-widget.copy-link-widget { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }

.single-post-sidebar .share-btn-widget:hover {
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.single-post-sidebar .share-btn-widget.copy-link-widget.copied {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Categories */
.categories-list { list-style: none; padding: 0; margin: 0; }
.categories-list li { margin-bottom: 0.375rem; }
.categories-list li:last-child { margin-bottom: 0; }

.categories-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.categories-list a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

.category-count {
  background: #e2e8f0;
  color: #64748b;
  padding: 0.125rem 0.4rem;
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.categories-list a:hover .category-count {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* Related Posts (sidebar) */
.related-posts-list { list-style: none; padding: 0; margin: 0; }

.related-post-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}

.related-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-widget .related-post-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.sidebar-widget .related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumb img { transform: scale(1.1); }

.related-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.sidebar-widget .related-post-content h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.sidebar-widget .related-post-content h4 a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-widget .related-post-content h4 a:hover { color: var(--accent); }

.sidebar-widget .related-post-date {
  font-size: 0.6875rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sidebar-widget .related-post-date svg {
  color: #94a3b8;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
}

/* Newsletter */
.newsletter-widget {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-color: #e0e7ff;
}

.newsletter-widget p {
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0.875rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.8125rem;
  transition: border-color 0.2s ease;
  background: #fff;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.08);
}

.newsletter-form .btn-primary { width: 100%; }
.newsletter-form .btn-small { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }

/* Responsive Layout */
@media (max-width: 1200px) {
  .single-post-layout { grid-template-columns: 1fr 270px; gap: 2.5rem; }
  .sticky-widget { top: 80px; }
}

@media (max-width: 1024px) {
  .single-post-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .single-post-sidebar { max-width: 700px; margin: 0 auto; }
  .sticky-widget { position: relative; top: 0; }
  .post-content-wrapper { max-width: 100%; }
}

@media (max-width: 768px) {
  .single-post-layout { padding: 0 1.5rem; gap: 2rem; }
  .sidebar-widget { padding: 1.25rem; }
  .single-post-content { padding: 2rem 0 2.5rem; }
}

/* ========================================
   STICKY SOCIAL SHARE
======================================== */
.social-share-sidebar {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 100;
}

.social-share-sidebar .share-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-share-sidebar .share-btn:hover {
  transform: translateX(3px) scale(1.05);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

@media (max-width: 1280px) {
  .social-share-sidebar { display: none; }
}

/* ========================================
   POST FOOTER
======================================== */
.single-post-footer {
  background: #fff;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.125rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.post-tags strong {
  color: #1e293b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  color: #475569;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-tag::before {
  content: '#';
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.15rem;
}

.post-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(102,126,234,0.2);
}

.post-tag:hover::before { color: #fff; }

.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.125rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.post-share strong {
  color: #1e293b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.share-btn:hover::before { width: 100%; height: 100%; }

.share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
}

.share-btn.twitter { background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%); }
.share-btn.facebook { background: linear-gradient(135deg, #1877f2 0%, #0a5dcf 100%); }
.share-btn.linkedin { background: linear-gradient(135deg, #0077b5 0%, #005582 100%); }

.share-btn.copy-link {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  border: none;
  cursor: pointer;
}

.share-btn.copy-link:active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* ========================================
   POST NAVIGATION
======================================== */
.post-navigation-section {
  background: #fff;
  padding: 2.5rem 0;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.nav-previous,
.nav-next {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-previous::before,
.nav-next::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-previous:hover::before,
.nav-next:hover::before { transform: scaleY(1); }

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.nav-previous { text-align: left; }
.nav-next { text-align: right; }

.nav-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.375rem;
}

.nav-previous a,
.nav-next a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  display: block;
  transition: color 0.2s ease;
}

.nav-previous a:hover,
.nav-next a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .post-navigation { grid-template-columns: 1fr; gap: 1rem; }
  .nav-next { text-align: left; }
}

/* ========================================
   AUTHOR BIO
======================================== */
.author-bio {
  background: #fff;
  padding: 2.5rem 0;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
}

.author-bio-content {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.author-bio-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5a67d8);
}

.author-bio-avatar { flex-shrink: 0; }

.author-bio-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.author-bio-text { flex: 1; }

.author-bio-text h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
  color: #0f172a;
  font-weight: 700;
}

.author-bio-text p {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
}

.author-posts-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  padding: 0.4rem 0.875rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.author-posts-link:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(3px);
  box-shadow: 0 3px 8px rgba(102,126,234,0.2);
}

@media (max-width: 768px) {
  .author-bio-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .author-bio-avatar { margin: 0 auto; }
}

/* ========================================
   RELATED POSTS (Bottom)
======================================== */
.related-posts {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 3rem 0;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
}

.related-posts-title {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  color: #0f172a;
  position: relative;
  padding-bottom: 0.875rem;
}

.related-posts-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5a67d8);
  border-radius: 2px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
  position: relative;
}

.related-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5a67d8);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 1;
}

.related-post-card:hover::before { transform: scaleX(1); }

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(102,126,234,0.25);
}

.related-post-card .related-post-thumb {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.related-post-card .related-post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.related-post-card:hover .related-post-thumb::after { opacity: 1; }

.related-post-card .related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-post-card:hover .related-post-thumb img { transform: scale(1.06); }

.related-post-card .related-post-content { padding: 1.25rem; }

.related-post-card .related-post-content h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
  line-height: 1.35;
  font-weight: 700;
}

.related-post-card .related-post-content h3 a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-post-card .related-post-content h3 a:hover { color: var(--accent); }

.related-post-card .related-post-date {
  font-size: 0.75rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.related-post-card .related-post-date svg { color: #94a3b8; }

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

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

/* ========================================
   COMMENTS
======================================== */
.comments-section {
  background: #fff;
  padding: 2.5rem 0;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
}

.comments-area { margin-top: 1.5rem; }

.comments-title {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
  color: var(--text);
}

.comment-list { list-style: none; padding: 0; margin: 0 0 2rem 0; }

.comment-list .comment {
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.comment-list .children {
  list-style: none;
  margin-left: 2rem;
  margin-top: 1.25rem;
}

.comment-author img {
  border-radius: 50%;
  float: left;
  margin-right: 0.875rem;
}

.comment-metadata {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.comment-metadata a { color: #94a3b8; text-decoration: none; }
.comment-metadata a:hover { color: var(--accent); }
.comment-content p { margin-bottom: 0.75rem; line-height: 1.65; }
.reply { margin-top: 0.75rem; }

.reply a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
}

.reply a:hover { text-decoration: underline; }

.comment-respond {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.comment-reply-title { font-size: 1.25rem; margin-bottom: 1rem; }
.comment-form p { margin-bottom: 1rem; }

.comment-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.08);
}

.comment-form textarea { min-height: 130px; resize: vertical; }
.form-submit { margin-top: 0.75rem; }

.no-comments {
  text-align: center;
  padding: 1.5rem;
  color: #94a3b8;
  font-style: italic;
}

/* ========================================
   GLOBAL OVERRIDES
======================================== */
.blog-archive .site-main,
.single-post-page .site-main { background: #f8fafc; }

.blog-header,
.shop-header { padding-top: 5rem; margin-top: 0; }

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, #5a67d8 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(102,126,234,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(102,126,234,0.4);
}

.back-to-top-btn:active { transform: translateY(-1px); }

@media (max-width: 768px) {
  .back-to-top-btn { right: 1rem; bottom: 1rem; width: 40px; height: 40px; }
}