/**
 * Pager Styling
 * Modern pagination design matching site theme
 */

/* Pager container */
.pager {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  padding: 1rem 0;
}

/* Pager items list */
.pager__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

/* Individual pager items */
.pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
}

/* Pager links */
.pager__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #18453b;
  background-color: #ffffff;
  border: 2px solid #18453b;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pager__item a:hover,
.pager__item a:focus {
  background-color: #18453b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(24, 69, 59, 0.2);
}

/* Active/current page */
.pager__item.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #18453b;
  border: 2px solid #18453b;
  border-radius: 0;
}

/* Previous/Next buttons */
.pager__item--previous a,
.pager__item--next a {
  font-size: 1.25rem;
  font-weight: 600;
}

/* First/Last buttons */
.pager__item--first a,
.pager__item--last a {
  font-size: 1rem;
  font-weight: 600;
}

/* Focus state for accessibility */
.pager__item a:focus {
  outline: 3px solid #18453b;
  outline-offset: 4px;
}

.pager__item a:focus-visible {
  outline: 3px solid #18453b;
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pager__item a {
    transition: none;
  }

  .pager__item a:hover,
  .pager__item a:focus {
    transform: none;
  }
}

/* Responsive - Mobile adjustments */
@media (max-width: 576px) {
  .pager {
    margin: 1.5rem 0;
  }

  .pager__items {
    gap: 0.375rem;
  }

  .pager__item,
  .pager__item a,
  .pager__item.is-active {
    min-width: 40px;
    min-height: 40px;
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
  }

  .pager__item--previous a,
  .pager__item--next a {
    font-size: 1.125rem;
  }
}
