/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *# require_tree .
 *= require_self
 */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Line clamp utilities for truncating text */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* will_paginate Tailwind styling */
.pagination-container .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-container .pagination a,
.pagination-container .pagination span {
  min-width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.pagination-container .pagination a {
  background-color: white;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.pagination-container .pagination a:hover {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1);
}

.pagination-container .pagination .current {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem 1rem;
  background-color: #e11d48;
  color: white;
  font-weight: 700;
  border: 1px solid #be123c;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px 0 rgb(225 29 72 / 0.3);
}

.pagination-container .pagination .disabled {
  background-color: #f9fafb;
  color: #d1d5db;
  cursor: not-allowed;
  border: 1px solid #e5e7eb;
}

.pagination-container .pagination .gap {
  padding: 0 0.25rem;
  color: #9ca3af;
  font-weight: 400;
}
