/* ==========================================================================
   HTJZ Search Results — feature styles (depends on htjz_variables)
   ========================================================================== */

.htjz-sr {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--htjz-space-xl) var(--htjz-space-lg);
  font-size: var(--htjz-text-base);
  color: var(--ink);
}

/* ── Topbar: heading + search field ── */
.htjz-sr-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--htjz-space-md);
  margin-bottom: var(--htjz-space-lg);
}

.htjz-sr-heading {
  font-size: var(--htjz-text-2xl);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin: 0;
}

.htjz-sr-form {
  display: flex;
  align-items: center;
  gap: var(--htjz-space-sm);
  background: var(--bg);
  border: var(--htjz-border);
  border-radius: var(--htjz-radius-md);
  padding: var(--htjz-space-sm) var(--htjz-space-md);
  min-width: 280px;
  flex: 1 1 280px;
  max-width: 420px;
  transition:
    box-shadow var(--htjz-transition),
    border-color var(--htjz-transition);
}

.htjz-sr-form:focus-within {
  border-color: var(--gold);
  box-shadow: var(--htjz-focus-ring);
}

.htjz-sr-form svg {
  color: var(--ink-50);
  flex-shrink: 0;
}

.htjz-sr-form input[type="search"] {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: var(--htjz-text-base);
  color: var(--ink);
}

/* ── Result count ── */
.htjz-sr-count {
  color: var(--ink-50);
  margin: 0 0 var(--htjz-space-md);
}

/* ── Result list ── */
.htjz-sr-list {
  display: flex;
  flex-direction: column;
  gap: var(--htjz-space-sm);
}

.htjz-sr-item {
  display: flex;
  align-items: center;
  gap: var(--htjz-space-md);
  background: var(--bg);
  border: var(--htjz-border);
  border-radius: var(--htjz-radius-md);
  padding: var(--htjz-space-md);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--htjz-transition),
    box-shadow var(--htjz-transition);
}

.htjz-sr-item:hover {
  border-color: var(--line-gold);
  box-shadow: var(--shadow-md);
}

.htjz-sr-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--htjz-radius-sm);
  background: var(--gold-10);
  color: var(--gold-dark);
}

.htjz-sr-item-body {
  flex: 1;
  min-width: 0;
}

.htjz-sr-item-head {
  display: flex;
  align-items: center;
  gap: var(--htjz-space-sm);
}

.htjz-sr-item-title {
  font-size: var(--htjz-text-lg);
  font-weight: var(--fw-medium);
  color: var(--ink);
  margin: 0;
}

.htjz-sr-item-excerpt {
  margin: var(--htjz-space-xs) 0 0;
  font-size: var(--htjz-text-sm);
  line-height: var(--lh-snug);
}

.htjz-sr-item-arrow {
  color: var(--ink-50);
  flex-shrink: 0;
  transition:
    transform var(--htjz-transition),
    color var(--htjz-transition);
}

.htjz-sr-item:hover .htjz-sr-item-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* ── Empty / no-results state ── */
.htjz-sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--htjz-space-md);
  text-align: center;
  padding: var(--htjz-space-2xl) var(--htjz-space-lg);
  color: var(--ink-50);
}

.htjz-sr-empty svg {
  color: var(--ink-30);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .htjz-sr-item-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--htjz-space-xs);
  }
}
