/* WedUploader Blog + Resources search states
   Page-level behavior layer only. Foundation/components remain unchanged. */

.wu-library-search-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--wu-border-subtle, #e5ded4);
  border-radius: var(--wu-radius-lg, 16px);
  background: #fbf8f3;
}

.wu-library-search-state[hidden] { display: none !important; }

.wu-library-search-state-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.wu-library-search-state-copy strong {
  color: var(--wu-neutral-950, #292723);
  font-size: .98rem;
}

.wu-library-search-state-copy span {
  color: var(--wu-text-secondary, #746f68);
  font-size: .88rem;
}

.wu-library-clear {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--wu-bronze-700, #755f3e);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.wu-content-card.is-search-match {
  border-color: rgba(193, 154, 91, .72);
  box-shadow: 0 14px 34px rgba(63, 49, 31, .08);
}

.wu-search-highlight {
  padding: .04em .16em;
  margin: 0 -.02em;
  border-radius: 4px;
  color: inherit;
  background: #f5dcae;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.wu-library-empty {
  margin-top: 28px;
  padding: clamp(34px, 5vw, 64px) clamp(24px, 5vw, 72px);
  border: 1px solid var(--wu-border-subtle, #e5ded4);
  border-radius: var(--wu-radius-xl, 22px);
  background: linear-gradient(145deg, #fff 0%, #fbf7f0 100%);
  text-align: center;
}

.wu-library-empty[hidden] { display: none !important; }

.wu-library-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1e6d6;
  color: #8c6d46;
  font-size: 1.45rem;
  font-weight: 700;
}

.wu-library-empty .wu-eyebrow { margin-bottom: 8px; }

.wu-library-empty h2,
.wu-library-empty h3 {
  max-width: 680px;
  margin: 0 auto 12px;
  color: var(--wu-neutral-950, #292723);
}

.wu-library-empty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--wu-text-secondary, #746f68);
  line-height: 1.65;
}

.wu-library-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.wu-library-match-note {
  margin: -8px 0 22px;
  color: var(--wu-text-tertiary, #928b82);
  font-size: .82rem;
}

@media (max-width: 767.98px) {
  .wu-library-search-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .wu-library-clear { padding: 0; }

  .wu-library-empty-actions .wu-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wu-content-card.is-search-match { transition: none !important; }
}
