/* -----------------------------------
   Imports
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* -----------------------------------
   Header & Main Layout
----------------------------------- */
.main-header {
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary);
  color: var(--white);
  flex-direction: row;
  position: relative; 
  z-index: 100; /* Standaard z-index voor de header */
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-title {
  font-size: 3.4rem;
  padding: 0 0.2rem;
}

.site-title-line {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.susti-header {
  height: 4rem;
}

/* -----------------------------------
   Navigation
----------------------------------- */
.full-nav {
  display: flex; 
  background-color: var(--gray-light);
  padding: 1rem 1.5rem;
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
  position: static;
  left: 0;
  top: 5.6rem;
  z-index: 50; /* ✅ Fix: Verlaagd om onder de header/dropdown te blijven */
  box-sizing: border-box;
}

.full-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  flex-direction: row;
}

.full-nav a {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  transition: background-color 0.3s ease;
}

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

/* -----------------------------------
   User Menu & Buttons
----------------------------------- */
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-login,
.btn-signup {
  position: relative;
  background-color: #00C853;
  color: #fff;
  overflow: hidden;
}

.btn-login::after,
.btn-signup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease;
}

.btn-login:hover::after,
.btn-signup:hover::after {
  background-color: rgba(255, 255, 255, 0.25);
}

/* -----------------------------------
   Logged-in User Elements
----------------------------------- */
.user-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.user-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--accent-green);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.user-menu > .user-icon {
  display: flex;
}

.user-full-nav {
  display: none;
  background-color: var(--accent-green);
  padding: 1rem 1rem;
  position: absolute;
  right: 0rem;
  top: 5.5rem;
  max-width: 100rem; 
  width: auto;
  z-index: 99; /* ✅ Aangepast: Lager dan de dropdown */
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  left: 0;
  margin: 0 auto;
  position: absolute;
}

.user-full-nav.active {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-full-nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0rem;
  margin: 0;
  padding: 0;
}

.user-full-nav li a {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.user-full-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* -----------------------------------
   Hamburgermenu & Logos
----------------------------------- */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
}

.cl-logo {
  height: 2rem;
}

/* -----------------------------------
   Other Components
----------------------------------- */
.dropdown {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 6px;
}

.main-footer {
  width: 100%;
  max-width: 100rem;
  margin: 20px auto 0;
  padding: 30px 20px;
  box-sizing: border-box;
  background-color: var(--gray-dark);
  color: #ccc;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--white);
}

.footer-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:not(:last-child)::after {
  content: " |";
  padding-right: 5px;
}

.footer-links a:hover {
  color: var(--accent-green);
}

/* -----------------------------------
   Responsive Design
----------------------------------- */
@media (max-width: 48rem) {
  .main-header {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
  }

  .full-nav ul,
  .user-full-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .full-nav ul {
    text-align: left;
  }

  .user-full-nav ul {
    text-align: right;
  }

  .hamburger-menu {
    display: flex;
  }

  .full-nav {
    display: none;
    flex-direction: column;
    background-color: var(--gray-light);
    padding: 1rem 0.5rem;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    position: absolute;
    left: 0;
    top: 3.5rem;
    z-index: 99; /* ✅ Fix: Lager dan de dropdown */
    box-sizing: border-box;
  }


  /* Alleen tonen bij active */
  .full-nav.active {
    display: flex;
  }
  
  .user-full-nav {
    display: none;
    background-color: var(--accent-green);
    padding: 1rem 1rem;
    position: absolute;
    right: 0rem;
    top: 3.5rem;
    width: 100vw;
    z-index: 99; /* ✅ Fix: Lager dan de dropdown */
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  
  .btn-login,
  .btn-signup {
    width: 100%;
    text-align: center;
  }

  .header-title {
    font-size: 2rem;
    padding: 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .susti-header {
    display: none;
  }

  .header-left,
  .header-right {
    flex: 1;
    justify-content: space-between;
    margin-bottom: 0;
  }

  .header-left {
    flex: 1;
    justify-content: left;
    margin-bottom: 0;
  }

  .header-right {
    flex: 1;
    justify-content: right;
    margin-bottom: 0;
  }

  .header-center {
    display: flex;
    justify-content: center;
    flex: 0;
  }
  
  .user-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .user-badge {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1rem;
  }
}



/*--------------------------------------------------------------
  13. Language Switch
--------------------------------------------------------------*/
.language-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  padding-right: 8px;
}


.language-switch a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.language-switch a:hover {
  transform: scale(1.1);
}

.flag-icon {
  width: 1.52rem;
  height: auto;
}

.language-dropdown {
  position: relative;
  display: inline-block;
  margin: 0 12px;
  z-index: 9999; /* ✅ HOOGSTE Z-INDEX */
}

.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.lang-menu {
  position: absolute;
  top: 6px;
  right: -8px;
  background: rgba(60, 90, 166, 0.85);
  border: 0px solid #ccc;
  border-radius: 6px;
  padding: 6px 6px;
  list-style: none;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  z-index: 9999; /* ✅ HOOGSTE Z-INDEX */
}

/* ⭐ FIX: Voeg een verticale marge toe aan elk lijstitem */
.lang-menu li {
  padding: 0; 
  margin-bottom: 5px; 
}

/* Verwijder de marge bij het allerlaatste item */
.lang-menu li:last-child {
  margin-bottom: 0;
}

/* Stijl van de link in de dropdown */
.lang-menu li a {
  display: block;
  padding: 2px; 
  border-radius: 2px;
  transition: background-color 0.2s;
}

.lang-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15); 
}
.flag-icon {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}