/* استایل‌های صفحه اخبار */

.news-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--accent-green);
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin: 0 0 10px 0;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* فیلتر دسته‌بندی */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  background-color: white;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-green);
  color: white;
}

/* جستجو */
.search-box {
  margin-bottom: 30px;
}

.search-box input {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: var(--accent-green);
}

/* لیست اخبار */
.news-list-container {
  margin-bottom: 40px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.news-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-item-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-content {
  padding: 20px;
}

.news-item-category {
  display: inline-block;
  background-color: var(--accent-green);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.news-item-title {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.news-item-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.news-item-title a:hover {
  color: var(--accent-green);
}

.news-item-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.news-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #999;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-state h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
}

/* دکمه افزودن خبر */
.add-news-btn-container {
  text-align: center;
  margin-top: 40px;
}

.add-news-btn {
  display: inline-block;
  background-color: var(--accent-green);
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.add-news-btn:hover {
  background-color: var(--primary-green);
}

@media (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr;
  }
  
  .category-filters {
    justify-content: flex-start;
  }
  
  .filter-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

