/* استایل‌های مربوط به وبلاگ */

/* کارت مقالات */
.article-box {
  height: 19rem;
  width: 100%;
  cursor: pointer;
  border-radius: 0.5rem;
  background-color: #ffffff;
  padding: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition-duration: 300ms;
}

.article-box:hover {
  transform: translateY(-0.5rem);
}

.dark .article-box {
  background-color: #1f2937;
}

.article-box_img {
  height: 10rem;
  width: 100%;
  border-bottom-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .article-box_img {
    height: 180px;
  }
}

/* استایل برای افکت هاور روی تصویر */
.article-box .img-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms;
  border-bottom-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.article-box:hover .img-overlay {
  opacity: 1;
}

.article-box .read-more-btn {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  gap: 0.25rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 2px solid white;
  color: white;
}

/* فیلترها */
.blog-filter-box {
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dark .blog-filter-box {
  background-color: #1f2937;
}

.blog-filter-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-size: 1.125rem;
  width: 100%;
  padding: 0 0.5rem;
}

.blog-filter-section {
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.dark .blog-filter-section {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.blog-filter-section:last-child {
  border-bottom: none;
}

/* صفحه‌بندی */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.blog-pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  transition-duration: 300ms;
}

.blog-pagination-item:hover {
  background-color: #1f2937;
  color: white;
}

.dark .blog-pagination-item:hover {
  background-color: var(--primary-500);
}

.blog-pagination-item.active {
  background-color: var(--primary-500);
  color: white;
}

/* جزئیات مقاله */
.blog-post-header {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  border-radius: 0.75rem;
  margin-bottom: 2.5rem;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  opacity: 0.9;
  flex-wrap: wrap;
}

.blog-post-category {
  background: var(--primary-500);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.blog-post-category:hover {
  background: #2563eb;
}

.blog-post-content {
  background: white;
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 2.5rem;
}

.dark .blog-post-content {
  background-color: #1f2937;
}

/* استایل برای فیلترهای موبایل */
.blog-mobile-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.dark .blog-mobile-filter-btn {
  border-color: rgba(255, 255, 255, 0.1);
}

.blog-mobile-filter-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background-color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 300ms;
}

.dark .blog-mobile-filter-modal {
  background-color: #1f2937;
}

.blog-mobile-filter-modal.active {
  transform: translateY(0);
}

.blog-mobile-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .blog-mobile-filter-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
