/* =========================================================
   BLOG DETAILS PAGE
   ========================================================= */

/* =========================================================
   ARTICLE
   ========================================================= */

.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.blog-details .post-img {
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 16px;
}

.blog-details .post-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.blog-details .title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1.5rem;
}

/* =========================================================
   META
   ========================================================= */

.meta-top ul,
.meta-bottom .cats,
.meta-bottom .tags {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-top ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-top ul li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.meta-top i {
  color: var(--accent-color);
}

.meta-bottom {
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.meta-bottom i {
  color: var(--accent-color);
  margin-right: 0.4rem;
}

.meta-bottom .cats li,
.meta-bottom .tags li {
  display: inline-block;
  margin-right: 0.5rem;
}

.meta-bottom a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.meta-bottom a:hover {
  color: var(--accent-color);
}

/* =========================================================
   POST CONTENT / QUILL
   ========================================================= */

.blog-details .post-content {
  line-height: 1.9;
  font-size: 1.05rem;
  color: #444;
  margin-top: 2rem;
}

.blog-details .post-content p {
  margin-bottom: 1.25rem;
}

.blog-details .post-content h1,
.blog-details .post-content h2,
.blog-details .post-content h3,
.blog-details .post-content h4,
.blog-details .post-content h5,
.blog-details .post-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.blog-details .post-content ul,
.blog-details .post-content ol {
  padding-left: 2rem;
  margin-bottom: 1.25rem;
}

.blog-details .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
}

.blog-details .post-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 12px;
  margin: 2rem 0;
}

.blog-details .post-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #555;
}

.blog-details .post-content pre {
  background: #111827;
  color: #f9fafb;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-details .post-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* =========================================================
   QUILL ALIGNMENTS
   ========================================================= */

.blog-details .post-content .ql-align-center {
  text-align: center;
}

.blog-details .post-content .ql-align-right {
  text-align: right;
}

.blog-details .post-content .ql-align-justify {
  text-align: justify;
}

.blog-details .post-content .ql-size-small {
  font-size: 0.75em;
}

.blog-details .post-content .ql-size-large {
  font-size: 1.5em;
}

.blog-details .post-content .ql-size-huge {
  font-size: 2.5em;
}

/* =========================================================
   SHARE BUTTONS
   ========================================================= */

.share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-buttons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f4f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #444;
  text-decoration: none;
  transition: all 0.25s ease;
}

.share-buttons a:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   BLOG SIDEBAR
   ========================================================= */

@media (min-width: 992px) {
  .blog-sidebar .widgets-container {
    position: sticky;
    top: 100px;
  }
}

/* =========================================================
   BLOG CARDS
   ========================================================= */

.blog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   SIDEBAR WIDGETS
   ========================================================= */

.blog-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.blog-author-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.blog-social-links a {
  font-size: 1.1rem;
  margin: 0 0.4rem;
  color: #555;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.blog-social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.blog-hover-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-hover-link:hover {
  color: var(--accent-color) !important;
}

/* =========================================================
   TAGS
   ========================================================= */

.tags-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background: #f4f4f4;
  color: #333;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: all 0.25s ease;
}

.tag-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.tag-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* =========================================================
   RELATED POSTS
   ========================================================= */

.related-posts .card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.related-posts .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.related-posts .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-posts .card-title a {
  text-decoration: none;
  color: #111827;
}

.related-posts .card-title a:hover {
  color: var(--accent-color);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .blog-details .article {
    padding: 20px;
  }

  .blog-details .title {
    font-size: 2rem;
  }

  .blog-details .post-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .meta-top ul {
    gap: 0.75rem;
  }

  .share-buttons {
    margin-top: 1rem;
  }
}
