/* Navigation och overlay-menyer för ciklid.org */

.ciklid-navbar-wrapper {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.apple-navbar {
  min-height: 86px;
}

.apple-navbar a {
  color: #212529;
}

.apple-navbar-logo img {
  height: 77px !important;
  width: auto !important;
  max-width: none;
  display: block;
}

.apple-navbar-actions .material-icons,
.apple-navbar-mobile-actions .material-icons {
  font-size: 20px;
  line-height: 1;
}

.apple-user-menu {
  position: relative;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f1f3f5;
  color: #212529;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
}

.apple-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  display: none;
  z-index: 1060;
}

.apple-dropdown-menu.active {
  display: block;
}

.apple-dropdown-menu .dropdown-header {
  padding: 0.5rem 0.75rem;
}

.apple-dropdown-menu .dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.apple-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1070;
  overflow-y: auto;
}

.apple-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.apple-menu-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.apple-menu-link:hover {
  color: #0086be !important;
}

@media (max-width: 767.98px) {
  .apple-navbar {
    min-height: 74px;
  }

  .apple-navbar-logo img {
    height: 54px !important;
  }
}
