

/* HEADER */
.site-header {
 position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  z-index: 1000;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

/* LOGO */
.logo img {
  height: 40px;
}

/* NAV */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.mobile-nav {
  display: none;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #111827;
  font-size: 18px;
}

/* BUTTONS */
.common-btn {
  padding: 10px 30px;
  border-radius: 5px;
  font-size: 18px;
  text-decoration: none;
  display: inline-block;
}

.common-btn.signup {
  background: #0B63FF;
  color: #fff;
}

.common-btn.login {
  position: relative;
  color: #000;
  background: #fff;
  border-radius: 5px;
}

.common-btn.login::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid;
  border-image-source: linear-gradient(90.49deg, #0088FF 2.97%, #603CFF 99.75%);
  border-radius: 5px;
  background: linear-gradient(90deg, #0088FF, #603CFF);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* HAMBURGER */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-icon span {
  width: 16px;
  height: 0;
  border: 2px solid #000000
}

/* MOBILE AUTH */
.mobile-auth {
  display: none;
  gap: 8px;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px) {

  /* HEADER GRID */
  .header-inner {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
  }

  /* HAMBURGER LEFT */
  .menu-icon {
    display: flex;
    justify-self: start;
  }

  /* LOGO CENTER */
  .logo {
    justify-self: start;
  }

  .logo img {
    height: 28px;
  }

  /* AUTH RIGHT */
  .mobile-auth {
    display: flex;
    justify-self: end;
    gap: 6px;
  }

  .mobile-auth .common-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  /* SLIDE MENU */
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;                
    height: 100vh;
    background: #ffffff;
    padding: 24px 20px;
    transition: left 0.35s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;     
    gap: 0;                       
  }

    .nav ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .nav li {
    width: 100%;
  }

  .nav a {
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    padding: 10px 0;
  }


  /* SHOW MENU */
  #menu-toggle:checked ~ .nav {
    left: 0;
  }
  .mobile-nav-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .mobile-nav-header img {
    height: 34px;
  }

  .close-btn {
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
  }
}

.menu {
  display: flex;
  gap: 2px;
  align-items: center;
}

.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  margin: 0 !important;
  padding: 4px 0 !important;
  list-style: none !important;
  gap: 0 !important;
  line-height: normal !important;
  z-index: 100;
  display: flex !important;
  flex-direction: column !important;
}


.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  height: 44px;            
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
  color: #111;
}

.dropdown-menu li a:hover {
  background: #f3f4f6;
}

.arrow {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  margin-top: -2px;
}
/* MOBILE CHEVRON */
.mobile-dropdown label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-dropdown .chevron {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Rotate when open */
.mobile-dropdown input:checked + label .chevron {
  transform: rotate(180deg);
}

.mobile-menu li {
  border-bottom: 1px solid #eee;
}

.mobile-dropdown input {
  display: none;
}

.mobile-dropdown label {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: 500;
  cursor: pointer;
}

.mobile-dropdown ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown input:checked ~ ul {
  max-height: 300px;
}

.mobile-dropdown ul li a {
  display: block;
  padding: 10px 0 10px 12px;
  font-size: 14px;
}
