/* Blog module specific styles */

/* Social Media Comments Button */
.social-comments-section {
  display: flex;
  justify-content: flex-start;
}

.social-comments-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #fff;
}

.social-comments-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-comments-btn i {
  font-size: 1.2rem;
}

/* Platform-specific styles */
.social-twitter {
  background-color: #000;
}
.social-twitter:hover {
  background-color: #333;
}

.social-linkedin {
  background-color: #0077B5;
}
.social-linkedin:hover {
  background-color: #0069a6;
}

.social-facebook {
  background-color: #1877F2;
}
.social-facebook:hover {
  background-color: #0e6ad3;
}

.social-github {
  background-color: #24292e;
}
.social-github:hover {
  background-color: #3a3f45;
}

.social-reddit {
  background-color: #FF4500;
}
.social-reddit:hover {
  background-color: #e03d00;
}

.social-other {
  background-color: #6c757d;
}
.social-other:hover {
  background-color: #5a6268;
}

/* Blog Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Category Filter */
.category-filter-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
}

.category-filter-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.category-filter-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-pill:hover {
  background-color: hsl(var(--muted-foreground) / 0.1);
  color: hsl(var(--primary));
  text-decoration: none;
}

.category-pill.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Blog Cards */
.blog-card {
  display: flex;
  flex-direction: column;
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: hsl(var(--accent) / 0.3);
}

.blog-card-image {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background-color: hsl(var(--muted));
  border-radius: var(--radius) var(--radius) 0 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-date-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  z-index: 2;
}

.date-day {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 0.25rem;
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-title a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-title a:hover {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.blog-excerpt {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Blog Card Footer */
.blog-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Category Filter Styling */
.blog-filters {
  margin-bottom: 2rem;
}

/* Blog Tag Styling */
.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: hsl(var(--muted) / 0.5);
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  font-weight: 500;
  cursor: default;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.read-more:hover {
  color: hsl(var(--accent-foreground));
  text-decoration: none;
}

.read-more svg {
  transition: transform 0.2s ease;
}

.read-more:hover svg {
  transform: translateX(4px);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--card));
  padding: 0.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-item:hover {
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  text-decoration: none;
}

.pagination-item.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.pagination-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.pagination-nav {
  background-color: hsl(var(--muted));
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: hsl(var(--muted-foreground));
}

/* Blog post detail */
.blog-header {
  margin-bottom: 2rem;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.blog-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.blog-content blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding-left: 1rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: hsl(var(--muted-foreground));
}

.blog-content pre {
  background-color: hsl(var(--muted));
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content code {
  font-family: monospace;
  background-color: hsl(var(--muted));
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.blog-content pre code {
  background-color: transparent;
  padding: 0;
}

/* Blog sidebar */
.blog-sidebar {
  position: sticky;
  top: 6rem;
}

.blog-sidebar-section {
  margin-bottom: 2rem;
}

.blog-sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-category:hover {
  color: hsl(var(--primary));
}

.blog-category-count {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-tag {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.blog-tag:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Blog pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.pagination-link.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

/* Blog Post Detail Page */
.back-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
  margin-bottom: 2rem;
  display: inline-block;
}

.back-link:hover {
  color: hsl(var(--foreground));
}

.blog-post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: hsl(var(--accent-foreground) / 0.1);
  color: hsl(var(--primary));
  border-radius: 2rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-category:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.blog-post-hero-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-post-intro {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
  font-weight: 500;
}

.blog-post-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem;
  scroll-margin-top: 100px;
}

.blog-post-paragraph {
  margin-bottom: 1.5rem;
}

.blog-post-figure {
  margin: 2rem 0;
}

.blog-post-figure figcaption {
  text-align: center;
  margin-top: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

/* Code Block */
.code-block {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.code-header {
  background-color: hsl(var(--muted));
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid hsl(var(--border));
}

.code-language {
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  background-color: hsl(var(--card));
  overflow-x: auto;
  scrollbar-width: thin;
}

.code-block code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Table of Contents */
.toc-sidebar {
  position: sticky;
  top: 2rem;
}

.toc-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.toc-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.75rem;
}

.toc-link {
  color: hsl(var(--foreground));
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.toc-link:hover {
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

/* Tags */
.blog-post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.tags-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-radius: 2rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-tag:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Comments Section */
.blog-comments-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.comment-form-container {
  margin-bottom: 3rem;
}

.comment-item {
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.nested-replies {
  margin-top: 0.75rem;
  margin-left: 2rem;
  border-left: 2px solid hsl(var(--accent));
  padding-left: 1rem;
  padding-top: 0.25rem;
  position: relative;
}

.same-level-reply {
  margin-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.2);
  padding-top: 0.75rem;
  margin-left: 0;
  border-left: none;
}

.nested-reply-item {
  padding: 1rem 0 0.75rem 0;
  background-color: transparent;
  border-radius: 0;
  margin-bottom: 0.75rem;
  position: relative;
  margin-left: 0;
}

.nested-reply-item:before {
  display: none;
}

/* Table of Contents Styling */
/* Desktop TOC */
@media (min-width: 992px) {
  .toc-sidebar {
    position: sticky;
    top: 2rem;
  }
}

/* Mobile TOC */
@media (max-width: 991px) {
  .toc-sidebar {
    position: relative;
    margin: 0 -1rem 2rem;
    padding: 0 1rem;
    width: calc(100% + 2rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.toc-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Mobile TOC Card */
@media (max-width: 991px) {
  .toc-card {
    padding: 1rem;
    margin-bottom: 1rem;
    width: fit-content;
    min-width: 100%;
  }
}

.toc-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.75rem;
}

/* Nested TOC Styling */
.toc-level-2 {
  margin-left: 0;
}

.toc-level-3 {
  margin-left: 1rem;
  font-size: 0.95em;
}

.toc-level-4 {
  margin-left: 2rem;
  font-size: 0.9em;
}

.toc-level-5 {
  margin-left: 3rem;
  font-size: 0.85em;
}

.toc-level-6 {
  margin-left: 4rem;
  font-size: 0.8em;
}

.toc-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: hsl(var(--primary));
  background-color: hsl(var(--accent) / 0.1);
  text-decoration: none;
}

/* Visual indicators for TOC hierarchy */
.toc-level-3 .toc-link {
  position: relative;
}

.toc-level-3 .toc-link::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 50%;
  width: 0.25rem;
  height: 0.25rem;
  background-color: hsl(var(--muted-foreground) / 0.5);
  border-radius: 50%;
  transform: translateY(-50%);
}

.toc-level-4 .toc-link::before,
.toc-level-5 .toc-link::before,
.toc-level-6 .toc-link::before {
  width: 0.2rem;
  height: 0.2rem;
  background-color: hsl(var(--muted-foreground) / 0.4);
}

.reply-indicator {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  font-style: italic;
  margin-left: 0.25rem;
  display: inline-block;
}

.reply-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mention {
  color: hsl(var(--accent));
  font-weight: 500;
  margin-right: 0.25rem;
}

.reply-header {
  margin-bottom: 0.75rem;
}

.reply-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.reply-author {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.reply-indicator {
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

.replied-to {
  color: hsl(var(--accent));
  font-weight: 500;
}

.reply-date {
  color: hsl(var(--muted-foreground));
  margin-left: auto;
}

.reply-content {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  border-left: 2px solid hsl(var(--accent) / 0.3);
}

.comment-actions {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.reply-link {
  color: hsl(var(--accent));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.reply-link:hover {
  text-decoration: underline;
  color: hsl(var(--accent));
}

.reply-link:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.comment-header {
  margin-bottom: 1rem;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-author {
  font-weight: 600;
  font-size: 1.05rem;
  color: hsl(var(--foreground));
}

.comment-date {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  margin-left: auto;
}

.comment-content {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid hsl(var(--accent) / 0.2);
}

.no-comments {
  padding: 2rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted) / 0.1);
  border-radius: var(--radius);
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.related-posts-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

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

@media (min-width: 992px) {
  .related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-post-card {
  display: flex;
  flex-direction: column;
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: transform 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-5px);
}

.related-post-image {
  aspect-ratio: 16/9;
  background-color: hsl(var(--muted));
  position: relative;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: hsl(var(--muted-foreground));
}

.related-post-content {
  padding: 1rem;
}

.related-post-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.related-post-title a {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.related-post-title a:hover {
  color: hsl(var(--accent));
}

.related-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}