
/* Pagination styles */

.pagination-nav {
  margin-top: 2rem;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: #374151;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #fdf2f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 25, 66, 0.15);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9fafb;
  color: #9ca3af;
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(249, 25, 66, 0.25);
}

.pagination-btn.active:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Page number buttons */
.pagination-number {
  min-width: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
  background: white;
  color: #374151;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.pagination-number:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #fdf2f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 25, 66, 0.15);
}

.pagination-number.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(249, 25, 66, 0.25);
}

.pagination-number.active:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Ellipsis */
.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  color: #9ca3af;
  font-weight: 500;
  cursor: default;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  
  .pagination-number {
    min-width: 40px;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
  
  .pagination-ellipsis {
    min-width: 40px;
    height: 40px;
  }
}

/* Results count styling */
.results-info {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Sort dropdown styling */
#sortSelect {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: white;
  color: #374151;
  transition: all 0.2s ease;
}

#sortSelect:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 25, 66, 0.1);
}

/* Loading state for pagination */
.pagination-loading {
  opacity: 0.6;
  pointer-events: none;
}

.pagination-loading .pagination-btn {
  cursor: wait;
}

/* =
=================== PAGE DESCRIPTION SECTION ==================== */
.page-description-container {
  position: relative;
  padding: 2rem;
}

.page-description-content {
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.page-description-content.expanded {
  max-height: none;
  overflow: visible;
}

/* Gradient fade effect when collapsed */
.page-description-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.page-description-content.expanded::after {
  opacity: 0;
}

.page-description-toggle {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 140px;
}

.toggle-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 25, 66, 0.25);
}

.toggle-btn:active {
  transform: translateY(0);
}

.toggle-icon {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* Prose styling for description content */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h2 {
  color: #111827;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.prose p {
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-description-container {
    padding: 1.5rem;
  }

  .page-description-content {
    max-height: 200px;
  }

  .prose h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .prose p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .toggle-btn {
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
    min-width: 120px;
  }
}

/* Animation for smooth expansion */
@keyframes expandContent {
  from {
    max-height: 250px;
  }

  to {
    max-height: 1000px;
  }
}

@keyframes collapseContent {
  from {
    max-height: 1000px;
  }

  to {
    max-height: 250px;
  }
}

.page-description-content.expanding {
  animation: expandContent 0.5s ease-in-out forwards;
}

.page-description-content.collapsing {
  animation: collapseContent 0.5s ease-in-out forwards;
}

