/* header.css — header, navigation, and footer chrome. Structurally shared
   across games (tour/wc use the same layout); colors come from tokens.css,
   which must load first. */

/* 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 above .full-nav (1000) so the header and anything overflowing
     from it (e.g. the open language dropdown) stays above the nav bar. */
  z-index: 1001;
  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-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(--primary);
  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(--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: var(--radius-pill, 999px);
  text-decoration: none;
  font-weight: bold;
  transition: all var(--transition-base, 0.2s ease);
  white-space: nowrap;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(10, 30, 64, 0.08));
}

.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 var(--transition-base, 0.2s ease);
}

.btn-login:hover,
.btn-signup:hover {
  box-shadow: var(--shadow-md, 0 4px 14px rgba(10, 30, 64, 0.12));
  transform: translateY(-1px);
}

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

/* Language switcher (nl/en/fr/de) — see php/header.php / php/lang_helpers.php.
   Same open/close interaction pattern as .user-menu, toggled via an
   "is-open" class from the small <script> at the bottom of header.php. */
.language-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
  z-index: 2000;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.lang-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lang-toggle .flag-icon {
  width: 1.5rem;
  height: 1rem;
  border-radius: 0.15rem;
  object-fit: cover;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  display: block;
}

.lang-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: 100%;
  /* Centered under the visible flag (.lang-toggle) rather than right:0,
     so the flags in the menu line up with the toggle itself. */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md, 0 4px 14px rgba(10, 30, 64, 0.2));
  z-index: 2001;
  min-width: 2.5rem;
}

.lang-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lang-menu li {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 0.2rem;
  transition: background-color 0.2s ease;
}

.lang-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lang-menu .flag-icon {
  width: 1.5rem;
  height: 1rem;
  border-radius: 0.15rem;
  object-fit: cover;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  display: block;
}

/* 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-orange);
  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-orange);
  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);
}

/* Hamburger menu & 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;
}

/* Footer */
.main-footer {
  width: 100%;
  max-width: 100rem;
  margin: 20px auto 0;
  padding: 30px 20px;
  box-sizing: border-box;
  background-color: black;
  color: #ccc;
  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);
}

.footer-social-wrapper {
    width: 100%;
    max-width: 70%;
    margin: 0 auto 25px auto;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .footer-social-wrapper {
        max-width: 100%;
    }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 0 2rem 2rem;
}

.footer-social a {
    color: #B6B6B6;
    font-size: 2rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: #FFFFFF;
}


   .footer-social {
        gap: 70px;
    }

/* Responsive (medium — max-width: 768px). See tokens.css for the two
   canonical breakpoint values. */
@media (max-width: 768px) {

  /* Layout & container adjustments */
  .main-header {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
  }

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

  .header-left {
    justify-content: left;
  }

  .header-right {
    justify-content: right;
  }

  .header-center {
    display: flex;
    justify-content: center;
    flex: 0;
  }

  /* Navigation menus */
  .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;
    padding: 1rem 0.5rem;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    left: 0;
    top: 3.5rem;
    z-index: 100;
    box-sizing: border-box;
  }

  /* 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-orange);
    position: absolute;
    width: 100vw;
  }

  /* Buttons & elements */
  .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;
  }

       .footer-social {
        gap: 30px;
    }

}

