/* Rijnmond nieuwssite */

:root {
  --navy: #0a1e3c;
  --navy-2: #13294d;
  --accent: #00a37a;
  --accent-dark: #008563;
  --live: #e1251b;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --text: #121a26;
  --muted: #5d6b7d;
  --border: #e2e7ee;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10, 30, 60, 0.06), 0 4px 16px rgba(10, 30, 60, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --cat: var(--accent);
}

/* Categoriekleuren */
.cat-nieuws { --cat: #1f6feb; }
.cat-112 { --cat: #d7263d; }
.cat-verkeer { --cat: #e8890c; }
.cat-politiek { --cat: #7048e8; }
.cat-haven { --cat: #0b7285; }
.cat-sport { --cat: #00a37a; }
.cat-cultuur { --cat: #d6336c; }
.cat-weer { --cat: #1c7ed6; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header { background: var(--navy); color: #fff; }

.topbar {
  background: #071630;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 34px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.topbar__date { display: inline-block; }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__item:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar .ico { opacity: 0.8; }
.topbar__live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar__live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.25);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(160deg, transparent 52%, rgba(255, 255, 255, 0.95) 53%, rgba(255, 255, 255, 0.95) 63%, transparent 64%),
    linear-gradient(160deg, transparent 68%, rgba(255, 255, 255, 0.6) 69%, rgba(255, 255, 255, 0.6) 77%, transparent 78%),
    var(--accent);
}
.logo__text { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }

.masthead__tagline { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

.search {
  margin-left: auto;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.search input {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 9px 14px;
  width: 220px;
  font: inherit;
  font-size: 14px;
}
.search input::placeholder { color: rgba(255, 255, 255, 0.6); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search button { border: 0; background: transparent; color: #fff; padding: 0 14px; cursor: pointer; }

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}

.mainnav { background: var(--navy-2); }
.mainnav__inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mainnav a,
.regio-menu summary {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.mainnav a:hover,
.regio-menu summary:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.mainnav a.active { color: #fff; border-bottom-color: var(--accent); }

.regio-menu { position: static; }
.regio-menu summary { list-style: none; }
.regio-menu summary::-webkit-details-marker { display: none; }
.regio-menu summary::after { content: " ▾"; font-size: 12px; }
.regio-menu__list {
  position: absolute;
  z-index: 20;
  margin-top: 0;
  background: #fff;
  color: var(--text);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}
.regio-menu__list a { color: var(--text); font-weight: 500; padding: 8px 10px; border: 0; border-radius: 6px; }
.regio-menu__list a:hover { background: var(--bg); color: var(--text); }

.breaking { background: var(--live); color: #fff; font-size: 15px; }
.breaking .container { padding-top: 10px; padding-bottom: 10px; }
.breaking strong {
  text-transform: uppercase;
  background: #fff;
  color: var(--live);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 12px;
}

/* ---------- Bouwstenen ---------- */

main { padding: 24px 0 48px; }

.section { margin-top: 36px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 16px;
}
.section__head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.section__head a { font-weight: 600; font-size: 14px; color: var(--accent-dark); }
.section__head--light { border-bottom-color: rgba(255, 255, 255, 0.6); }
.section__head--light a { color: #fff; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 28px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: 2px;
}
.badge--live { background: var(--live); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.65; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 500;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip--active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--active:hover { color: #fff; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
}
.button:hover { background: var(--accent-dark); }
.button--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.button--ghost:hover { background: var(--navy); color: #fff; }

.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Beeld-placeholder in de categoriekleur, zolang er geen foto is */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px 28px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 55%, #0a1e3c));
}
.ph span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 26px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ph--hero { aspect-ratio: 16 / 9; border-radius: var(--radius); }

/* ---------- Kaartjes ---------- */

.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dde3ea; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__play {
  position: absolute;
  left: 12px; bottom: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.card__body { padding: 12px 14px 16px; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.card__cat { color: var(--cat); font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; }
.card__meta time::before { content: "·"; margin-right: 8px; }
.card__title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 750; }
.card:hover .card__title { color: var(--accent-dark); }
.card__intro { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* Openingsverhaal: beeld met titel eroverheen */
.card--lead { height: 100%; }
.card--lead .card__link { position: relative; }
.card--lead .card__media { aspect-ratio: auto; height: 100%; min-height: 420px; }
.card--lead .ph span { display: none; }
.card--lead .card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 24px 24px;
  background: linear-gradient(to top, rgba(5, 15, 30, 0.92), rgba(5, 15, 30, 0.55) 60%, transparent);
  color: #fff;
}
.card--lead .card__meta { color: rgba(255, 255, 255, 0.85); }
.card--lead .card__cat { color: #fff; background: var(--cat); padding: 2px 8px; border-radius: 4px; }
.card--lead .card__title { font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.card--lead:hover .card__title { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.card--lead .card__intro { color: rgba(255, 255, 255, 0.88); max-width: 680px; font-size: 16px; }

/* Rij: thumbnail links */
.card--row .card__link { flex-direction: row; align-items: stretch; }
.card--row .card__media { flex: 0 0 34%; max-width: 200px; aspect-ratio: 1 / 1; }
.card--row .card__body { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.card--row .card__title { font-size: 17px; }

/* ---------- Homepage ---------- */

.top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}
.top__side { display: grid; gap: 20px; grid-template-rows: 1fr 1fr; }
.top__side .card__intro { display: none; }

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--live);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 37, 27, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(225, 37, 27, 0); }
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.35;
}
.timeline li:first-child { border-top: 0; }
.timeline li.timeline__day {
  display: block;
  padding: 12px 0 4px;
  border-top: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.timeline li.timeline__day:first-child { padding-top: 0; }
.timeline li.timeline__day + li { border-top: 0; }
.day + .day { margin-top: 26px; }
.day__head {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--navy);
  font-size: 18px;
  font-weight: 800;
}
.timeline time { font-weight: 800; color: var(--accent-dark); font-size: 13px; padding-top: 1px; }
.timeline a:hover { color: var(--accent-dark); }

.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-weight: 650;
  line-height: 1.35;
}
.ranked li:first-child { border-top: 0; }
.ranked li::before {
  content: counter(rank);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}
.ranked a:hover { color: var(--accent-dark); }

.band { margin-top: 40px; padding: 28px 0 36px; }
.band--sport { background: linear-gradient(135deg, #00684e, var(--accent)); color: #fff; }
.band--sport .card { color: var(--text); }

.load-more { text-align: center; margin-top: 36px; }

/* ---------- Overzicht & artikel ---------- */

.page-head { margin-bottom: 12px; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 800; }
.page-head p { margin: 2px 0 0; }
.chips--filter { margin-top: 12px; }
.layout-2col .list { display: grid; gap: 14px; }
.pager { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

.article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px clamp(16px, 4vw, 44px) 36px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; }
.crumbs a { color: var(--cat); }
.crumbs span { color: var(--muted); }
.article__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 10px 0 12px; font-weight: 850; letter-spacing: -0.5px; }
.article__meta { color: var(--muted); font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.article__meta time { display: inline-block; }
.article__meta time::first-letter { text-transform: uppercase; }
.article__media { margin: 20px 0; }
.article__media img { width: 100%; border-radius: var(--radius); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article__intro { font-size: 20px; font-weight: 650; line-height: 1.5; margin: 0 0 18px; }
.article__body { font-size: 18px; line-height: 1.7; }
.article__body p { margin: 0 0 18px; }
.article__body a { color: var(--accent-dark); text-decoration: underline; }
.article__body h2, .article__body h3 { line-height: 1.25; margin: 28px 0 10px; }
.article__body blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--cat); font-size: 20px; font-weight: 600; }

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.share span { font-weight: 700; margin-right: 6px; }
.share a { border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-weight: 600; }
.share a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding: 40px 0 20px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.site-footer .footer__grid a:not(.logo) { display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.logo--footer .logo__text { color: #fff; font-size: 26px; }
.footer__tagline { margin: 10px 0 0; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsief ---------- */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .masthead__tagline { display: none; }
}

@media (max-width: 820px) {
  .top { grid-template-columns: 1fr; }
  .top__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .card--lead .card__media { min-height: 340px; }
}

@media (max-width: 640px) {
  .search { display: none; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav__inner { flex-direction: column; overflow: visible; }
  .mainnav a, .regio-menu summary { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .mainnav a.active { border-bottom-color: rgba(255, 255, 255, 0.08); box-shadow: inset 3px 0 0 var(--accent); }
  .regio-menu__list { position: static; grid-template-columns: 1fr 1fr; border-radius: 0; }
  .top__side, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .card--lead .card__media { min-height: 300px; }
  .card--lead .card__body { padding: 60px 16px 16px; }
  .card--row .card__media { flex-basis: 110px; }
  .card--row .card__title { font-size: 15px; }
  .logo__text { font-size: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
}
