/*
 * 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.
 */

/* Font Configuration */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #111827;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.font-display {
  font-family: 'Barlow', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Better text rendering for small text */
.text-sm, .text-xs {
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Improved button typography */
button, .btn {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Ward List Highlight Animation */
.ward-sidebar-item.highlighted {
  background-color: #dbeafe !important;
  border-left: 4px solid #3b82f6;
  transition: all 0.3s ease;
  transform: translateX(4px);
}

.ward-sidebar-item {
  transition: all 0.3s ease;
}



.newspaper-masthead {
  font-family: 'Barlow', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.newspaper-rule {
  border-top: 1px solid #a8a29e; /* stone-400 */
}

.newspaper-rule-thick {
  border-top: 3px double #78716c; /* stone-500 */
}

.newspaper-section-header {
  font-family: 'Barlow', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #78716c; /* stone-500 */
  border-bottom: 1px solid #d6d3d1; /* stone-300 */
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Front page specific */
.newspaper-dateline {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #57534e; /* stone-600 */
}

.newspaper-dispatch {
  border-bottom: 1px solid #e7e5e4; /* stone-200 */
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.newspaper-dispatch:last-child {
  border-bottom: none;
}

.newspaper-sidebar-link {
  transition: background-color 0.1s ease;
}

.newspaper-sidebar-link:hover {
  background-color: #f5f5f4; /* stone-100 */
}

.prabhag-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.prabhag-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Kaminari pagination */
nav.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-top: 1px solid #d6d3d1;
  padding-top: 1rem;
}

nav.pagination a,
nav.pagination span.page,
nav.pagination span.gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  color: #57534e;
  transition: background-color 0.1s ease;
}

nav.pagination a:hover {
  background-color: #f5f5f4;
  color: #1c1917;
}

nav.pagination span.page.current {
  background-color: #1c1917;
  color: #ffffff;
}

nav.pagination span.prev a,
nav.pagination span.next a {
  font-weight: 700;
  letter-spacing: 0.02em;
}
