.site-header {
  background: var(--transparent);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  /* background: transparent; */
  box-shadow: none;
  border: none;
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  /* background: white; */
  /* box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.07); */
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  height: 48px;
  display: flex;
  align-items: center; /* prevent stretch */
}

.logo img {
  height: 92px;
  /* height: 100%; */
  width: auto;
  object-fit: contain;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  /* color: #4f4f5a; */
}

.main-nav a:hover {
  /* color: var(--color-primary); */
  color: var(--text-secondary);
}

.opensea-button {
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  padding: 1rem 1.2rem;
  border-radius: 2rem;
  /* box-shadow: 0px 10px 30px rgba(103, 241, 61, 0.3); */
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.opensea-button img {
  width: 18px;
  height: 18px;
}

.opensea-button:hover {
  background: var(--color-primary);
  color: white;
}

/* MOBILE HEADER */
.mobile-header {
  display: none;
  background: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mobile-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.mobile-logo img {
  height: 28px;
}

.mobile-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  width: 32px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin-right: 4rem;
  z-index: 1001; /* keeps it above menu */
}

.mobile-toggle .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation state */
.mobile-toggle.active .top {
  transform: rotate(45deg) translateY(6px);
}

.mobile-toggle.active .middle {
  opacity: 0;
}

.mobile-toggle.active .bottom {
  transform: rotate(-45deg) translateY(-6px);
}

/* Mobile menu (dropdown) */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease;
  position: relative;
  z-index: 999;
}

.mobile-menu.open {
  max-height: 500px; /* or auto with JS — see below */
  padding: 1rem 1.5rem;
}

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

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-opensea {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
}

.mobile-opensea img {
  width: 16px;
  height: 16px;
}

/* HIDE desktop header at mobile */
@media (max-width: 768px) {
  .site-header {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .opensea-button {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .mobile-opensea {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }
}
