
/* -----------------------------------
   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(--header-color);
  flex-direction: row;
  position: relative;
  z-index: 100;
  /* Dubbele rand eigenschappen gecombineerd */
  border-bottom: 3px solid transparent; 
  border-image: var(--border-image-country-header);
  background-clip: padding-box;
}

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

.header-title {
  font-family: 'Montserrat', sans-serif;
  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 {
  font-family: 'Montserrat', sans-serif;
  display: flex; 
  background-color: var(--secondary);
  padding: 1rem 1.5rem;
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
  position: static;
  left: 0;
  top: 5.6rem;
  z-index: 1000;
  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(--header-color); /* Dubbele color: var(--white); verwijderd */
  font-weight: bold;
  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; /* Wordt overschreven door .user-menu > .user-icon */
  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 {
  font-family: 'Montserrat', sans-serif;
  display: none;
  background-color: var(--accent-green);
  padding: 1rem 1rem;
  right: 0rem;
  top: 5.7rem;
  max-width: 100rem;
  width: auto;
  z-index: 1001;
  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;
  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(--header-color);
  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: black;
  color: #ccc;
  /* Dubbele rand eigenschappen gecombineerd */
  border-top: 3px solid transparent; 
  border-image: var(--border-image-country-header);
  background-clip: padding-box; 
}

.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) {
  
  /* Layout en Container Aanpassingen */
  .main-header {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .header-left,
  .header-right {
    flex: 1;
    justify-content: space-between;
    margin-bottom: 0; /* Herhaald, maar behouden */
  }
  
  .header-left {
    justify-content: left;
  }
  
  .header-right {
    justify-content: right;
  }
  
  .header-center {
    display: flex;
    justify-content: center;
    flex: 0;
  }
  
  /* Navigatie Menu's */
  .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;
  }

  .full-nav {
    display: none; /* Wordt overschreven door volgende regel */
    /* Duplicaten verwijderd, overblijvende regels samengevoegd */
    padding: 1rem 0.5rem;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    left: 0;
    top: 3.5rem;
    z-index: 100;
    box-sizing: border-box;
    /* display: none; en flex-direction: column; (verwijderd, omdat .full-nav.active de display al instelt) */
  }

  /* Alleen tonen bij active */
  .full-nav.active {
    display: flex;
  }

  .user-full-nav {
    display: none;
    padding: 1rem 1rem;
    right: 0rem;
    top: 3.5rem;
    z-index: 100;
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    background-color: var(--accent-green);
    position: absolute;
    width: 100vw;
  }

  /* Knoppen & Elementen */
  .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;
  }
  
  .hamburger-menu {
    display: flex;
  }

  .user-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

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