/* CuriousAtoms homepage v4: hero visibility and authenticated navigation */

/* Keep the decorative curve below every hero message. */
.hero {
  min-height: 930px;
  padding-bottom: 180px;
}
.hero::after {
  bottom: -245px;
  height: 310px;
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  z-index: 3;
}
.hero-copy,
.hero-note,
.hero-actions {
  position: relative;
  z-index: 4;
}
.hero-note {
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.88);
}
.proof-strip {
  margin-top: -52px;
}

/* Authenticated navigation */
.user-menu {
  position: relative;
  display: none;
}
.user-menu.is-visible {
  display: block;
}
.user-menu-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(8, 3, 25, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.user-menu-toggle:hover,
.user-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.17);
  transform: translateY(-1px);
}
.site-header.is-scrolled .user-menu-toggle {
  color: var(--purple-900);
  background: #f0ecff;
  border-color: rgba(87, 37, 168, 0.12);
  box-shadow: none;
}
.user-avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--purple-950);
  background: linear-gradient(135deg, #fef08a, #facc15);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}
.user-menu-copy {
  min-width: 0;
  display: grid;
  line-height: 1.08;
  text-align: left;
}
.user-menu-name {
  max-width: 130px;
  overflow: hidden;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: inherit;
  font-size: 0.67rem;
  font-weight: 700;
  opacity: 0.72;
}
.user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}
.user-menu-chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}
.user-menu-toggle[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1400;
  width: min(285px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(42, 25, 82, 0.12);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(28, 12, 63, 0.22);
  backdrop-filter: blur(18px);
}
.user-menu-dropdown[hidden] {
  display: none;
}
.user-menu-header {
  display: grid;
  gap: 3px;
  padding: 10px 11px 12px;
  border-bottom: 1px solid var(--line);
}
.user-menu-header strong {
  overflow: hidden;
  color: var(--purple-950);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-header span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-links {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}
.user-menu-link,
.user-menu-logout {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  color: #403755;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}
.user-menu-link:hover,
.user-menu-link:focus-visible {
  color: var(--purple-800);
  background: #f1edff;
}
.user-menu-logout {
  color: #b42318;
}
.user-menu-logout:hover,
.user-menu-logout:focus-visible {
  background: #fff0ee;
}
.user-menu-icon {
  width: 25px;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .user-menu-copy {
    display: none;
  }
  .user-menu-toggle {
    padding-right: 7px;
  }
  .user-menu-chevron {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-bottom: 155px;
  }
  .hero::after {
    bottom: -252px;
    height: 300px;
  }
  .hero-note {
    margin-bottom: 20px;
  }
  .proof-strip {
    margin-top: -38px;
  }
  .user-menu-dropdown {
    position: fixed;
    top: 82px;
    right: 16px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-bottom: 135px;
  }
  .hero::after {
    bottom: -260px;
  }
  .hero-note {
    display: grid;
    gap: 9px;
    margin-bottom: 12px;
  }
  .proof-strip {
    margin-top: -22px;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
  }
}
