/**
 * Rifnote Post Listings and Styles
 *
 * Styles for the [rifnote_news_list] shortcode.
 */
.rifnote-news-list-wrapper {
  --rpls-theme-color: #ed1c24; /* Define a theme color variable */
  background: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  border: 1px solid #e9e9e9;
  margin-bottom: 1.5em;
}

.rifnote-news-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.rifnote-news-list-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* Filter Styles */
.rifnote-news-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* For responsiveness */
}

.rpls-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rpls-filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rpls-filter-group select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 13px;
  min-width: 150px; /* Give the dropdowns a consistent width */
}

.rifnote-news-list.loading .rifnote-news-list-posts {
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

.rifnote-news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rifnote-news-item:last-child {
  border-bottom: none;
}

.rifnote-news-time {
  font-size: 12px;
  color: #999;
}

.rifnote-news-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.rifnote-news-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rifnote-news-title a:hover {
  color: var(--rpls-theme-color);
}

.rifnote-news-content {
  flex-grow: 1;
}

.rifnote-news-trending-icon {
  margin-left: 8px;
  line-height: 1;
  font-size: 1.1em;
  cursor: help;
}

/* Override default reaction button styles for this compact context */
.rifnote-news-item .rpls-reaction-wrapper {
  margin: 0;
  padding: 0;
  border: none;
}

.rifnote-news-item .rifnote-news-reactions {
  flex-shrink: 0;
  line-height: 1; /* Helps align the fire icon vertically */
}

.rifnote-news-item .rpls-reaction-button {
  padding: 0;
  border: none;
  background: none;
  color: #555;
}

/* Pagination Styles */
.rifnote-news-pagination {
  margin-top: 20px;
  padding-bottom: 10px;
  text-align: center;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.rifnote-news-pagination .rpls-news-nav-button {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #555;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rifnote-news-pagination .rpls-news-nav-button:hover:not(:disabled) {
  border-color: var(--rpls-theme-color);
}

.rifnote-news-pagination .rpls-news-nav-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
