:root {
  --bg-color: rgba(255, 255, 255, 0.15);
  --text-color: #fff;
  --nav-bg: rgba(0, 0, 0, 0.4);
  --hover-bg: rgba(255, 255, 255, 0.2);
  --submenu-bg: rgba(0, 0, 0, 0.6);
  --button-bg: rgba(255, 255, 255, 0.25);
  --button-hover: rgba(255, 255, 255, 0.4);
  --input-bg: rgba(255, 255, 255, 0.85);
  --input-text-color: #000; /* standaard zwart in light mode */
  --footer-bg: rgba(0, 0, 0, 0.4);
  --rss-bg: rgba(255, 255, 255, 0.15);
  --submenu-bg: rgba(0, 0, 0, 0.6); /* standaard transparant zwart */
}

body.dark-mode {
  --bg-color: rgba(0, 0, 0, 0.3);
  --text-color: #eee;
  --nav-bg: rgba(0, 0, 0, 0.8);
  --hover-bg: rgba(255, 255, 255, 0.3);
  --submenu-bg: rgba(255, 255, 255, 0.1);
  --button-bg: rgba(255, 255, 255, 0.2);
  --button-hover: rgba(255, 255, 255, 0.35);
  --input-bg: rgba(255, 255, 255, 0.1);
  --input-text-color: #fff; /* wit in dark mode */
  --footer-bg: rgba(0, 0, 0, 0.8);
  --rss-bg: rgba(0, 0, 0, 0.3);
  --submenu-bg: rgba(20, 20, 20, 0.85); /* minder transparant, beter leesbaar */
}


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
  color: var(--text-color);
  background-color: var(--bg-color);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  backdrop-filter: blur(12px);
  background-color: var(--nav-bg);
  z-index: 1000;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
  padding: 20px 20px;
  cursor: pointer;
}

nav ul li:hover {
  background-color: var(--hover-bg);
}

nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--submenu-bg);
  backdrop-filter: blur(12px);
  min-width: 180px;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

nav ul li:hover > ul {
  display: flex;
}

nav ul ul li {
  padding: 10px 15px;
}

nav ul ul li a {
  color: var(--text-color);
  text-decoration: none;
}

.main-content {
  min-height: calc(100vh - 60px - 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.search-container {
  width: 95%;
  max-width: 1100px;
  box-sizing: border-box;
  backdrop-filter: blur(15px);
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
}

.search-container input[type="text"] {
  width: 80%;
  font-size: 1.5rem;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background-color: var(--input-bg);
  color: #000;
  color: var(--input-text-color);
}
.search-container input::placeholder {
  color: rgba(0, 0, 0, 0.5); /* light mode */
}

@keyframes neonPulse {
  0% {
    box-shadow: 0 0 8px 3px rgba(0, 140, 255, 0.6);
    border-color: #00aaff;
  }
  50% {
    box-shadow: 0 0 12px 6px rgba(0, 200, 255, 0.8);
    border-color: #33ccff;
  }
  100% {
    box-shadow: 0 0 8px 3px rgba(0, 140, 255, 0.6);
    border-color: #00aaff;
  }
}

.tagged {
  animation: neonPulse 1.5s infinite ease-in-out;
  border: 1px solid #00aaff !important;
  transition: box-shadow 0.3s ease, border 0.3s ease !important;
}




body.dark-mode .search-container input::placeholder {
  color: rgba(255, 255, 255, 0.7); /* dark mode */
}

.buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  background-color: var(--button-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: var(--button-hover);
}

button {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

button:nth-child(1) { animation-delay: 0.2s; }
button:nth-child(2) { animation-delay: 0.4s; }
button:nth-child(3) { animation-delay: 0.6s; }
button:nth-child(4) { animation-delay: 0.8s; }
button:nth-child(5) { animation-delay: 1.0s; }
button:nth-child(6) { animation-delay: 1.2s; }
button:nth-child(7) { animation-delay: 1.4s; }
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}


@keyframes neonGlow {
  0% {
    box-shadow: 0 0 8px 2px rgba(0, 200, 255, 0.4);
    border-color: #00c8ff;
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(0, 200, 255, 0.7);
    border-color: #33ddff;
  }
  100% {
    box-shadow: 0 0 8px 2px rgba(0, 200, 255, 0.4);
    border-color: #00c8ff;
  }
}

#tagSelector {
  position: fixed;
  top: 40%; /* iets hoger dan midden */
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(15px);
  background-color: rgba(0, 150, 255, 0.4); /* lichtblauw met transparantie */
  border-radius: 20px;
  padding: 30px;
  z-index: 1000;
  max-width: 600px;
  width: 90%;
  text-align: center;
  border: 0px solid #00c8ff;
  animation: neonGlow 3s infinite ease-in-out;
}

.tag-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}


.tag {
  padding: 10px 18px;
  border-radius: 20px;
  background-color: var(--button-bg);
  color: var(--text-color);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

.tag:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}


.tag-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10; /* Zorg dat hij bovenop staat */
}


.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

#tagSelector.show {
  display: block;
  animation: fadeIn 0.2s ease forwards, neonGlow 3s infinite ease-in-out;
}



.rss-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

.rss-block {
  backdrop-filter: blur(12px);
  background-color: var(--rss-bg);
  border-radius: 15px;
  padding: 15px;
  color: var(--text-color);
  width: 500px;
  box-sizing: border-box;
}

.rss-block h3 {
  margin: 0 0 8px 0;
}

.rss-block h4 {
  margin: 10px 0 0;
  font-size: 1.1rem;
}

.rss-block a {
  color: var(--text-color);
  text-decoration: none;
}

.rss-block a:hover {
  text-decoration: underline;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  backdrop-filter: blur(12px);
  background-color: var(--footer-bg);
}

#radioPlayer {
  display: none;
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(15px);
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: 20px;
  align-items: center;
  gap: 15px;
  z-index: 999;
}

#radioPlayer audio {
  width: 300px;
}

#radioPlayer button {
  background-color: var(--button-bg);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 18px;
  color: var(--text-color);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#radioPlayer button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

#radioPlayer input[type="range"] {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 6px;
  accent-color: white;
}

#openMode {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 10px;
  color: #222;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 16px;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#openMode option {
  color: #222;
  background-color: rgba(255, 255, 255, 0.9);
}

#bg-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: 110%;
  background-position: center;
  transition: opacity 1s ease-in-out, transform 50s ease-in-out;
  opacity: 1;
  transform: scale(1);
}
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
}

.mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.mode-toggle input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mode-toggle input[type="checkbox"]:checked {
  background-color: var(--text-color);
}

.mode-toggle input[type="checkbox"]::after {
  content: "🌙";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #000;
  pointer-events: none;
}
.rss-block {
  backdrop-filter: blur(12px);
  background-color: var(--rss-bg);
  border-radius: 15px;
  padding: 15px;
  color: var(--text-color);
  width: 500px;
  box-sizing: border-box;
}

.rss-block h3,
.rss-block h4 {
  color: var(--text-color);
}

.rss-block a {
  color: var(--text-color);
  text-decoration: none;
}

.rss-block a:hover {
  text-decoration: underline;
}
.menu-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 0 20px;
  height: 60px;
}

.icon-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.icon-toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.icon-toggle input {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.toggle-icon {
  font-size: 1rem;
  color: var(--text-color);
  pointer-events: none;
  transition: transform 0.3s ease;
}

#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 12px 16px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  font-size: 1em;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#toast.show {
  visibility: visible;
  opacity: 1;
}





