/* ============================================
   SEARCH PAGE — search.css
   ============================================ */

/* ---- Search Header ---- */
.search-header-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.search-header-bar .header-inner {
  gap: 6px;
}

/* Search input in header */
.search-input-wrap {
  flex: 1;
  min-width: 0;
}

.search-main-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  background: transparent;
  padding: 4px 0;
  caret-color: var(--primary);
}

.search-main-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- Main ---- */
.search-main {
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + 36px);
  min-height: 100vh;
}

/* ---- Divider below header ---- */
.search-results-wrap {
  border-top: 1px solid var(--border);
}

/* ============================================
   SEARCH LIST
   ============================================ */
.search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--dark);
}

.search-list-item:hover {
  background: var(--bg-light);
}

/* Left icon / image */
.sri-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 17px;
}

.sri-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

/* Text block */
.sri-text {
  flex: 1;
  min-width: 0;
}

.sri-name {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bold matched part */
.sri-name strong {
  font-weight: 700;
  color: var(--dark);
}

.sri-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Right arrow icon */
.sri-arrow {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transform: rotate(-45deg);
  /* diagonal arrow like reference ↗ */
}

/* ">" chevron for special items */
.sri-arrow-right {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================
   VIEW ALL RESULTS BUTTON
   ============================================ */
.search-view-all-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 16px 16px;
}

.btn-view-all-results {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: #9AE000;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(154, 224, 0, 0.4);
  transition: background 0.2s, transform 0.1s;
}

.btn-view-all-results i {
  font-size: 14px;
}

.btn-view-all-results:hover {
  background: #82c200;
  transform: scale(1.02);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

.search-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.search-empty p {
  font-size: 14px;
  font-weight: 500;
}