/* ============================================================
   news.css — News tab
   ============================================================ */

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── News card ──────────────────────────────────────────── */
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .15s, background .15s;
}
.news-card:hover {
  border-color: rgba(200,168,75,.3);
  background: rgba(22,27,40,.8);
}

/* ── Header (group + date) ──────────────────────────────── */
.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.news-group {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}
.news-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ── Matchup row ────────────────────────────────────────── */
.news-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.news-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  min-width: 0;
}
.news-home {
  justify-content: flex-end;
  flex: 1;
  text-align: right;
}
.news-away {
  justify-content: flex-start;
  flex: 1;
}
.news-flag {
  font-size: 22px;
  line-height: 1;
}
.news-score {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--text);
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}

/* ── Goal scorers ───────────────────────────────────────── */
.news-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.news-goal {
  font-size: 12px;
  color: var(--muted);
  background: rgba(200,168,75,.08);
  padding: 3px 8px;
  border-radius: 3px;
}
.news-goal-min {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-right: 2px;
}

/* ── Summary text ───────────────────────────────────────── */
.news-summary {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  opacity: .85;
}

/* ── Footer (half-time) ─────────────────────────────────── */
.news-card-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.news-ht {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ── Article cards (BBC Sport) ──────────────────────────── */
.news-card--article {
  border-left: 3px solid var(--accent);
}
.news-source {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}
.article-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.article-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.article-thumb--placeholder {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-thumb--placeholder svg {
  width: 100%;
  height: 100%;
}
.article-text {
  flex: 1;
  min-width: 0;
}
.article-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-title:hover {
  color: var(--accent);
}
.article-text .news-summary {
  margin: 0;
}

/* ── Loading / Empty states ─────────────────────────────── */
.news-loading,
.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .news-card {
    padding: 14px;
  }
  .news-team-name {
    font-size: 13px;
  }
  .news-score {
    font-size: 24px;
    min-width: 60px;
  }
  .news-summary {
    font-size: 12px;
  }
}
