/* ── Global ── */
body {
  background: #f0f2f5;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Navbar ── */
.navbar-brand span {
  letter-spacing: -0.5px;
}

/* ── Date Picker ── */
.date-picker {
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #ced4da;
  padding: 6px 12px;
  cursor: pointer;
  min-width: 170px;
}
.date-picker:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

/* ── Country Bar ── */
.country-bar {
  flex-wrap: wrap;
}

.country-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: all .18s ease;
  color: #333;
}
.country-btn:hover {
  background: #e8f0fe;
  border-color: #0d6efd;
  color: #0d6efd;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(13,110,253,.18);
}
.country-btn.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  box-shadow: 0 3px 12px rgba(13,110,253,.35);
}
.country-btn .flag-icon {
  font-size: 1.4rem;   /* flag-icons uses em-based sizing */
  line-height: 1;
  border-radius: 2px;
}

/* ── News Cards ── */
.news-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border: none;
  transition: transform .18s, box-shadow .18s;
  overflow: hidden;
  height: 100%;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.news-card .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.news-card .rank-badge.rank-1 { background: #f59e0b; }
.news-card .rank-badge.rank-2 { background: #6b7280; }
.news-card .rank-badge.rank-3 { background: #b45309; }

.news-card .source-tag {
  font-size: 0.72rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.news-card .headline {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a2e;
  margin: 0;
}

.news-card .summary {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.55;
  margin-top: 6px;
}

.news-card .card-footer-meta {
  font-size: 0.75rem;
  color: #999;
}

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty/placeholder state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}
.empty-state i {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

/* ── Day Summary tab ── */
.country-btn.summary-tab {
  background: #fff;
  border-color: transparent;
}
.country-btn.summary-tab:hover {
  background: #e8f5e9;
  border-color: #198754;
  color: #198754;
}
.country-btn.summary-tab.active {
  background: #198754;
  border-color: #198754;
  color: #fff;
  box-shadow: 0 3px 12px rgba(25,135,84,.35);
}
.country-btn.summary-tab .summary-globe {
  font-size: 1.2rem;
  line-height: 1;
}

/* ── Summary view ── */
.summary-narrative {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border: none;
}
.summary-paragraph {
  font-size: 1rem;
  line-height: 1.75;
  color: #2d2d2d;
}
.summary-paragraph:last-child {
  margin-bottom: 0;
}

.country-highlight-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border: none;
  transition: transform .18s, box-shadow .18s;
}
.country-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
