﻿:root {
  --primary: #005A9E;
  --accent: #00B2A9;
  --bg-light: #f5faff;
  --bg-dark: #1e1e1e;
  --text-light: #fff;
  --text-dark: #222;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.header-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  margin-bottom: 20px;
  position: relative;
}

.header-box h1 {
  font-size: 26px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.share-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  margin-bottom: 16px;
}

.share-header span {
  font-weight: 500;
  color: var(--text-light);
}

.share-header img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.share-header img:hover {
  transform: scale(1.1);
}

.controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

button {
  font-size: 15px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background-color: #ffffffdd;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

button:hover {
  background-color: #e0e0e0;
}

.year-menu-toggle {
  display: none;
}

.year-popup {
  display: none;
  flex-direction: column;
  background-color: #ffffff;
  border: 2px solid var(--primary);
  padding: 10px;
  border-radius: 12px;
  position: absolute;
  top: 100%;
  right: 10px;
  width: 45vw;
  max-width: 215px;
  min-width: 135px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  z-index: 1000;
  align-items: center;
}

.year-popup.open {
  display: flex;
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.year-popup a {
  color: var(--primary);
  background-color: #f0f8ff;
  padding: 10px 14px;
  margin: 6px 0;
  font-size: 15px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s;
}

.year-popup a:hover {
  background-color: var(--accent);
  color: white;
}

.year-links-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.year-links-desktop a {
  background-color: #ffffffdd;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.year-links-desktop a:hover {
  background-color: var(--accent);
  color: white;
}

iframe {
  width: 100%;
  height: calc(100vh - 340px);
  border: none;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  background-color: white;
}

body.dark-mode iframe {
  background-color: #111;
}

@media (max-width: 600px) {
  .year-links-desktop {
    display: none;
  }

  .year-menu-toggle {
    display: block;
  }

  .controls {
    justify-content: flex-end;
  }

  iframe {
    height: calc(100vh - 420px);
  }
}

@media (min-width: 601px) {
  .year-popup {
    display: none !important;
  }

  .year-links-desktop {
    display: flex;
  }

  .year-menu-toggle {
    display: none;
  }

  .controls {
    justify-content: center;
  }
}

/* ✅ Toegevoegd: verberg video-opties op mobiel */
@media screen and (max-width: 768px) {
  .video-options,
  .video-description,
  .metadata {
    display: none !important;
  }
      iframe {
      width: 100%;
      border: none;
      transition: height 0.3s ease;
      display: block;
      border-radius: 16px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.2);
      background-color: white;
    }

    body.dark-mode iframe {
      background-color: #111;
    }