/* @override 
	https://www.creativeapplications.net/wp-content/plugins/can-search/assets/css/search.css?* */

/* =========================================================
   CAN Search — search.css
   Uses the same CSS variables as can-activity-logger/style.css
   ========================================================= */

/* ── Root container ──────────────────────────────────────── */
.can-search-root {
    width: 100%;
    font-family: inherit;
	border-left: 1px solid var(--linecolor);
	border-right: 1px solid var(--linecolor);
}

/* ── Intro (default state, hidden while searching) ───────── */
.can-search-intro {
    padding: 1em;
    border-bottom: 1px solid var(--linecolor);
	float: left;
	width: 100%;
}
.can-search-intro p {
    margin: 0;
}

/* ── Search bar (input + tokens row) ────────────────────── */
.can-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1em;
    background: var(--backgroundcolor, #fff);
	border-bottom: 1px solid var(--linecolor);	
    cursor: text;
}

.can-search-bar:focus-within {
/*    border-color: var(--bodycolor, #333);*/
}

/* ── Tokens / capsules ───────────────────────────────────── */
.can-search-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
/* Spacing between the last token and the input — only when tokens exist,
   so an empty search keeps the input aligned with the bar's 1em padding. */
.can-search-tokens:not(:empty) {
    margin-right: 5px;
}

.can-search-token {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 10px;
    background: var(--darkcolor, #111);
    color: var(--backgroundcolor, #fff);
    font-size: 12px;
    line-height: 1.6;
    cursor: default;
    white-space: nowrap;
}

.can-search-token-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    opacity: 0.6;
    line-height: 1;
}
.can-search-token-remove:hover {
    opacity: 1;
}

/* ── Text input ──────────────────────────────────────────── */
.can-search-input {
    flex: 1;
    min-width: 120px;
    border: none !important;
    outline: none;
    background: transparent;
    font-size: 1em;
    color: var(--bodycolor, #333);
	padding: 0 !important;
}
.can-search-input::placeholder {
    color: var(--shadecolor);
    opacity: 1; /* Firefox dims placeholders by default */
}



/* ── Clear all button ────────────────────────────────────── */
.can-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--midcolor, #999);
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
}
.can-search-clear:hover {
    color: var(--bodycolor, #333);
}

/* ── Recent searches (default state) ─────────────────────── */
.can-search-recent:empty {
    display: none;
}
.can-search-recent-heading {
    font-size: 1em;
    color: var(--midcolor, #999);
    border-bottom: 1px solid var(--linecolor);
    padding: 0.5em 1em;
}
.can-search-recent-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--linecolor);
    padding: 0.5em 1em;
    cursor: pointer;
}
.can-search-recent-item:hover {
    background: var(--shadecolor);
}
/* Capsules are display-only here — let clicks fall through to the row. */
.can-search-recent-item .can-search-token {
    pointer-events: none;
}
.can-search-recent-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--midcolor, #999);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.6;
}
.can-search-recent-remove:hover {
    opacity: 1;
    color: var(--bodycolor, #333);
}

/* ── Type filter pills ───────────────────────────────────── */
.can-search-filters {
    display: flex;
    flex-wrap: wrap;
	border-bottom: 1px solid var(--linecolor);	
	
}

.can-search-filter {
    background: none;
	border: none !important;
    color: var(--bodycolor, #333);
    font-size: 1em;
    padding-left: 1em;
	padding-right: 0.5em;
    cursor: pointer;
	opacity: 0.5;
}
.can-search-filter:hover {
	opacity: 1;
}
.can-search-filter.active {
    color: var(--darkcolor, #fff);
	opacity: 1;
}

/* ── Status line ─────────────────────────────────────────── */
.can-search-status {
    color: var(--midcolor, #999);
	border-bottom: 1px solid var(--linecolor);
	padding: 0.5em 1em;

}
.can-search-status:empty {
	display: none;
}

/* ── Results wrapper ─────────────────────────────────────── */
.can-search-results {
}

/* ── Section headers (People & Tools / Articles / Members) ── */
.can-search-section-heading {
    font-size: 1em;
    color: var(--midcolor, #999);
    border-bottom: 1px solid var(--linecolor, #eee);
    padding: 0.5em 1em;
}
.can-search-section-heading:first-child {
    margin-top: 0;
}

/* ── Term card (People / Tools) ──────────────────────────── */
.can-search-term-card {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0.5em 1em;
    border-bottom: 1px solid var(--linecolor, #eee);
    text-decoration: none;
    color: inherit;
}
.can-search-term-card:hover .can-search-term-name {
    color: var(--darkcolor);
}

.can-search-term-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--linkcolor);
    flex: 1;
}

.can-search-term-tax {
    font-size: 11px;
    color: var(--midcolor, #999);
    white-space: nowrap;
}

.can-search-term-count {
    font-size: 11px;
    color: var(--midcolor, #999);
    white-space: nowrap;
}

/* Icon variant (People / Tools / Tags) — icon + title in a centred row,
   with the description (if any) on its own line below, indented to the title. */
.can-search-term-card--icon {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.can-search-term-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.can-search-term-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--bodycolor, #333);
}

.can-search-term-card--icon .can-search-term-desc {
    padding-left: 28px; /* icon (18) + row gap (10) → aligns under the title */
}

.can-search-term-desc {
    font-size: 0.75em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* ── Post card ───────────────────────────────────────────── */
.can-search-post-card {
    display: flex;
    gap: 12px;
    padding: 0.5em 1em;
    border-bottom: 1px solid var(--linecolor, #eee);
    text-decoration: none;
    color: inherit;
}
.can-search-post-title:hover {
    color: var(--darkcolor);
}

.can-search-post-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--shadecolor, #f5f5f5);
}

.can-search-post-body {
    flex: 1;
    min-width: 0;
}

.can-search-post-title {
    display: block;
    font-size: 1em;
    font-weight: 500;
    color: var(--linkcolor);
    text-decoration: none;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.can-search-post-excerpt {
    font-size: 0.75em;
    color: var(—bodycolor, #999);
    line-height: 1.5;
    margin: 0 0 5px;
}

.can-search-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.can-search-post-tag {
    font-size: 10px;
    background: var(--shadecolor, #f0f0f0);
    color: var(--midcolor, #888);
    padding: 1px 6px;
}

/* ── Member card ─────────────────────────────────────────── */
.can-search-member-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0.5em 1em;
    border-bottom: 1px solid var(--linecolor, #eee);
    text-decoration: none;
    color: inherit;
}
.can-search-member-card:hover .can-search-member-name {
    color: var(--darkcolor);
}

/* Avatar + name in a centred row */
.can-search-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.can-search-member-avatar {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--bodycolor, #333);
}

.can-search-member-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--linkcolor);
}

.can-search-member-username {
    font-size: 11px;
    color: var(--midcolor, #999);
}

.can-search-member-bio {
    font-size: 12px;
    color: var(--midcolor, #999);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 28px; /* icon (18) + row gap (10) → aligns under the name */
}

.can-search-member-level {
    display: inline-block;
    font-size: 0.8em;
    padding: 2px 8px;
    background: var(--shadecolor, #f5f5f5);
    color: var(--midcolor, #999);
    border-radius: 999px;
    margin-left: auto;
    white-space: nowrap;
}

/* ── Load more ───────────────────────────────────────────── */
.can-search-loadmore {
	display: block;
	width: 100%;
	background: none;
	border: none;
	border-bottom: 1px solid var(--linecolor);
	color: var(--bodycolor, #333);
	font-size: 1em;
	padding: 0.75em 1em;
	text-align: left;
	cursor: pointer;
	opacity: 0.6;
}
.can-search-loadmore:hover {
	opacity: 1;
}
.can-search-loadmore[disabled] {
	cursor: default;
	opacity: 0.4;
}

/* ── Highlight marks ─────────────────────────────────────── */
.can-search-results mark {
    background: transparent;
    color: inherit;
    font-weight: 700;
    padding: 0;
}

/* ── Empty / no results ──────────────────────────────────── */
.can-search-empty {
    font-size: 13px;
    color: var(--midcolor, #999);
    padding: 16px 0;
}

/* ── Login notice ────────────────────────────────────────── */
.can-search-login-notice {
    font-size: 13px;
    color: var(--midcolor, #999);
}
