/* Universal Header Menu Styles */
.filmprocessor-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0 0 0;
  transition: all 0.4s ease;
}

/* Add top padding to body or container to account for fixed header */
body {
  padding-top: 6rem;
}

.filmprocessor-header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 1rem 0 0 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 150px;
}

.header-wrapper {
  padding: 0 150px;
  position: relative;
}

.hamburger-menu,
.hamburger-menu:hover {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
}

.hamburger-menu .hamburger-line {
  width: 20px;
  height: 2px;
  background: #00b9c7 !important;
  transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
  background: #b40096 !important;
}

.hamburger-menu.active .hamburger-line:nth-child(1),
.hamburger-menu.active .hamburger-line:nth-child(2),
.hamburger-menu.active .hamburger-line:nth-child(3) {
  width: 20px;
  transform: none;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 1.74rem;
  width: auto;
}

.header-line {
  width: 100%;
  height: 1px;
  background: #b40096;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 151px;
  right: auto;
  background: #000;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  border: none;
  box-shadow:
    -1px 0 0 0 transparent,
    1px 0 0 0 transparent,
    0 1px 0 0 transparent;
}

.dropdown-menu.active {
  max-height: 500px;
  box-shadow:
    -1px 0 0 0 #444,
    1px 0 0 0 #444,
    0 1px 0 0 #444;
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu li {
  border-bottom: 1px solid #444;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 4px 4px;
  color: #fffedc;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.2s ease;
  background: #000;
}

.dropdown-menu a:hover {
  background: #b40096;
}

.dropdown-menu a.active-page {
  background: #222;
  font-weight: 400;
}

@media (max-width: 768px) {
  .filmprocessor-header {
    padding: 1.5rem 0 0 0;
  }

  .filmprocessor-header.scrolled {
    padding: 1rem 0 0 0;
  }

  .header-content,
  .header-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .dropdown-menu {
    left: calc(2rem + 1px);
  }
}
