/* ==========================================================================
   MOBILE MENU - Toevoegen aan style.css
   ========================================================================== */

/* Header container - flex layout */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo sizing */
header .logo img {
  height: 50px;
  width: auto;
}

/* Navigation - desktop (default) */
.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
  background-color: #f0f4f8;
  color: #1a365d;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a365d;
  position: relative;
  transition: background-color 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #1a365d;
  transition: transform 0.3s, top 0.3s;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger animation - active state (X shape) */
.nav-toggle.is-active .hamburger {
  background-color: transparent;
}

.nav-toggle.is-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}


/* ==========================================================================
   MOBILE STYLES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  
  /* Show hamburger button */
  .nav-toggle {
    display: block;
  }
  
  /* Navigation - hidden by default on mobile */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    z-index: 1000;
  }
  
  /* Navigation - open state */
  .main-nav.is-open {
    display: flex;
  }
  
  /* Navigation links - full width on mobile */
  .main-nav a {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
  
  .main-nav a:hover,
  .main-nav a:active {
    background-color: #f0f4f8;
  }
  
  /* Header needs relative positioning for dropdown */
  header {
    position: relative;
  }
  
  /* Ensure header container doesn't overflow */
  .header-container {
    position: relative;
  }
  
  /* Smaller logo on mobile */
  header .logo img {
    height: 40px;
  }
}


/* ==========================================================================
   COOKIE BUTTON (floating)
   ========================================================================== */
#swoops-cookie-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #1a365d;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
}

#swoops-cookie-btn:hover {
  background: #2d4a7c;
  transform: scale(1.05);
}

#swoops-cookie-btn:focus {
  outline: 2px solid #4a90d9;
  outline-offset: 2px;
}

/* Move cookie button up on mobile to avoid thumb zone conflicts */
@media (max-width: 768px) {
  #swoops-cookie-btn {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}
