/* VaultNX Blog Custom Stylesheet */

.blog-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cat-pill {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

/* Blog Post Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.blog-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-card2);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-card-title a:hover {
  color: var(--blue);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Single Post View */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #0d9488);
  transition: width 0.1s ease-out;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.article-header {
  padding: 40px 0 24px;
  max-width: 820px;
  margin: 0 auto;
}

.article-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
  color: var(--blue);
}

.article-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.article-cover-container {
  max-width: 820px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  background: var(--bg-card2);
}

.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content > p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 4px;
  color: var(--blue);
}

.article-content p {
  margin-bottom: 1.75rem;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 2.5rem 0 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-dim);
}

.article-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-content ul, .article-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.75rem;
}

.article-content li {
  margin-bottom: 0.6rem;
}

.article-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--bg-panel);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.article-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 2rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

/* Attachment Card */
.attachment-card {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-card2));
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attachment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.attachment-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-dim);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.attachment-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.attachment-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.attachment-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.attachment-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Author Bio Card */
.author-card {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.author-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Reactions & Social Share Bar */
.post-actions-bar {
  max-width: 820px;
  margin: 36px auto;
  padding: 20px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.reactions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-reaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reaction:hover {
  background: var(--bg-card2);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}

.btn-reaction.active-like {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.btn-reaction.active-dislike {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.share-twitter:hover {
  background: #1da1f2;
  color: #ffffff;
  border-color: #1da1f2;
}

.share-btn.share-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.share-btn.share-facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.share-btn.share-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.share-btn.share-copy:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}

/* Comments Section */
.comments-section {
  max-width: 820px;
  margin: 50px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.comment-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.comment-card:hover {
  border-color: var(--border-hi);
}

.comment-card.reply {
  margin-left: 40px;
  background: var(--bg-card);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.comment-form {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 36px;
}

.comment-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.comment-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.page-link {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.page-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.page-link.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

@media (max-width: 640px) {
  .comment-form-grid {
    grid-template-columns: 1fr;
  }
  
  .attachment-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .author-card {
    flex-direction: column;
    text-align: center;
  }
}

