/**
 * Category Pages Styles
 * 
 * Styles for category archive pages with hero image and search
 */

/* Category Hero Styles */
.category-hero {
  margin-bottom: 2rem;
}

.category-hero img {
  transition: transform 0.3s ease;
}

.category-hero:hover img {
  transform: scale(1.02);
}

/* Category Search Styles */
.category-search {
  margin-bottom: 3rem;
}

.category-search .search-form:focus-within {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.category-search input[type="search"] {
  transition: all 0.2s ease-in-out;
}

.category-search input[type="search"]:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2);
}

/* Category Posts Grid */
.category-posts article {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-posts article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.category-posts .article-image {
  overflow: hidden;
}

.category-posts .article-image img {
  transition: transform 0.5s ease;
}

.category-posts .article-image:hover img {
  transform: scale(1.05);
}

/* Category Tag Pills */
.category-tag {
  display: inline-block;
  background-color: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease;
}

.category-tag:hover {
  background-color: rgba(8, 145, 178, 0.2);
}

/* Pagination Styles */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  margin: 0 0.25rem;
  border-radius: 0.375rem;
  background-color: white;
  color: #4b5563;
  font-weight: 500;
  /* border: 1px solid #e5e7eb; */
  transition: all 0.2s ease;
}
/* 
.pagination .page-numbers:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
} */

.pagination .page-numbers.current {
  background-color: #0891b2;
  color: white;
  border-color: #0891b2;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  padding: 0 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .category-hero h1 {
    font-size: 1.5rem;
  }

  .pagination .page-numbers {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

/* No Results Styles */
.no-results {
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.no-results h2 {
  color: #1f2937;
  margin-bottom: 1rem;
}

.no-results p {
  color: #4b5563;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.article-meta img {
  border-radius: 9999px;
  margin-right: 0.5rem;
}

.article-meta time {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid #e5e7eb;
}

/* Read More Link */
.read-more {
  display: inline-flex;
  align-items: center;
  color: #0891b2;
  font-weight: 500;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #0e7490;
}

.read-more svg {
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

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