/**
 * Media en Publicaties - Pagina 2010 Styling
 * Geschikt voor de 3-koloms 2021-info layout
 */

.vlb-media-page {
  font-family: var(--body-font, system-ui, -apple-system, sans-serif);
  color: var(--color-text, #1e293b);
  line-height: 1.6;
}

/* ==========================================================================
   1. Introductie & Kopteksten
   ========================================================================== */
.vlb-media-intro {
  margin-bottom: 2rem;
}

.vlb-media-intro h2 {
  color: var(--color-mint-dark, #0d4745);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.vlb-media-intro p.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text, #334155);
  font-weight: 400;
  margin-bottom: 1rem;
}

.vlb-media-intro p {
  color: var(--color-text-muted, #64748b);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* ==========================================================================
   2. Media Highlight Banners (RTL Z, Nu.nl, Business Insider)
   ========================================================================== */
.vlb-media-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0 2.5rem;
}

@media (min-width: 576px) {
  .vlb-media-banners {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vlb-media-banner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
  color: inherit;
}

.vlb-media-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(13, 71, 69, 0.12);
  border-color: var(--color-mint-border, #c4e3e1);
  text-decoration: none !important;
}

.vlb-media-banner-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 375;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: #f8fafc;
}

.vlb-media-banner-card__footer {
  padding: 0.85rem 1.1rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-mint, #0d4745);
  border-top: 1px solid #f1f5f9;
  transition: color 0.15s ease;
}

.vlb-media-banner-card:hover .vlb-media-banner-card__footer {
  color: var(--color-orange, #ea580c);
}

.vlb-media-banner-card__footer svg {
  transition: transform 0.2s ease;
}

.vlb-media-banner-card:hover .vlb-media-banner-card__footer svg {
  transform: translateX(3px);
}

/* ==========================================================================
   3. Video Cards (YouTube & Vimeo)
   ========================================================================== */
.vlb-media-videos-section {
  margin-bottom: 2.5rem;
}

.vlb-media-subheading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-mint-dark, #0d4745);
  margin-bottom: 1rem;
}

.vlb-media-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .vlb-media-videos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vlb-media-video-card {
  background: #ffffff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.06);
}

.vlb-media-video-card__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #0f172a;
}

.vlb-media-video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vlb-media-video-card__title {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text, #1e293b);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   4. Sticky Year Navigation Filter Pills
   ========================================================================== */
.vlb-media-nav-sticky {
  position: sticky;
  top: 126px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  margin: 2rem 0 2.25rem;
  border-top: 1px solid var(--color-border, #e2e8f0);
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}

@media only screen and (max-width: 991px) {
  .vlb-media-nav-sticky {
    top: 104px;
  }
}

@media only screen and (max-width: 767px) {
  .vlb-media-nav-sticky {
    position: relative;
    top: 0;
  }
}

.vlb-media-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.vlb-media-nav__label {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted, #64748b);
  margin-right: 0.25rem;
}

.vlb-media-nav__pill {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--color-surface-subtle, #f1f5f9);
  color: var(--color-mint-dark, #0d4745);
  text-decoration: none !important;
  transition: all 0.15s ease;
  line-height: 1.25;
}

.vlb-media-nav__pill:hover {
  background: var(--color-mint, #0d4745);
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   5. Jaar Secties & Publicatie Items
   ========================================================================== */
.vlb-media-year {
  margin-bottom: 2.75rem;
  scroll-margin-top: 185px;
}


.vlb-media-year__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-mint, #0d4745);
}

.vlb-media-year__header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-mint-dark, #0d4745);
  margin: 0;
  letter-spacing: -0.015em;
}

.vlb-media-year__count {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--color-mint-surface, #edf7f6);
  color: var(--color-mint, #0d4745);
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.vlb-media-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vlb-media-item {
  display: block;
}

.vlb-media-item__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.15s ease;
}

.vlb-media-item__link:hover {
  background: #f8fbfb;
  border-color: var(--color-mint-border, #c4e3e1);
  box-shadow: 0 3px 10px rgba(13, 71, 69, 0.07);
  text-decoration: none !important;
  transform: translateX(2px);
}

.vlb-media-item__date {
  flex-shrink: 0;
  min-width: 82px;
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.vlb-media-item__date--empty {
  min-width: 14px;
  color: #cbd5e1;
  text-align: center;
}

.vlb-media-item__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.vlb-media-item__title {
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text, #1e293b);
  transition: color 0.15s ease;
  word-break: break-word;
}

.vlb-media-item__link:hover .vlb-media-item__title {
  color: var(--color-mint, #0d4745);
}

.vlb-media-item__source {
  display: inline-flex;
  align-items: center;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-green, #059669);
}

.vlb-media-item__badge-pdf {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.vlb-media-item__arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  padding-top: 0.25rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.vlb-media-item__link:hover .vlb-media-item__arrow {
  color: var(--color-orange, #ea580c);
  transform: translateX(2px);
}

/* ==========================================================================
   6. Special Highlight Feature: Radio 1 Uitzending
   ========================================================================== */
.vlb-media-featured-card {
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--color-mint-border, #c4e3e1);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(13, 71, 69, 0.08);
  transition: all 0.2s ease;
}

.vlb-media-featured-card:hover {
  box-shadow: 0 10px 24px rgba(13, 71, 69, 0.12);
  border-color: var(--color-mint, #0d4745);
  transform: translateY(-2px);
}

.vlb-media-featured-card a {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.vlb-media-featured-card img {
  width: 100%;
  height: auto;
  display: block;
}

.vlb-media-featured-card__body {
  display: block;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-mint-surface, #edf7f6) 100%);
}

.vlb-media-featured-card__body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-mint-dark, #0d4745);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.35;
}

.vlb-media-featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted, #64748b);
}

/* ==========================================================================
   7. Krantenknipsels & Historisch Archief
   ========================================================================== */
.vlb-media-clippings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 576px) {
  .vlb-media-clippings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .vlb-media-clippings-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.vlb-media-clipping-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.vlb-media-clipping-card:hover {
  border-color: var(--color-mint, #0d4745);
  box-shadow: 0 6px 16px rgba(13, 71, 69, 0.1);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.vlb-media-clipping-card img {
  max-width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 4px;
}

.vlb-media-clipping-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.25;
}
