/**
 * Encore Instant Fuzzy Search Styles
 * 極光毛玻璃風格即時搜尋與關鍵字高亮樣式
 */

/* 關鍵字高亮 */
.encore-hl {
  background: rgba(45, 212, 191, 0.25);
  color: #0f766e;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
}

[data-theme="dark"] .encore-hl {
  background: rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
}

/* 全站搜尋框容器 */
.encore-instant-search-wrap {
  position: relative;
  width: 100%;
}

.encore-instant-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.encore-instant-search-input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* 下拉搜尋結果選單 */
.encore-instant-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  z-index: 9999;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

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

.encore-search-item a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  transition: background 0.15s ease;
}

.encore-search-item a:hover {
  background: #f1f5f9;
}

.encore-search-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.encore-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e6fffa;
  color: #0d9488;
  font-weight: 700;
}

.encore-search-bot {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.encore-no-result {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
