/* Generic Layout */
.header-computer {
  display: flex;
  background: var(--greyBackground);
  position: relative;
  z-index: 1000;
}

.header-mobile {
  display: none;
  background: var(--greyBackground);
  padding: 0.3125rem 0.9375rem;
  border-bottom: 0.0625rem solid var(--greyBackgroundDark);
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
}

@media(max-width: 76.875rem) {
  .header-computer {
    display: none;
  }

  .header-mobile {
    display: flex;
  }
}

/* Computer Menu Styles */
.header-computer {
  flex-direction: column;
  width: 100%;

  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 3.75rem;

    .header-row-left {
      display: flex;
      flex-direction: row;
      align-items: center;

      .row-menu {
        display: flex;
      }
    }

    .header-row-right {
      width: 17%;
      max-width: 18rem;
    }
  }

  &::after {
    left: 0;
    bottom: -0.3125rem;
    background-position: left 0 top 0;
    width: 100%;
    height: 0.3125rem;
    background-image: linear-gradient(var(--greyBackground), var(--greyBackgroundDark));
    background-repeat: repeat-x;
    content: "";
    position: absolute;
    bottom: -0.3125rem;
  }
}

.logo {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 0.9375rem;
  display: flex;
  align-items: center;
}

.logo img,
.sidebar-header img {
  max-width: 2.7rem;
}

.menu-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 3.75rem;
  color: var(--lightColor);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link img {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primaryColor);
}

.nav-link .collapse-arrow {
  margin-left: 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.3s ease;
}

.menu-item.active .nav-link .collapse-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  min-width: 11rem;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  display: none;
  flex-direction: column;
  background-color: var(--greyBackground);
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.5);
  padding: 0.3125rem 0;
}

.menu-item.active .dropdown {
  display: flex;
}

.dropdown-categories {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  min-width: 22rem;
}

.menu-item.active .dropdown-categories {
  display: grid;
}

.dropdown-themes {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  min-width: 41rem;
}

.menu-item.active .dropdown-themes {
  display: grid;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: var(--lightColor);
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  color: var(--primaryColor);
  background-color: var(--greyBackgroundLight);
}

.dropdown-item img {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

/* Searcher */
.search-container {
  width: 100%;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--lightColor);
  color: var(--greyBackgroundDark);
  border: none;
  border-radius: 1.25rem;
  padding: 0.5rem 0.9375rem 0.5rem 2.1875rem;
  font-size: 0.9rem;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--greyBackgroundDark);
  width: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  margin-right: 0.625rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header-mobile .search-container {
  max-width: 9.375rem;
}

.header-mobile .search-input {
  padding-left: 0.625rem;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 17.5rem;
  height: 100vh;
  background: var(--greyBackground);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 0.9375rem;
  display: flex;
  align-items: center;
  border-bottom: 0.0625rem solid var(--greyBackgroundLightest);
}

.sidebar-header .logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 0.625rem;
}

.sidebar-content {
  padding: 0.625rem 0;
}

.mobile-menu-item {
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--lightColor);
  text-decoration: none;
  justify-content: space-between;
}

.mobile-nav-link .left {
  display: flex;
  align-items: center;
}

.mobile-nav-link img {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.9375rem;
}

.mobile-nav-link.sub-item {
  padding-left: 2.5rem;
  font-size: 0.9rem;
}

.mobile-nav-link.sub-item img {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-dropdown {
  display: none;
  background: var(--greyBackgroundDark);
}

.mobile-menu-item.active .mobile-dropdown {
  display: block;
}

.mobile-menu-item.active .lucide-chevron-down {
  transform: rotate(180deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  display: none;
}

.overlay.active {
  display: block;
}