/* ============================================================
   SHUMEN.UK — Round-up Article Styles
   Mobile-first, card-based, designed to look great on phones.
   ============================================================ */

/* ── Page header tweaks for round-ups ────────────────────────── */

.roundup-page .article-category.roundup-category {
  background: linear-gradient(135deg, #C89B3C 0%, #B6841A 100%);
  color: #fff;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.roundup-page .article-meta .article-roundup-count {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #C89B3C;
  letter-spacing: 0.04em;
}

/* ── Round-up body container ─────────────────────────────────── */

.roundup-body { padding-top: 8px; }

.roundup-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 8px;
}

/* ── Each round-up item card ─────────────────────────────────── */

.roundup-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.roundup-item:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ── Item meta strip (section badge + date) ──────────────────── */

.roundup-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.roundup-item-section {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #555; /* fallback */
  white-space: nowrap;
}

.roundup-item-section--politics { background: #012169; }
.roundup-item-section--money    { background: #C89B3C; color: #1a1a2e; }
.roundup-item-section--roads    { background: #C8102E; }
.roundup-item-section--health   { background: #D62612; }
.roundup-item-section--culture  { background: #00966E; }
.roundup-item-section--sport    { background: #014a8a; }
.roundup-item-section--shumen   { background: #1a1a2e; }
.roundup-item-section--other    { background: #6b7280; }

.roundup-item-date {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: #6b7280;
  letter-spacing: 0.02em;
}

/* ── Item headline ───────────────────────────────────────────── */

.roundup-item-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: #1a1a2e;
}

/* ── Item body copy ──────────────────────────────────────────── */

.roundup-item-body {
  font-family: 'Source Serif 4', 'Tiempos Text', Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #2E2C26;
}

.roundup-item-body p { margin: 0 0 0.85em; }
.roundup-item-body p:last-child { margin-bottom: 0; }
.roundup-item-body strong { color: #012169; font-weight: 700; }
.roundup-item-body em { font-style: italic; }
.roundup-item-body a { color: #012169; text-decoration: underline; text-underline-offset: 2px; }
.roundup-item-body a:hover { color: #C8102E; }
.roundup-item-body ul, .roundup-item-body ol { padding-left: 1.4em; margin: 0 0 0.85em; }
.roundup-item-body li { margin-bottom: 4px; }

/* ── Source attribution (per-item, no link) ──────────────────── */

.roundup-item-attribution {
  margin: 16px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.roundup-item-source-name {
  font-weight: 600;
  color: #3d3d5c;
}

.roundup-source-lang {
  display: inline-block;
  margin-left: 4px;
  color: #8a847a;
  font-size: 0.92em;
  font-weight: 400;
  font-style: italic;
}

/* ── Sources footer (one link per unique source at bottom) ───── */

.roundup-sources {
  margin: 32px 0 0;
  padding: 22px 22px 24px;
  background: #faf8f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.roundup-sources-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d3d5c;
  margin: 0 0 10px;
}

.roundup-sources-intro {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #57534B;
  margin: 0 0 14px;
}

.roundup-sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roundup-sources-list li {
  display: inline-block;
}

.roundup-sources-list a {
  display: inline-block;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #012169;
  text-decoration: none;
  transition: all 0.15s ease;
}

.roundup-sources-list a:hover {
  background: #012169;
  color: #fff;
  border-color: #012169;
}

/* ── Tablet & desktop refinements ─────────────────────────────── */

@media (min-width: 600px) {
  .roundup-items {
    gap: 22px;
    margin: 32px 0 12px;
  }
  .roundup-item {
    padding: 28px;
    border-radius: 16px;
  }
  .roundup-item-headline { font-size: 1.5rem; }
  .roundup-item-body { font-size: 1.05rem; }
}

@media (min-width: 900px) {
  .roundup-item {
    padding: 32px 36px;
  }
  .roundup-item-headline { font-size: 1.7rem; }
  .roundup-item-body { font-size: 1.075rem; line-height: 1.68; }
  .roundup-item-source { font-size: 0.95rem; padding: 12px 18px 12px 20px; }
}

/* ── First-card emphasis (top story styling) ─────────────────── */

.roundup-items .roundup-item:first-child {
  border-top: 4px solid #C89B3C;
}

@media (min-width: 600px) {
  .roundup-items .roundup-item:first-child .roundup-item-headline {
    font-size: 1.7rem;
  }
}
@media (min-width: 900px) {
  .roundup-items .roundup-item:first-child .roundup-item-headline {
    font-size: 2rem;
  }
}

/* ── Print niceties ──────────────────────────────────────────── */

@media print {
  .roundup-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  .roundup-item-source { display: none; }
}
