/* ================================
   Haberler Sayfası - 250ginfo
   ================================ */

/* Hero */
.news-hero {
  padding: 32px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f4fdf0 40%, rgba(139, 239, 81, 0.13) 80%, rgba(139, 239, 81, 0.22) 100%);
  border-bottom: 3px solid rgba(139, 239, 81, 0.35);
  position: relative;
}
.news-hero h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}
.news-hero p {
  color: var(--color-text-light);
  font-size: 0.938rem;
}

/* Layout */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Featured News Item */
.news-featured-item {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-bottom: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}
.news-featured-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.news-featured-item .news-featured-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.news-featured-item .news-featured-body {
  padding: 24px;
}
.news-featured-item .news-featured-body h2 {
  font-size: 1.375rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.news-featured-item .news-featured-body h2 a {
  color: var(--color-dark-deep);
  text-decoration: none;
}
.news-featured-item .news-featured-body h2 a:hover {
  color: var(--color-accent);
}
.news-featured-item .news-featured-body p {
  color: var(--color-text-light);
  font-size: 0.938rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* News List Item */
.news-list-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-bottom: 4px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}
.news-list-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.news-list-item-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.news-list-item-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-list-item-body .news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.news-list-item-body .news-meta .badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(139, 239, 81, 0.15);
  color: var(--color-dark-deep);
}
.news-list-item-body .news-meta .badge-topic {
  background: rgba(255, 102, 0, 0.1);
  color: var(--color-accent);
}
.news-list-item-body .news-meta time {
  font-size: 0.813rem;
  color: var(--color-text-muted);
}
.news-list-item-body .news-meta .read-time {
  font-size: 0.813rem;
  color: var(--color-text-muted);
}
.news-list-item-body h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
  line-height: 1.4;
}
.news-list-item-body h3 a {
  color: var(--color-dark-deep);
  text-decoration: none;
}
.news-list-item-body h3 a:hover {
  color: var(--color-accent);
}
.news-list-item-body p {
  color: var(--color-text-light);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-item-body .read-more {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.news-list-item-body .read-more:hover {
  text-decoration: underline;
}

/* Sidebar */
.news-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.news-sidebar .sidebar-widget {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-bottom: 4px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 16px;
}
.news-sidebar .sidebar-widget h3 {
  font-size: 0.938rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

/* Search Input */
.news-sidebar .search-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.news-sidebar .search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Category & Topic List */
.news-sidebar .category-list,
.news-sidebar .topic-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-sidebar .category-list a,
.news-sidebar .topic-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s;
}
.news-sidebar .category-list a:hover,
.news-sidebar .topic-list a:hover {
  background: rgba(139, 239, 81, 0.08);
  color: var(--color-dark-deep);
}
.news-sidebar .category-list a.active,
.news-sidebar .topic-list a.active {
  background: var(--color-primary);
  color: var(--color-dark-deep);
  font-weight: 600;
}
.news-sidebar .category-list a span,
.news-sidebar .topic-list a span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 10px;
}
.news-sidebar .category-list a.active span,
.news-sidebar .topic-list a.active span {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-dark-deep);
}

/* Recent List */
.news-sidebar .recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-sidebar .recent-list a {
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  display: block;
}
.news-sidebar .recent-list a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.news-sidebar .recent-list a:hover {
  color: var(--color-accent);
}

/* Ad Space */
.news-sidebar .ad-space {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.813rem;
}

/* Pagination */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}
.news-pagination button {
  padding: 8px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}
.news-pagination button:hover {
  border-color: var(--color-primary);
  background: rgba(139, 239, 81, 0.08);
}
.news-pagination button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark-deep);
  font-weight: 700;
}
.news-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Loading */
.news-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}
.news-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  .news-list-item {
    grid-template-columns: 1fr;
  }
  .news-list-item-img {
    height: 200px;
  }
  .news-featured-item .news-featured-img {
    height: 200px;
  }
  .news-sidebar {
    position: static;
  }
  .news-hero h1 {
    font-size: 1.375rem;
  }
}
