/* =====================================================
   🌈 STYLE.CSS – Deel je Prikbord (Dashboard & Algemeen)
   ===================================================== */

/* ===== Kleuren & variabelen ===== */
:root {
  --offwhite: #f9f9f7;
  --blue: #2f6fa3;
  --green: #2ea27e;
  --yellow: #ffd65a;
  --text: #222;
  --radius: 10px;
}

/* ===== Algemene basis ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: url("/assets/achtergrond.jpg") center/cover fixed no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =====================================================
   🌿 HEADER (lichtgroen, wazig)
   ===================================================== */
.site-header {
  background: rgba(46, 162, 126, 0.35); /* zacht lichtgroen */
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
  z-index: 1000;
}

/* Bovenste balk: weer, tijd, locatie */
.info-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  padding: 6px 10px;
  background: rgba(46, 162, 126, 0.25);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Logo + titel + toggle */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.site-title {
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  flex: 1;
  text-align: center;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

/* =====================================================
   🧭 NAVIGATIEBALK
   ===================================================== */
.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: url("/assets/menubalk.jpg") center/cover no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  padding: 10px 0;
  transition: max-height 0.3s ease;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  margin: 4px;
  border-radius: 6px;
  font-weight: 500;
  background: rgba(46,162,126,0.90);
  transition: background 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.25);
}

    /* ===== DASHBOARD ===== */
    main {
      max-width: 950px;
      margin: 40px auto;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 16px;
      padding: 30px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      text-align: center;
    }

    /* Gebruikersfoto + naam */
    .profile-section {
      text-align: center;
      margin-bottom: 30px;
    }

    .profile-section img {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid #6b5b95;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .profile-section h2 {
      margin: 10px 0 0;
      color: #333;
      font-size: 1.3rem;
    }

    .profile-section p {
      color: #666;
      margin: 5px 0 0;
    }

    /* Secties */
    .section {
      margin-bottom: 35px;
      border-bottom: 1px solid #ddd;
      padding-bottom: 20px;
      text-align: left;
    }

    .section h3 {
      color: #6b5b95;
    }

    .btn {
      display: inline-block;
      background: linear-gradient(135deg, #6a11cb, #2575fc);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 12px 24px;
      font-weight: 600;
      text-decoration: none;
      margin: 8px;
      transition: 0.2s;
    }

    .btn:hover {
      background: linear-gradient(135deg, #2575fc, #6a11cb);
    }

/* Secties */
.section, .small-box {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h5 {
  color: var(--blue);
  margin-bottom: 0.5rem;
}

/* Knoppen */
.btn {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  margin: 4px 4px 0 0;
  transition: background 0.3s ease;
}
.btn:hover {
  background: var(--green);
}

/* =====================================================
   🌿 FOOTER
   ===================================================== */
.site-footer {
  text-align: center;
  background: rgba(200, 255, 200, 0.45);
  backdrop-filter: blur(8px);
  border-top: 2px solid rgba(255,255,255,0.5);
  padding: 1rem;
  font-size: 0.95rem;
  color: #2f4e2f;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  border-radius: 10px 10px 0 0;
  margin-top: 40px;
}

/* =====================================================
   📱 RESPONSIEF
   ===================================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .site-title {
    font-size: 1.4rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex !important;
    max-height: none !important;
  }
}
// =====================================================
// 🌦️ HEADER-FUNCTIES: Weer, Locatie, Datum & Tijd + Menu Toggle
// =====================================================

document.addEventListener("DOMContentLoaded", () => {
  // === Toggle-menu voor mobiel ===
  const toggle = document.getElementById("menuToggle");
  const nav = document.getElementById("mainNav");

  if (toggle && nav) {
    toggle.addEventListener("click", () => {
      nav.classList.toggle("open");
    });
  }

  // === Datum & Tijd automatisch bijwerken ===
  const dateTimeElement = document.getElementById("dateTime");

  function updateDateTime() {
    const now = new Date();
    const options = {
      weekday: "long",
      day: "numeric",
      month: "long",
      year: "numeric",
      hour: "2-digit",
      minute: "2-digit",
    };
    const formatted = now.toLocaleString("nl-NL", options);
    if (dateTimeElement) {
      dateTimeElement.textContent = `🕒 ${formatted}`;
    }
  }

  updateDateTime();
  setInterval(updateDateTime, 60000);

  // === Locatie + Weer ophalen ===
  const weatherEl = document.getElementById("weather");
  const locationEl = document.getElementById("location");

  // Helper: weer laden via coördinaten
  async function fetchWeather(lat, lon) {
    try {
      const url = `https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}&current_weather=true`;
      const res = await fetch(url);
      const data = await res.json();

      if (data && data.current_weather) {
        const temp = data.current_weather.temperature;
        const wind = data.current_weather.windspeed;
        const weatherText = `🌦️ ${temp}°C, wind ${wind} km/u`;
        if (weatherEl) weatherEl.textContent = weatherText;
      } else {
        if (weatherEl) weatherEl.textContent = "🌦️ Geen weerinfo";
      }
    } catch (err) {
      if (weatherEl) weatherEl.textContent = "🌦️ Weer niet beschikbaar";
    }
  }

  // Helper: locatie ophalen via browser
  function getLocation() {
    if (!navigator.geolocation) {
      if (locationEl) locationEl.textContent = "📍 Locatie niet ondersteund";
      return;
    }

    navigator.geolocation.getCurrentPosition(
      async (pos) => {
        const lat = pos.coords.latitude.toFixed(2);
        const lon = pos.coords.longitude.toFixed(2);

        // Reverse-geocode voor stadsnaam via OpenStreetMap
        try {
          const geoRes = await fetch(
            `https://nominatim.openstreetmap.org/reverse?lat=${lat}&lon=${lon}&format=json`
          );
          const geoData = await geoRes.json();
          const plaats = geoData.address.city || geoData.address.town || geoData.address.village || "Onbekend";
          const land = geoData.address.country_code?.toUpperCase() || "";

          if (locationEl) locationEl.textContent = `📍 ${plaats}, ${land}`;
        } catch {
          if (locationEl) locationEl.textContent = `📍 ${lat}, ${lon}`;
        }

        // Weer ophalen
        fetchWeather(lat, lon);
      },
      (err) => {
        if (locationEl)
          locationEl.textContent = "📍 Toegang tot locatie geweigerd";
        if (weatherEl)
          weatherEl.textContent = "🌦️ Geen weerdata (geen locatie)";
      }
	  )};


  getLocation();
});

/* =====================================================
   📢 RECLAMEBALK ONDER MAIN
   ===================================================== */

/* Zorg dat oude grid-indeling niets forceert */
.ads { 
  grid-area: auto !important; 
}

/* Plaatsing in kolomstroom (onder main, boven footer) */
.site-header   { order: 0; }
.main-nav      { order: 1; }
.main-content  { order: 2; }
.ads           { order: 3; }
.site-footer   { order: 4; }

/* Stijl van de reclamebalk */
.ads {
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  border-radius: 14px;
  margin: 20px auto 0;
  padding: 14px;
  max-width: 1000px;            /* lijn met je main-content */
  overflow: hidden;
}

/* Kaarten in de balk: standaard flex met scroll op mobiel */
.ads .ad-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.ad-box {
  min-width: 240px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #222;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ad-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Desktop: grid van 3 kolommen, geen horizontale scroll */
@media (min-width: 769px) {
  .ads {
    padding: 16px 18px;
  }
  .ads .ad-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    overflow: visible;
  }
  .ad-box {
    min-width: 0; /* reset van mobiel */
  }
}

 main.profile-container {
      max-width: 900px;
      margin: 30px auto;
      padding: 30px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    }

    .profile-photo {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      border: 4px solid #9b59b6;
      object-fit: cover;
      margin-bottom: 15px;
    }

    .username {
      font-size: 1.9em;
      color: #111;
      margin: 10px 0 20px;
      text-shadow: 0 0 3px rgba(255,255,255,0.3);
    }

    .info-box {
      background: rgba(255, 255, 255, 0.8);
      border-radius: 12px;
      padding: 20px;
      text-align: left;
      color: #222;
      width: 80%;
      margin: 0 auto 25px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }

    .info-box strong { color: #6a11cb; }

    .bio {
      color: #333;
      font-style: italic;
      font-size: 1.05em;
      line-height: 1.6;
      background: rgba(255,255,255,0.75);
      padding: 18px;
      border-radius: 10px;
      width: 80%;
      margin: 20px auto;
      box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    }

    section.profile-section {
      margin-top: 35px;
      text-align: left;
      background: rgba(255,255,255,0.75);
      border-radius: 12px;
      padding: 20px;
      width: 85%;
      margin-left: auto;
      margin-right: auto;
      box-shadow: 0 0 25px rgba(0,0,0,0.08);
    }

    section.profile-section h3 {
      margin-bottom: 15px;
      border-bottom: 1px solid rgba(0,0,0,0.1);
      padding-bottom: 5px;
      color: #2575fc;
    }

    .item-card {
      background: rgba(255,255,255,0.85);
      border-radius: 10px;
      padding: 10px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .item-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .item-card img {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border-radius: 8px;
      margin-right: 12px;
    }

    .item-info { flex: 1; }

    .item-title { font-weight: bold; color: #222; margin-bottom: 4px; }

    .item-desc { color: #555; font-size: 0.9em; }

    .edit-profile-btn {
      display: inline-block;
      background: linear-gradient(135deg, #6a11cb, #2575fc);
      color: #fff;
      text-decoration: none;
      padding: 10px 25px;
      border-radius: 8px;
      margin-top: 30px;
      font-weight: bold;
      transition: 0.3s ease;
      box-shadow: 0 0 8px rgba(0,0,0,0.2);
    }

    .edit-profile-btn:hover {
      background: linear-gradient(135deg, #2575fc, #6a11cb);
      transform: translateY(-1px);
      box-shadow: 0 0 15px rgba(0,0,0,0.3);
    }

.agenda-form {
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agenda-form label {
  font-weight: 600;
  margin-top: 5px;
}

.agenda-form input,
.agenda-form textarea,
.agenda-form select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row div {
  flex: 1;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-blue:hover {
  background: #1d4f77;
}

/* ===== 🎯 Agenda layout fix ===== */
main .agenda-container {
  max-width: 900px;          /* maakt het smaller */
  margin: 2rem auto;         /* centreert het in het midden */
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* iets smallere tekstblokken binnen */
.agenda-form,
.agenda-lijst {
  max-width: 700px;
  margin: 0 auto;
}

/* Formulieren netjes uitlijnen */
.agenda-form input,
.agenda-form textarea,
.agenda-form select {
  width: 100%;
}

/* afbeelding + info in overzicht beter uitlijnen */
.agenda-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* responsieve weergave op mobiel */
@media (max-width: 768px) {
  main .agenda-container {
    max-width: 95%;
    padding: 1rem;
  }

  .agenda-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .agenda-item img {
    width: 90%;
    max-width: 280px;
  }
}
.agenda-info {
  flex: 1;
}

.agenda-info h4 {
  margin-bottom: 5px;
  color: var(--blue);
}

.agenda-info p {
  margin: 4px 0;
  color: #333;
  line-height: 1.4;
}

/* =====================================================
   🌍 WORLDBAR – Deel je Prikbord style
   - Los van navigatie (witte translucent basis)
   - 3 regels: locatie / datum+tijd / weer
   - Controls: zoeken + GPS
   - Results dropdown
   - Dag/Nacht tint voor hele bar + chip
===================================================== */

.worldbar{
  position: sticky;
  top: 0;
  z-index: 998;

  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;

  /* ✅ Basis: opac wit, duidelijk anders dan nav */
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: nlur(16x);	

  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);

  transition: background 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease,
}

/* ✅ Dag/Nacht tint op de HELE worldbar */
.worldbar.is-night{
  background: rgba(28, 32, 48, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 26px rgba(0,0,0,0.28);
  color: #f3f6ff;
}

/* =========================
   3 REGELS (lines)
========================= */
.world-line{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.world-line-location{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.world-line-datetime{
  font-size: 14px;
  opacity: 0.92;
}

.world-line-weather{
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}

/* punt separator */
.world-dot{
  margin: 0 6px;
  opacity: 0.6;
}

/* =========================
   WEER CHIP (subtiel)
========================= */
#worldWeather{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(7px);

  box-shadow: 0 2px 10px rgba(0,0,0,0.10);

  transition: background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.worldbar.is-night #worldWeather{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

/* =========================
   CONTROLS (search + GPS)
========================= */
.world-controls{
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.world-controls input{
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.16);

  background: rgba(255,255,255,0.90);
  color: #111;

  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.world-controls input:focus{
  border-color: rgba(47,111,163,0.45);
  box-shadow: 0 0 0 3px rgba(47,111,163,0.18);
}

/* Nacht input */
.worldbar.is-night .world-controls input{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: #f3f6ff;
}

.worldbar.is-night .world-controls input::placeholder{
  color: rgba(243,246,255,0.75);
}

.world-controls button{
  padding: 9px 12px;
  border-radius: 10px;

  border: 1px solid rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.92);

  cursor: pointer;
  font-weight: 700;

  transition: transform 0.08s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.world-controls button:active{
  transform: scale(0.98);
}

/* Nacht button */
.worldbar.is-night .world-controls button{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: #f3f6ff;
}

/* =========================
   RESULTS dropdown/list
========================= */
#worldResults{
  margin-top: 6px;
  width: 100%;
  display: block;
}

.world-result{
  width: 100%;
  text-align: left;

  margin-top: 8px;
  padding: 10px 12px;

  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);

  background: rgba(255,255,255,0.92);
  cursor: pointer;

  transition: transform 0.08s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.world-result:hover{
  background: rgba(255,255,255,0.98);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.world-result:active{
  transform: scale(0.99);
}

.world-result-empty{
  opacity: 0.75;
  padding: 8px 2px;
  font-size: 13px;
}

/* Nacht results */
.worldbar.is-night .world-result{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  color: #f3f6ff;
}

.worldbar.is-night .world-result:hover{
  background: rgba(255,255,255,0.14);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.worldbar.is-night .world-result-empty{
  color: rgba(243,246,255,0.80);
  opacity: 1;
}

/* =========================
   MOBIEL: netjes stapelen
========================= */
@media (max-width: 520px){
  .worldbar{
    padding: 12px 12px;
  }

  .world-line-location{
    font-size: 15px;
  }

  .world-line-datetime,
  .world-line-weather{
    font-size: 13px;
  }

  .world-controls{
    gap: 8px;
  }

  .world-controls input{
    min-width: 0;
  }
}

/* =====================================================
   🌍 WORLDBAR – TEXT CONTRAST FIX (Edge/Android)
   -> Overdag: donkerder tekst
   -> Nacht: lichte tekst
===================================================== */

/* Overdag: maak alle worldbar-tekst donker */
.worldbar{
  color: #1b1f2a;                 /* hoofdtekst donker */
}

.worldbar .world-line-datetime{
  color: rgba(27,31,42,0.82);     /* iets zachter */
}

.worldbar .world-line-weather{
  color: rgba(27,31,42,0.92);
}

/* Locatie mag iets zwaarder/duidelijker */
.worldbar .world-line-location{
  color: #111827;
}

/* Weer-chip: donkere tekst in de chip */
.worldbar #worldWeather{
  color: #111827;
}

/* Inputs/knoppen: tekst donker + placeholder */
.worldbar .world-controls input{
  color: #111827;
}

.worldbar .world-controls input::placeholder{
  color: rgba(17,24,39,0.55);
}

.worldbar .world-controls button{
  color: #111827;
}

/* Resultaten in dropdown donker */
.worldbar .world-result{
  color: #111827;
}

/* =====================================================
   🌙 Nachtmodus: tekst licht (alleen als .is-night gezet)
===================================================== */
.worldbar.is-night{
  color: #f3f6ff;
}

.worldbar.is-night .world-line-datetime{
  color: rgba(243,246,255,0.88);
}

.worldbar.is-night .world-line-weather{
  color: rgba(243,246,255,0.92);
}

.worldbar.is-night #worldWeather{
  color: #f3f6ff;
}

.worldbar.is-night .world-controls input{
  color: #f3f6ff;
}

.worldbar.is-night .world-controls input::placeholder{
  color: rgba(243,246,255,0.72);
}

.worldbar.is-night .world-controls button{
  color: #f3f6ff;
}

.worldbar.is-night .world-result{
  color: #f3f6ff;
}

.chipbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.cat-chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.15);
  background:rgba(255,255,255,0.85);
  cursor:pointer;
  font-size:14px;
  transition:0.15s ease;
  user-select:none;
}

.cat-chip:hover{
  transform:translateY(-1px);
}

.cat-chip.active{
  background:rgba(46,162,126,0.18);
  border-color:rgba(46,162,126,0.6);
  font-weight:600;
}

.page-shell{ max-width: 1200px; margin: 0 auto; padding: 16px; }
.section{
  background: rgba(255,255,255,0.86);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
}

.toolbar{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  flex-wrap:wrap; margin-bottom: 12px;
}
.toolbar-left, .toolbar-right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.input{
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85); min-width: 240px; outline: none;
}
.btn{
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85); cursor:pointer; transition: .15s ease;
}
.btn:hover{ transform: translateY(-1px); }

/* Collapser */
.collapser{ width:100%; margin: 10px 0 14px; }
.collapser-btn{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85);
  cursor:pointer;
}
.collapser-btn .chev{ transition: transform .18s ease; font-size: 16px; }
.collapser-body{ margin-top: 10px; display:none; }
.collapser-body.open{ display:flex; flex-wrap:wrap; gap:8px; }

/* Category chips */
.cat-chip{
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(0,0,0,0.15);
  background:rgba(255,255,255,0.85);
  cursor:pointer; font-size:14px; transition:0.15s ease; user-select:none;
}
.cat-chip:hover{ transform: translateY(-1px); }
.cat-chip.active{
  background: rgba(46,162,126,0.18);
  border-color: rgba(46,162,126,0.6);
  font-weight: 600;
}

/* Board container */
.board-groups{ display:flex; flex-direction:column; gap:16px; }
.empty{ padding: 16px; color:#333; opacity:.85; font-style: italic; }

/* =========================================================
   NOTITIES.HTML – COMPLETE PAGE CSS (Deel je Prikbord style)
   Plak dit in <style> van notities.html (of in style.css)
   Vereiste IDs/classes:
   - .page-shell, .section, .toolbar, .btn, .input, .select
   - .collapser, #noteCatToggleBtn, #noteCategories
   - .cat-chip (categorie chips)
   - .stickers, .st (stickers chips)
   - #preview (preview box)
   - .status (statusmelding)
   ========================================================= */

/* ---------- Page base ---------- */
body{
  margin:0;
  font-family: "Segoe UI", Arial, sans-serif;
  color:#222;
  background: url("assets/achtergrond.jpg") no-repeat center center fixed;
  background-size: cover;
}

a{ color: inherit; }
*{ box-sizing: border-box; }

/* ---------- Layout wrappers ---------- */
.page-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.section{
  background: rgba(255,255,255,0.88);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
}

/* ---------- Top row / toolbar ---------- */
.toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}

.toolbar-left{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 240px;
}

.toolbar-right{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

h2{
  margin:0;
  color:#222;
  font-size: 1.25rem;
}

.hint{
  color:#333;
  opacity:.78;
  font-size: .92rem;
  line-height: 1.35;
}

/* ---------- Inputs ---------- */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

label{
  font-weight: 700;
  color:#222;
  font-size: .98rem;
}

.input, .select, textarea{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.88);
  outline: none;
  font-family: inherit;
  color:#222;
}

textarea{
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}

.input:focus, .select:focus, textarea:focus{
  border-color: rgba(46,162,126,0.65);
  box-shadow: 0 0 0 3px rgba(46,162,126,0.12);
}

/* File inputs: iets netter */
input[type="file"].input{
  padding: 9px 10px;
}

/* Disabled */
.select:disabled, .input:disabled, textarea:disabled{
  opacity: .65;
  cursor: not-allowed;
}

/* ---------- Buttons ---------- */
.btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.86);
  cursor:pointer;
  transition: .15s ease;
  font-weight: 600;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0px);
}

.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
}

/* ---------- Grid form layout ---------- */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid .span-2{ grid-column: 1 / -1; }

@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .toolbar{ align-items:stretch; }
  .toolbar-right{ justify-content:flex-start; }
}

/* ---------- Collapser (inklappen) ---------- */
.collapser{
  width: 100%;
  margin: 8px 0 0;
}

.collapser-btn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85);
  cursor:pointer;
}

.collapser-btn:focus{
  outline: none;
  border-color: rgba(46,162,126,0.65);
  box-shadow: 0 0 0 3px rgba(46,162,126,0.12);
}

.collapser-btn .chev{
  transition: transform .18s ease;
  font-size: 16px;
}

.collapser-body{
  margin-top: 10px;
  display:none; /* dicht */
}

.collapser-body.open{
  display:flex; /* open */
  flex-wrap:wrap;
  gap:8px;
}

/* ---------- Category chips ---------- */
.cat-chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85);
  cursor:pointer;
  font-size: 14px;
  transition: .15s ease;
  user-select:none;
  white-space: nowrap;
}

.cat-chip:hover{
  transform: translateY(-1px);
}

.cat-chip.active{
  background: rgba(46,162,126,0.18);
  border-color: rgba(46,162,126,0.60);
  font-weight: 700;
}

/* ---------- Stickers block ---------- */
.stickers{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
}

.st{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.82);
  cursor:pointer;
  user-select:none;
  font-size: 14px;
  display:flex;
  align-items:center;
  gap:8px;
  transition: .15s ease;
}

.st:hover{ transform: translateY(-1px); }

.st.active{
  background: rgba(46,162,126,0.18);
  border-color: rgba(46,162,126,0.55);
  font-weight: 800;
}

/* ---------- Preview box ---------- */
.preview{
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
}

.preview img{
  width:100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  display:block;
  background:#fff;
}

.preview audio{
  width:100%;
  margin-top: 10px;
}

/* ---------- Bottom actions + status ---------- */
.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.actions-left{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.status{
  font-weight: 800;
  color:#222;
}

/* ---------- Small helpers ---------- */
.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* If you show errors/success in status */
.status.ok{ color:#1f7a5a; }
.status.err{ color:#a11b1b; }

/* =========================================================
   🏙️ STEDEN / STADPAGINA STYLING (Deel je Prikbord style)
   Plaats onderaan in style.css
========================================================= */

/* Container hulp (als je al .container/.section hebt, laat die staan) */
.city-shell{
  max-width: 1200px;
  margin: 22px auto 70px;
  padding: 0 14px;
}

/* Breadcrumb */
.city-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size: .95rem;
  color: rgba(0,0,0,.75);
  margin: 6px 0 12px;
}
.city-breadcrumb a{
  color: rgba(0,0,0,.80);
  text-decoration:none;
  background: rgba(255,255,255,.55);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
}
.city-breadcrumb a:hover{
  background: rgba(255,255,255,.75);
}

/* Hero kaart (kaart + info) */
.city-hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
@media (max-width: 920px){
  .city-hero{ grid-template-columns: 1fr; }
}

/* Kaart placeholder (jouw kaart/afbeelding) */
.city-map{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  min-height: 260px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(0,0,0,.08);
}
.city-map img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.03);
}
.city-pin{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-55%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
  font-size: 26px;
}

/* Info kolom */
.city-info{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding: 6px 6px 6px 2px;
}
.city-title{
  margin:0;
  font-size: 1.65rem;
  color:#1f1f1f;
  letter-spacing:.2px;
}
.city-subtitle{
  margin: -4px 0 6px;
  color: rgba(0,0,0,.70);
  font-size: .98rem;
}

/* CTA knoppen */
.city-cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 6px;
}
.city-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  color:#1f1f1f;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}
.city-btn:hover{
  background: rgba(255,255,255,.85);
  transform: translateY(-1px);
}
.city-btn.primary{
  background: rgba(46,162,126,.18); /* groen tint */
  border-color: rgba(46,162,126,.35);
}
.city-btn.primary:hover{
  background: rgba(46,162,126,.26);
}

/* “Terug” link knop */
.city-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color: rgba(0,0,0,.78);
  font-weight: 700;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  padding: 8px 12px;
  border-radius: 999px;
  width: fit-content;
}
.city-back:hover{ background: rgba(255,255,255,.75); }

/* Grid met blokken (Posts/Events/Groepen/…) */
.city-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .city-grid{ grid-template-columns: 1fr; }
}
.city-card{
  grid-column: span 4;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.city-card.wide{ grid-column: span 8; }
@media (max-width: 980px){
  .city-card, .city-card.wide{ grid-column: span 12; }
}
.city-card h3{
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1f1f1f;
}
.city-card p{
  margin: 0;
  color: rgba(0,0,0,.75);
  line-height: 1.4;
}

/* KPI chips (aantallen) */
.city-kpis{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 8px;
}
.city-kpi{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(0,0,0,.08);
  min-width: 120px;
}
.city-kpi .num{
  font-size: 1.25rem;
  font-weight: 800;
  color:#1f1f1f;
}
.city-kpi .lbl{
  font-size: .88rem;
  color: rgba(0,0,0,.68);
}

/* Events lijst (cards binnen events-block) */
.events-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top: 10px;
}
.event-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
}
.event-thumb{
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.08);
  object-fit: cover;
  flex: 0 0 auto;
}
.event-body{ flex:1; }
.event-body h4{
  margin: 0 0 6px;
  font-size: 1.02rem;
  color:#1f1f1f;
}
.event-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size: .9rem;
  color: rgba(0,0,0,.70);
}
.event-desc{
  margin: 8px 0 0;
  color: rgba(0,0,0,.75);
  line-height: 1.35;
}

/* Kleine helpers */
.muted{ color: rgba(0,0,0,.65); }
.sep{ opacity:.55; padding: 0 2px; }

/* =========================================
   STAD / COMMUNITY PAGINA
========================================= */

.page-shell{
  max-width:1200px;
  margin:18px auto 80px;
  padding:0 12px;
}

.page-card{
  background:rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 26px rgba(0,0,0,.12);
  border:1px solid rgba(0,0,0,.08);
}

/* breadcrumb */
.crumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:4px 0 14px;
}

.crumbs a{
  color:#2a6c8a;
  text-decoration:none;
  font-weight:600;
}

.crumbs a:hover{
  text-decoration:underline;
}

.crumbs .sep{
  opacity:.5;
}

/* stad header */
.hero{
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:8px;
}

.pinbox{
  width:90px;
  height:90px;
  border-radius:22px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
}

.hero h1{
  margin:0;
  font-size:2.8rem;
}

.meta{
  margin-top:6px;
  color:#333;
  opacity:.85;
  font-size:1.1rem;
}

/* knoppen */
.btnrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.btn{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.15);
  background:rgba(255,255,255,.88);
  color:#222;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:500;
}

.btn:hover{
  background:rgba(255,255,255,.95);
}

.btn.primary{
  background:rgba(170,230,220,.7);
  font-weight:700;
}

/* intro tekst */
.intro{
  margin-top:16px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:16px;
  line-height:1.6;
  text-align:center;
  color:#222;
}

/* =========================================
   CITY / STAD INTRO PAGINA (PRO)
========================================= */

.page-shell{
  max-width:1200px;
  margin:18px auto 90px;
  padding:0 12px;
}

.page-card{
  background:rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 26px rgba(0,0,0,.12);
  border:1px solid rgba(0,0,0,.08);
}

/* breadcrumb */
.crumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:2px 0 14px;
}
.crumbs a{
  color:#246b86;
  text-decoration:none;
  font-weight:700;
}
.crumbs a:hover{ text-decoration:underline; }
.crumbs .sep{ opacity:.55; }

/* hero */
.hero{
  display:flex;
  gap:16px;
  align-items:center;
  margin:6px 0 10px;
}
.pinbox{
  width:92px;
  height:92px;
  border-radius:22px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
}
.hero h1{
  margin:0;
  font-size:2.6rem;
  letter-spacing:.2px;
}
.meta{
  margin-top:6px;
  color:#2a2a2a;
  opacity:.86;
  font-size:1.08rem;
}

/* action buttons */
.btnrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.15);
  background:rgba(255,255,255,.88);
  color:#222;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}
.btn:hover{ background:rgba(255,255,255,.97); }
.btn.primary{
  background:rgba(170,230,220,.72);
  border-color: rgba(0,0,0,.10);
  font-weight:800;
}

/* quick stats */
.stats{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}
.stat{
  background:rgba(255,255,255,.70);
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:12px;
  text-align:center;
}
.stat .num{
  font-size:1.55rem;
  font-weight:900;
  margin:0;
}
.stat .lbl{
  margin:2px 0 0;
  opacity:.75;
  font-weight:600;
}

/* info cards */
.city-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:12px;
}
.card{
  background:rgba(255,255,255,.70);
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:14px;
}
.card h3{
  margin:0 0 8px;
  font-size:1.15rem;
}
.card p{ margin:0; line-height:1.6; opacity:.95; }

.list{
  margin:0;
  padding-left:18px;
  line-height:1.7;
}
.list li{ margin:4px 0; }

/* mobile */
@media (max-width: 820px){
  .hero h1{ font-size:2.2rem; }
  .stats{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .city-grid{ grid-template-columns:1fr; }
}
@media (max-width: 420px){
  .pinbox{ width:78px; height:78px; font-size:30px; }
  .stats{ grid-template-columns:1fr; }
}

/* =========================
   PRIKBORD / BOARD GRID
   ========================= */
#list.notes-grid,
.notes-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* tablet / desktop: 3 kolommen */
@media (min-width: 980px){
  #list.notes-grid,
  .notes-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* mobiel: 1 kolom */
@media (max-width: 720px){
  #list.notes-grid,
  .notes-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   NOTE CARD
   ========================= */
.note-card{
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);

  display: flex;
  flex-direction: column;
  position: relative;
  height: auto;

  overflow: hidden;
}

/* titel + meta */
.note-top{ margin-bottom: 10px; }
.note-title{ font-size: 1.12rem; font-weight: 800; margin-bottom: 4px; }
.note-meta{ font-size: .92rem; opacity: .85; }

/* media */
.note-img,
.sticker-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  margin: 10px 0 8px;
}

/* als jouw note-img rond moet zijn (zoals screenshot): */
.note-img{
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* tekst */
.note-text{
  line-height: 1.45;
  margin-top: 6px;
  word-break: break-word;
}

/* =========================
   ACTIONS (likes + knoppen)
   ========================= */
.note-actions{
  margin-top: auto;                 /* ✅ blijft onderaan, geen overlap */
  padding-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;

  position: static !important;      /* ✅ kill absolute/fixed uit oude CSS */
}

/* like button */
.like-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  cursor: pointer;
}

/* link buttons */
.link-btn{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   FOOTER
===================================================== */

footer{
  text-align:center;
  padding:40px 20px;
  color:#fff;
  font-size:0.95rem;
  line-height:1.6;

  background:rgba(0,0,0,0.25);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

footer .footer-links{
  margin-top:18px;
}

footer .footer-links a{
  color:#fff;
  text-decoration:none;
  margin:0 14px;
  font-size:0.95rem;
  opacity:0.9;
  transition:all .2s ease;
}

footer .footer-links a:hover{
  opacity:1;
  text-decoration:underline;
}



/* ================================
📦 Advertentie blokken
================================ */

/* advertenties */

.ad-list{
  display:grid;
  gap:12px;
}

.ad-box{
  min-height:110px;
  border-radius:12px;
  border:1px dashed rgba(0,0,0,.15);
  background:rgba(255,255,255,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:700;
}

/* =========================
   Advertenties / professioneel
========================= */

.ads-wrapper{
  width: min(1180px, calc(100% - 28px));
  margin: 26px auto;
  padding: 22px;

  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);

  box-sizing: border-box;
}

.ads-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ads-title{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.2px;
}

.ads-subtitle{
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #6b7280;
}

/* lijst */
.ads-list{
  display: grid;
  gap: 16px;
}

/* losse advertentiekaart */
.ad-box{
  position: relative;
  overflow: hidden;

  min-height: 140px;
  padding: 18px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 4px 14px rgba(0,0,0,0.05);

  color: #374151;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;

  box-sizing: border-box;
}

.ad-box:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 10px 24px rgba(0,0,0,0.08);
  background: linear-gradient(180deg, #fcfcfc 0%, #f5f5f5 100%);
}

.ad-box::before{
  content: "Advertentie";
  position: absolute;
  top: 12px;
  left: 12px;

  padding: 5px 10px;
  border-radius: 999px;

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.07);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #6b7280;
}

.ad-box.empty{
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
  color: #6b7280;
}

/* als je later echte content wil */
.ad-content{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.ad-title{
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1f2937;
}

.ad-text{
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #4b5563;
}

/* mobiel */
@media (max-width: 768px){
  .ads-wrapper{
    width: calc(100% - 18px);
    padding: 16px;
    border-radius: 18px;
  }

  .ads-title{
    font-size: 1.1rem;
  }

  .ad-box{
    min-height: 120px;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .ad-box::before{
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    padding: 4px 8px;
  }
}

.share-chat-avatar{
  width:42px !important;
  height:42px !important;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 42px;
}

.main-nav{
  position:relative;
  padding-right:80px;
}

#globalNavbarAvatarWrap{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  z-index:999;
}

#globalNavbarAvatar{
  display:block;
  width:44px !important;
  height:44px !important;
  padding:0 !important;
  margin:0 !important;
  background:none !important;
  border:none !important;
  text-decoration:none !important;
  border-radius:50%;
  overflow:hidden;
}

#globalNavbarAvatar img{
  width:44px !important;
  height:44px !important;
  object-fit:cover;
  display:block;
  border-radius:50%;
}

/* =========================
   GIF PICKER
   ========================= */

.gif-wrap{
  position:relative;
  margin-top:8px;
}

.gif-toggle{
  border:none;
  border-radius:999px;
  padding:8px 14px;
  background:rgba(47,111,163,.10);
  color:#2f6fa3;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.gif-toggle:hover{
  background:rgba(47,111,163,.18);
}

.gif-panel{
  position:absolute;
  top:52px;
  left:0;
  width:360px;
  max-width:min(92vw, 360px);
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:12px;
  box-shadow:0 16px 40px rgba(0,0,0,.16);
  z-index:9999;
}

.gif-search{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  padding:10px 12px;
  font-size:.95rem;
  outline:none;
  margin-bottom:10px;
}

.gif-search:focus{
  border-color:#2f6fa3;
  box-shadow:0 0 0 3px rgba(47,111,163,.10);
}

.gif-results{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:8px;
  max-height:320px;
  overflow-y:auto;
  padding-right:4px;
}

.gif-item{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  border-radius:12px;
  overflow:hidden;
  transition:transform .15s ease;
}

.gif-item:hover{
  transform:scale(1.03);
}

.gif-item img{
  width:100%;
  display:block;
  border-radius:12px;
  object-fit:cover;
}

.gif-loading{
  grid-column:1 / -1;
  text-align:center;
  padding:18px;
  color:#64748b;
  font-weight:700;
}

/* mobiel */
@media (max-width: 600px){
  .gif-panel{
    width:min(94vw, 340px);
    left:50%;
    transform:translateX(-50%);
  }

  .gif-results{
    grid-template-columns:1fr 1fr;
    max-height:260px;
  }
}

.gif-topbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom:8px;
}

.gif-trending-btn{
  border:none;
  border-radius:999px;
  padding:7px 11px;
  background:rgba(234,88,12,.10);
  color:#c2410c;
  font-weight:800;
  cursor:pointer;
}

.gif-rendered{
  margin-top:8px;
}

.gif-rendered img{
  max-width:260px;
  width:100%;
  border-radius:14px;
  display:block;
}

.composer-toolbar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:10px;
}

.composer-toolbar .sticker-wrap,
.composer-toolbar .gif-wrap{
  margin-top:0;
}

.composer-toolbar .profile-post-btn{
  margin-left:auto;
}

.mention-panel{
  position:absolute;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  box-shadow:0 16px 38px rgba(0,0,0,.16);
  z-index:99999;
  overflow:hidden;
  max-height:260px;
  overflow-y:auto;
}

.mention-item{
  width:100%;
  border:none;
  background:#fff;
  display:flex;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  cursor:pointer;
  text-align:left;
}

.mention-item:hover{
  background:rgba(47,111,163,.08);
}

.mention-item img{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
}

.mention-item span{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.mention-item small{
  opacity:.65;
  margin-top:2px;
}

.profile-feed-composer .gif-panel{
  position:static;
  width:100%;
  max-width:100%;
  margin-top:12px;
  transform:none;
}

.profile-feed-composer .gif-wrap{
  position:static;
}

.profile-feed-composer .gif-results{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

@media(max-width:600px){
  .profile-feed-composer .gif-panel{
    width:100%;
    left:auto;
    transform:none;
  }
}

/* GIF panel binnen profile composer netjes onder toolbar */
.profile-feed-composer .gif-wrap{
  position:static !important;
}

.profile-feed-composer .gif-panel{
  position:static !important;
  display:block;
  width:100% !important;
  max-width:100% !important;
  margin-top:14px !important;
  transform:none !important;
  left:auto !important;
  top:auto !important;
  box-sizing:border-box;
}

.profile-feed-composer .gif-panel[style*="display:none"]{
  display:none !important;
}

.profile-feed-composer .gif-results{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  max-height:300px;
}

.gif-panel-inline{
  position:static !important;
  width:100% !important;
  max-width:100% !important;
  margin-top:14px !important;
  transform:none !important;
  left:auto !important;
  top:auto !important;
}

.composer-toolbar .gif-wrap{
  position:static !important;
}

.main-nav {
  position: relative;
}

.site-header,
header {
  position: relative;
  overflow: hidden;
}

.site-header h1,
header h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-58%, -50%);
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.sticker-wrap{
  margin-top:10px;
}

.sticker-toggle{
  border:none;
  border-radius:999px;
  padding:8px 12px;
  background:rgba(47,111,163,.10);
  color:#2f6fa3;
  font-weight:800;
  cursor:pointer;
}

.sticker-panel{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(8, 1fr);
  gap:6px;
  padding:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  max-height:230px;
  overflow:auto;
}

.sticker-item{
  border:none;
  background:rgba(0,0,0,.04);
  border-radius:10px;
  padding:7px;
  font-size:1.25rem;
  cursor:pointer;
}

.sticker-item:hover{
  background:rgba(47,111,163,.12);
}

.gif-search-row{
  display:flex;
  gap:8px;
  margin:8px 0;
}

.gif-search{
  flex:1;
  min-width:0;
}

.gif-search-btn{
  border:none;
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
  background:#2f6fa3;
  color:#fff;
}

@media(max-width:700px){
  .gif-search-row{
    flex-direction:column;
  }

  .gif-search-btn{
    width:100%;
    min-height:44px;
  }
}