/* ===== Blog View Page Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;600;700&amp;display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif Bengali', serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.8;
}

/* Header */
.blog-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

.back-btn:hover {
  color: #764ba2;
}

.logo img {
  height: 50px;
  width: auto;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.share-btn:hover {
  transform: scale(1.1);
}

/* Main Layout */
.blog-main {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

/* Article */
.blog-article {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Category Tag */
.blog-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Title */
.blog-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* Meta */
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 32px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.publish-date {
  font-size: 0.9rem;
  color: #666;
}

.blog-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 0.95rem;
}

.stat-item i {
  color: #667eea;
}

/* Featured Image */
.featured-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Blog Content */
.blog-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #2d3748;
}

.blog-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 20px;
  line-height: 1.4;
}

.blog-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 16px;
}

.blog-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
}

.blog-content ul,
.blog-content ol {
  margin: 20px 0 20px 40px;
}

.blog-content li {
  margin-bottom: 12px;
  padding-left: 8px;
}

.blog-content blockquote {
  border-left: 4px solid #667eea;
  background: #f8f9ff;
  padding: 20px 24px;
  margin: 32px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  color: #555;
}

.blog-content a {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.3s;
}

.blog-content a:hover {
  color: #764ba2;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
  margin: 40px 0;
}

.tag-label {
  font-weight: 700;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag {
  background: #f0f0f0;
  color: #555;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
}

.tag:hover {
  background: #667eea;
  color: #fff;
}

/* Share Section */
.share-section {
  margin: 40px 0;
  text-align: center;
}

.share-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.share-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-button.facebook { background: #1877f2; }
.share-button.twitter { background: #000; }
.share-button.whatsapp { background: #25d366; }
.share-button.telegram { background: #0088cc; }
.share-button.messenger { background: #00b2ff; }
.share-button.linkedin { background: #0077b5; }

/* Author Bio */
.author-bio {
  display: flex;
  gap: 20px;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  border: 2px solid #e8ecff;
  border-radius: 12px;
  padding: 32px;
  margin-top: 40px;
}

.author-bio-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #667eea;
}

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

.author-bio-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.author-bio-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.author-social {
  display: flex;
  gap: 12px;
}

.author-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.author-social a:hover {
  background: #764ba2;
  transform: scale(1.1);
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
}

/* Related/Popular Posts */
.related-post,
.popular-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 8px;
  padding: 12px;
}

.related-post:last-child,
.popular-post:last-child {
  border-bottom: none;
}

.related-post:hover,
.popular-post:hover {
  background: #f8f9ff;
}

.post-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-info {
  flex: 1;
}

.post-info-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-info-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #999;
}

.post-info-meta i {
  color: #667eea;
}

/* Categories List */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9ff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: #333;
}

.category-item:hover {
  background: #667eea;
  color: #fff;
  transform: translateX(4px);
}

.category-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-count {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

/* Footer */
.blog-footer {
  background: #2d3748;
  color: #fff;
  padding: 32px 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-main {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    order: 2;
  }

  .blog-article {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .blog-article {
    padding: 24px;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .blog-content {
    font-size: 1.05rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .author-social {
    justify-content: center;
  }

  .back-btn span {
    display: none;
  }

  .logo img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .blog-main {
    padding: 0 16px;
    margin: 20px auto;
  }

  .blog-article {
    padding: 20px;
    border-radius: 12px;
  }

  .blog-title {
    font-size: 1.5rem;
  }

  .author-avatar {
    width: 48px;
    height: 48px;
  }

  .author-name {
    font-size: 1rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  .share-buttons {
    gap: 8px;
  }

  .share-button {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .sidebar-widget {
    padding: 20px;
  }
}
