/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Kaminari Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination .page-item {
  list-style: none;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination .page-link:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.pagination .page-item.active .page-link {
  background-color: #111827;
  border-color: #111827;
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: #9ca3af;
  pointer-events: none;
  opacity: 0.5;
}

.pagination .prev,
.pagination .next {
  font-size: 0;
}

.pagination .prev::before {
  content: "‹";
  font-size: 1.125rem;
  font-weight: 600;
}

.pagination .next::before {
  content: "›";
  font-size: 1.125rem;
  font-weight: 600;
}

/* Line Clamp Utility */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
