/**
 * Sticky Top Header Styles
 */

.sticky-top-header {
  min-height: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0f1419;
  box-shadow: 0 4px 8px 0 rgba(0, 255, 136, 0.2);
  padding: 0.5rem 2rem;
}

.sticky-top-header a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sticky-top-header a:hover {
  color: #00d084;
}

.sticky-top-header .layout-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Header-specific logo overrides */
.sticky-top-header .logo {
  color: #fff;
}

.sticky-top-header .logo:hover {
  color: #00d084;
}

.sticky-top-header .logo-icon {
  color: #0f8;
}

.sticky-top-header .logo:hover .logo-icon {
  color: #00d084;
}

.sticky-top-header .menu-wrapper {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.sticky-top-header .actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.sticky-top-header .actions a {
  font-size: 0.95rem;
}

.sticky-top-header .profile-link {
  color: #e0e0e0;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
}

.sticky-top-header .profile-link:hover {
  color: #00d084;
}

.sticky-top-header .sign-in {
  color: #e0e0e0;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
}

.sticky-top-header .sign-in:hover {
  color: #00d084;
}

.sticky-top-header .get-started {
  background-color: #00d084;
  color: #0f1419;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.sticky-top-header .get-started:hover {
  background-color: #00b870;
}

/* Drupal Menu Styling */
.sticky-top-header nav.block-menu {
  display: flex;
  justify-content: center;
}

.sticky-top-header nav.block-menu h2 {
  display: none;
}

.sticky-top-header nav.block-menu .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.sticky-top-header nav.block-menu .menu-item {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  list-style: none;
}

.sticky-top-header nav.block-menu .menu-item a,
.sticky-top-header nav.block-menu .menu-item span {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.sticky-top-header nav.block-menu .menu-item a:hover,
.sticky-top-header nav.block-menu .menu-item span:hover {
  color: #00d084;
  cursor: pointer;
}

/* Documentation icon styling */
.sticky-top-header nav.block-menu .menu-item a.documentation::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  flex-shrink: 0;
  background-color: #00d084;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/><polyline points="13 2 13 9 20 9"/><path d="M8 12h2"/><path d="M8 15h2"/><path d="M8 18h2"/><path d="M12 12h2"/><path d="M12 15h2"/><path d="M12 18h2"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: background-color 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .sticky-top-header {
    padding: 0.75rem 1rem;
  }

  .sticky-top-header .layout-container {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .sticky-top-header .logo {
    flex: 0 0 auto;
  }

  .sticky-top-header .menu-wrapper {
    flex: 0 1 100%;
    order: 3;
  }

  .sticky-top-header .menu-wrapper nav.block-menu {
    flex: 1;
    width: 100%;
  }

  .sticky-top-header nav.block-menu .menu {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .sticky-top-header .actions {
    gap: 0.5rem;
    flex: 0 0 auto;
  }

  .sticky-top-header .actions a {
    font-size: 0.85rem;
  }

  .sticky-top-header .sign-in {
    padding: 0.4rem 0.7rem;
  }

  .sticky-top-header .get-started {
    padding: 0.5rem 0.9rem;
  }
}
