/*
 * style.css — Stijl voor de Kreta Nieuws-tab
 * Importeert CSS-variabelen uit /assets/css/variables.css (geladen door index.php).
 */

/* Reset voor het iframe-document */
*, *::before, *::after {
  box-sizing: border-box;
}

.nieuws-body {
  margin: 0;
  padding: var(--space-6) var(--space-4);
  background: var(--color-sea-light); /* gelijk aan de andere tabs */
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: var(--line-height-base);
}

.nieuws-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: var(--space-10);
  font-size: var(--font-size-sm);
}

/* Grid: 1 kolom mobiel, 2 kolommen desktop (>=768px) */
.nieuws-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nieuws-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Nieuwskaartje */
.nieuws-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: box-shadow var(--transition-fast);
}

.nieuws-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Titel */
.nieuws-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-sea);
  margin: 0;
  line-height: var(--line-height-tight);
}

/* Datum: klein en grijs */
.nieuws-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin: 0;
}

/* Eén taalversie van een bericht (titel + datum + samenvatting) */
.nieuws-version {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

/* Samenvatting: volledig tonen (geen afkapping), alinea's onder elkaar */
.nieuws-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  margin: 0;
}

.nieuws-desc p {
  margin: 0 0 var(--space-2);
}

.nieuws-desc p:last-child {
  margin-bottom: 0;
}

/* "Lees origineel"-link: subtiel, rechtsonder */
.nieuws-link {
  display: block;
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--color-sea);
  text-decoration: none;
  margin-top: var(--space-2);
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.nieuws-link:hover {
  opacity: 1;
  text-decoration: underline;
}
