/*
 * INDOJAWA88
 * Header: branding, account buttons and page search
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) auto;
  gap: 32px;
  align-items: center;
  min-height: 90px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
}

.brand img {
  width: 170px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition: background .18s,border-color .18s,box-shadow .18s;
  text-align: center;
}

.button-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 12px #17674620;
}

.button-secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: #cbdad0;
}

.button-secondary:hover {
  background: var(--green-soft);
  border-color: #a9c6b4;
}

.header-actions .button {
  min-width: 88px;
}

.search-form {
  position: relative;
  min-width: 0;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.search-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8f7;
  padding: 10px 78px 10px 16px;
  color: var(--ink);
  font-size: 13px;
  min-width: 0;
  transition: border-color .18s;
}

.search-form input::placeholder {
  color: #6b7d72;
  opacity: 1;
}

.search-form input:focus {
  border-color: #83ad93;
  background: #fff;
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 3px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.search-form button:hover {
  background: var(--green-soft);
}

.search-form svg {
  width: 21px;
  height: 21px;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px #16362324;
  max-height: 360px;
  overflow: auto;
  z-index: 50;
}

.search-status {
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-list a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.search-list a:hover,
.search-list a:focus-visible {
  background: var(--green-soft);
}
