/*!
 * Compact glassy search widget styling (sidebar + search results).
 */

.widget_search .search-form,
.vu-blog-searchform .search-form {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: clamp(12px, 3vw, 16px);
  border-radius: 16px;
  color: var(--vu-ink, #1f2c57);
  background: transparent;
  overflow: visible;
}

.vu-blog-searchform {
  margin: clamp(10px, 2vw, 16px) 0 clamp(20px, 3vw, 26px);
}

.widget_search .search-form::before,
.vu-blog-searchform .search-form::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  pointer-events: none;
}

.widget_search .search-form::after,
.vu-blog-searchform .search-form::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-surface-1, linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.9)));
  border: 1px solid rgba(12, 24, 48, 0.12);
  border-radius: 16px;
  box-shadow: var(--vu-shadow-soft, 0 16px 28px rgba(5, 7, 19, 0.12));
  pointer-events: none;
}

.widget_search .search-form label,
.vu-blog-searchform .search-form label {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0;
}

.widget_search .search-field,
.vu-blog-searchform .search-field {
  width: 100%;
  border: 1px solid rgba(12, 24, 48, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: var(--vu-ink, #1f2c57);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.widget_search .search-field:focus,
.vu-blog-searchform .search-field:focus {
  outline: none;
  border-color: var(--vu-gold, #ffd900);
  box-shadow: 0 0 0 2px rgba(255, 217, 0, 0.35);
}

.widget_search .search-submit,
.vu-blog-searchform .search-submit {
  border: none;
  border-radius: 12px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ffc600, #ffd900);
  color: #1a1f35;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(255, 190, 79, 0.35);
  transition: transform 140ms ease, box-shadow 180ms ease, filter 160ms ease;
}

.widget_search .search-submit:hover,
.widget_search .search-submit:focus-visible,
.vu-blog-searchform .search-submit:hover,
.vu-blog-searchform .search-submit:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(255, 190, 79, 0.4);
}

.widget_search .search-submit:focus-visible,
.vu-blog-searchform .search-submit:focus-visible {
  outline: 2px solid #1a1f35;
  outline-offset: 2px;
}

.widget_search .search-submit .genericon-search,
.vu-blog-searchform .search-submit .genericon-search {
  font-size: 1.1rem;
  line-height: 1;
}

.widget_search .screen-reader-text,
.vu-blog-searchform .screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
