/* news-feed.css — News Aggregator Dashboard Styles */

/* --- Hero --- */
.nf-hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  color: var(--clr-white);
  padding: 2.5rem 0 2rem;
}

.nf-hero h1 {
  color: var(--clr-white);
  font-size: 2rem;
  margin-bottom: .5rem;
}

.nf-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 680px;
}

/* --- Source Badges Bar --- */
.nf-sources-bar {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: 1.25rem 0;
}

.nf-sources-grid {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nf-source-badge {
  display: flex;
  flex-direction: column;
  flex: 1 0 150px;
  min-width: 150px;
  padding: .65rem .85rem;
  border-left: 3px solid var(--badge-clr, var(--clr-navy));
  background: var(--clr-bg);
  border-radius: 0 4px 4px 0;
  text-decoration: none;
  transition: background .15s;
}

.nf-source-badge:hover {
  background: rgba(27,42,74,.06);
}

.nf-source-badge strong {
  font-size: .85rem;
  color: var(--clr-navy);
}

.nf-source-badge span {
  font-size: .72rem;
  color: var(--clr-text-light);
  line-height: 1.3;
}

/* --- Dashboard Controls --- */
.nf-controls {
  margin-bottom: 1.25rem;
}

.nf-search-wrap {
  margin-bottom: 1rem;
}

.nf-search {
  max-width: 420px;
}

.nf-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nf-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}

.nf-filter-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-text-light);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: .25rem;
}

/* --- Pills --- */
.nf-pill {
  display: inline-block;
  padding: .3rem .7rem;
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--clr-text-light);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}

.nf-pill:hover {
  border-color: var(--pill-clr, var(--clr-navy));
  color: var(--pill-clr, var(--clr-navy));
}

.nf-pill--active {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
}

.nf-pill--active:hover {
  background: var(--clr-navy-light);
  border-color: var(--clr-navy-light);
  color: var(--clr-white);
}

/* --- Stats --- */
.nf-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--clr-text-light);
  padding: .5rem 0;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1rem;
}

.nf-stats-date {
  font-style: italic;
}

/* --- Feed List --- */
.nf-feed-list {
  max-width: 780px;
}

/* --- Feed Item --- */
.nf-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(209,213,219,.5);
}

.nf-item:last-child {
  border-bottom: none;
}

.nf-item-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .3rem;
}

.nf-source {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nf-date {
  font-size: .78rem;
  color: var(--clr-text-light);
}

.nf-lang {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 3px;
  padding: .1rem .35rem;
  color: var(--clr-text-light);
  letter-spacing: .03em;
}

.nf-item-title {
  font-size: 1.1rem;
  margin: 0 0 .3rem;
  line-height: 1.35;
}

.nf-item-title a {
  color: var(--clr-navy);
  text-decoration: none;
}

.nf-item-title a:hover {
  color: var(--clr-orange);
}

.nf-item-summary {
  font-size: .9rem;
  color: var(--clr-text-light);
  line-height: 1.55;
  margin-bottom: .4rem;
}

/* --- Tags --- */
.nf-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.nf-tag {
  font-size: .7rem;
  background: rgba(27,42,74,.05);
  color: var(--clr-text-light);
  padding: .15rem .5rem;
  border-radius: 3px;
}

/* --- Load More --- */
.nf-load-more-wrap {
  text-align: center;
  padding: 1.5rem 0 .5rem;
}

/* --- States --- */
.nf-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--clr-text-light);
  font-size: 1rem;
}

.nf-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--clr-text-light);
  font-size: 1rem;
}

.nf-error {
  background: rgba(229,62,62,.06);
  border: 1px solid var(--clr-danger);
  border-radius: 4px;
  padding: 1.5rem;
  color: var(--clr-text);
}

.nf-error ul {
  margin: .75rem 0 0 1.25rem;
}

.nf-error li {
  margin-bottom: .3rem;
}

.nf-error a {
  color: var(--clr-orange);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nf-hero h1 { font-size: 1.5rem; }
  .nf-hero { padding: 2rem 0 1.5rem; }
  .nf-sources-grid { gap: .5rem; }
  .nf-source-badge { flex: 0 0 140px; min-width: 140px; }
  .nf-filter-row { flex-direction: column; gap: .5rem; }
  .nf-search { max-width: 100%; }
  .nf-stats { flex-direction: column; gap: .25rem; align-items: flex-start; }
  .nf-item-title { font-size: 1rem; }
}
