@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css");

:root { color-scheme: light dark; }

body {
  margin: 0;
  padding: 16px;
  background: transparent;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.w-search {
  --s-bg: #ffffff;
  --s-alt: #f6f8fc;
  --s-sunken: #eaeef6;
  --s-ink: #1a1a1a;
  --s-soft: #4a5568;
  --s-muted: #78849a;
  --s-border: #dce2ee;
  --s-border-strong: #c2cbdd;
  --s-accent: #111111;
  --s-radius: 10px;
  --s-radius-sm: 6px;
  color: var(--s-ink);
  max-width: 760px;
  margin: 0 auto;
}

.w-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--s-ink);
  background: var(--s-bg);
  border: 1.5px solid var(--s-border-strong);
  border-radius: var(--s-radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.w-search-input::placeholder { color: var(--s-muted); }

.w-search-input:focus {
  border-color: var(--s-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.w-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.w-search-filter {
  flex: 1 1 140px;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--s-ink);
  background: var(--s-alt);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-sm);
  outline: none;
}

.w-search-filter:focus { border-color: var(--s-accent); background: var(--s-bg); }

.w-search-dates { display: flex; align-items: center; gap: 6px; flex: 1 1 260px; }
.w-search-date { flex: 1 1 auto; }
.w-search-date-sep { color: var(--s-muted); }

.w-search-filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--s-soft);
  background: var(--s-alt);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-sm);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.w-search-filter-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  accent-color: var(--s-accent);
}

.w-search-filter-checkbox:hover {
  border-color: var(--s-border-strong);
  color: var(--s-ink);
}

.w-search-total { margin: 14px 2px 6px; font-size: 12px; color: var(--s-muted); }

.w-search-error {
  margin-top: 12px;
  padding: 10px 12px;
  color: #b22334;
  background: rgba(200, 40, 60, 0.08);
  border: 1px solid rgba(200, 40, 60, 0.2);
  border-radius: var(--s-radius-sm);
  font-size: 13px;
}

.w-search-empty { margin-top: 18px; text-align: center; color: var(--s-muted); font-size: 14px; }

.w-search-results { display: flex; flex-direction: column; gap: 2px; }

.w-search-result {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--s-radius-sm);
  transition: background 0.12s, border-color 0.12s;
}

.w-search-result:hover { background: var(--s-alt); border-color: var(--s-border); }

.w-search-result-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--s-ink);
  text-decoration: none;
}

.w-search-result-title:hover { text-decoration: underline; }

.w-search-result-excerpt { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--s-soft); }

.w-search-result-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--s-muted);
}

.w-search-result-rating::before { content: '★ '; }

.w-search-footer { margin-top: 14px; text-align: right; font-size: 11px; color: var(--s-muted); }
.w-search-footer a { color: var(--s-muted); text-decoration: none; }
.w-search-footer a:hover { color: var(--s-ink); text-decoration: underline; }
.w-search-footer-icon { height: 14px; width: 14px; vertical-align: -3px; margin: 0 2px; border-radius: 3px; object-fit: cover; }

.w-search .highlight { background: rgba(255, 255, 0, 0.8); color: inherit; border-radius: 2px; padding: 0 1px; }

.w-search-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font-size: 14px;
  color: var(--s-ink);
  background: var(--s-bg);
  border: 1px solid var(--s-border-strong);
  border-radius: var(--s-radius-sm);
  cursor: pointer;
  transition: background 0.12s;
}

.w-search-more:hover { background: var(--s-alt); }

.w-search-skeleton { padding: 12px 14px; }

.w-search-sk-line {
  height: 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--s-sunken) 25%, var(--s-alt) 37%, var(--s-sunken) 63%);
  background-size: 400% 100%;
  animation: w-search-shimmer 1.3s ease infinite;
}

.w-search-sk-title { height: 14px; width: 45%; }
.w-search-sk-short { width: 70%; }

@keyframes w-search-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-color-scheme: dark) {
  .w-search {
    --s-bg: #16181c;
    --s-alt: #1e2126;
    --s-sunken: #23272e;
    --s-ink: #e8eaed;
    --s-soft: #b6bcc6;
    --s-muted: #8a919c;
    --s-border: #2c313a;
    --s-border-strong: #3a414d;
    --s-accent: #f5f5f5;
  }
  .w-search-input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
  .w-search .highlight { background: rgba(255, 255, 255, 0.18); }
}


/**/
.w-search-result{
    position: relative;
}

.w-search-result.NoEntry{
    box-shadow: 0 0 5px red;
}

.w-search-result.NoEntry:before {
    font-family: "FontAwesome";
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 8px;
    display: block;
    font-size: 24px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.w-search-result.deleted:before,
.w-search-result.deleted_info:before {
    content: "\f2ed";
}


.w-search-result.tags:before {
    content: "\f02b";
}


.w-search-result.apply_a:before,
.w-search-result.apply_m:before {
    content: "\f574";
}


.w-search-result.component:before,
.w-search-result.theme:before,
.w-search-result.template:before,
.w-search-result.fragment:before {
    content: "\f121";
}


.w-search-result.component:before,
.w-search-result.theme:before,
.w-search-result.template:before,
.w-search-result.fragment:before {
    content: "\f121";
}

.w-search-result.hidden:before {
    content: "\f05e";
}


.w-search-result.setting:before {
    content: "\f552";
}


.w-search-result.all:before {
    content: "\f16c";
}


.w-search-result.info:before {
    content: "\f129";
}

.w-search-result.setting:before {
    content: "\f552";
}


.w-search-result.list:before {
    content: "\f03a";
}


.w-search-result.list:before,
.w-search-result.found_list:before,
.w-search-result.statistics:before {
    content: "\f03a";
}

.w-search-result.guide:before {
    content: "\f14e";
}


.w-search-result.admin:before,
.w-search-result.nav:before,
.w-search-result.system:before,
.w-search-result.admin:before
 {
    content: "\f013";
}


.w-search-result.forum:before
  {
    content: "\f143";
}

.w-search-result.notice:before
  {
    content: "\f1ea";
}

.w-search-result.search:before
  {
    content: "\f002";
}