/* Root variables voor branding */
:root {
    --primary-color: #ff3c6e;    /* Felle fuchsia voor CTA */
    --primary-hover: #ff1a57;    /* Donkerder fuchsia voor hover */
    --secondary-color-start: #ffe6f0; /* Gradient startkleur */
    --secondary-color-end: #ffd9ec;   /* Gradient eindkleur */
    --accent-color: #ffd700;      /* Eventuele highlights */
    --font-family: 'Arial', sans-serif;
}

/* Body styling */
body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--secondary-color-start), var(--secondary-color-end));
    color: #1a1a1a; /* Donkergrijs voor leesbaarheid */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.1); /* transparant, laat gradient zien */
}

/* Logo */
header img {
    height: 50px;
}

/* Navigation links */
header nav a {
    color: #1a1a1a;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary-color);
}

/* CTA button */
a.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

a.cta-button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05); /* lichte animatie voor hover */
}

/* Main content */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
    background-color: rgba(255,255,255,0.05);
}

/* Blog post titles */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

/* Links in content */
a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    color: var(--primary-hover);
}

/* --- Video grid: robuuste, gelijke kaarten --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin: 2rem auto;
  max-width: 1200px;
  width: 100%;
  grid-auto-rows: 1fr; /* zorgt dat iedere rij even hoog wordt */
  align-items: stretch;
  justify-items: center;
}

.video-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* essentieel i.c.m. grid-auto-rows: 1fr */
  background: #111;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

/* wrapper zorgt voor perfecte 16:9 verhouding zonder vaste heights */
.video-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 8px;
  overflow: hidden;
}

.video-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* zorg dat meta / knop onderaan blijft */
.video-meta {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* knop styling (gebruik .cta-button of .btn) */
.cta-button,
.btn,
.video-item .cta-button {
  display: inline-block;
  padding: 10px 15px;
  background: #FF3C3C;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cta-button:hover,
.btn:hover,
.video-item .cta-button:hover {
  background: #cc2f2f;
  transform: translateY(-2px);
}

/* verwijder harde iframe-height rules (overschrijf als nodig) */
.video-grid iframe { height: auto !important; }
