/* ============================================
   GLOBAL TRANSITIONS
============================================ */

html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   LAYOUT
============================================ */

.hh-header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  background: var(--bg);
}

.hh-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* ============================================
   LOGO
============================================ */

.hh-logo img {
  height: 48px;
}

.hh-logo-light {
  display: block;
}

.dark .hh-logo-light {
  display: none;
}

.hh-logo-dark {
  display: none;
}

.dark .hh-logo-dark {
  display: block;
}

/* ============================================
   SEARCH BAR
============================================ */

.hh-search {
  flex: 1;
  max-width: 420px;
}

.hh-search input {
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.95rem;
}

/* ============================================
   ACTIONS
============================================ */

.hh-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   DROPDOWN
============================================ */

.hh-dropdown {
  position: relative;
  display: inline-block;
}

.hh-dropdown summary {
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  list-style: none;
  user-select: none;
}

.hh-dropdown summary::-webkit-details-marker {
  display: none;
}

.hh-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  min-width: 10rem;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hh-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.hh-dropdown-menu a:hover {
  background: var(--hover);
}

/* ============================================
   DARK MODE TOGGLE
============================================ */

.hh-dark-toggle {
  cursor: pointer;
}

.hh-toggle-icon {
  font-size: 1.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   MOBILE
============================================ */

@media (max-width: 700px) {
  .hh-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hh-actions {
    justify-content: space-between;
  }
}