/**
 * LC Dashboard — Search Results Page (v2.5.2.82)
 * White / minimalist — loaded only on is_search() pages.
 */

/* ── RESET: override any dark theme bleeding in ───────────────────────── */
body.lc-nav-injected .lc-search-page,
.lc-search-page {
    background: #fff !important;
    color: #111;
}

/* ── PAGE SHELL ───────────────────────────────────────────────────────── */
.lc-search-page {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 52px; /* nav bar height */
}

/* ── HERO BAR ─────────────────────────────────────────────────────────── */
.lc-search-hero {
    background: #fff;
    padding: 40px 0 28px;
    border-bottom: 1px solid #ebebeb;
}
.lc-search-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 28px;
}

/* "Search" heading above the form */
.lc-search-hero-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 14px;
    padding: 0;
}

/* Search form */
.lc-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    max-width: 580px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lc-search-form:focus-within {
    border-color: #aaa;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.lc-search-form-icon {
    padding: 0 12px 0 16px;
    color: #aaa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
/* Scope under #top to match Enfold's "#top input[type=text]" specificity (1,0,1)
 * and add !important on the properties Enfold forces, so they never bleed in. */
#top .lc-search-form-input,
.lc-search-form-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 16px !important;
    font-family: inherit !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 0 !important;
}
#top .lc-search-form-input::placeholder,
.lc-search-form-input::placeholder { color: #bbb; }
/* Kill the native browser × clear button and search decoration */
.lc-search-form-input::-webkit-search-cancel-button,
.lc-search-form-input::-webkit-search-decoration,
.lc-search-form-input::-webkit-search-results-button,
.lc-search-form-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}
/* Enfold also targets buttons — lock down the Search button */
#top .lc-search-form-btn,
.lc-search-form-btn {
    background: #111 !important;
    border: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    padding: 0 20px !important;
    height: 48px !important;
    margin: 0 !important;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.2px;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
#top .lc-search-form-btn:hover,
.lc-search-form-btn:hover { background: #333 !important; }

/* Result count line */
.lc-search-meta {
    margin-top: 14px;
    font-size: 13px;
    color: #999;
}
.lc-search-meta strong { color: #444; font-weight: 500; }

/* ── RESULTS BODY ─────────────────────────────────────────────────────── */
.lc-search-body {
    padding: 32px 0 80px;
    background: #fff;
}

/* ── RESULT CARD ──────────────────────────────────────────────────────── */
.lc-search-results {
    display: flex;
    flex-direction: column;
}
.lc-search-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}
.lc-search-card:first-child { border-top: 1px solid #f0f0f0; }
.lc-search-card:hover { background: #fafafa; text-decoration: none; color: inherit; }

/* Thumbnail */
.lc-search-card-thumb {
    width: 72px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f3f3;
}
.lc-search-card-no-thumb {
    width: 72px;
    height: 52px;
    border-radius: 6px;
    background: #f5f5f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* Text — scoped under .lc-search-page for specificity over Enfold theme */
.lc-search-page .lc-search-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.lc-search-page .lc-search-card-type {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ff9500 !important;
    margin-bottom: 2px;
    line-height: 1.4;
}
.lc-search-page .lc-search-card-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111 !important;
    line-height: 1.35;
    margin-bottom: 2px;
}
.lc-search-page .lc-search-card:hover .lc-search-card-title { color: #000 !important; }
.lc-search-page .lc-search-card-excerpt {
    display: -webkit-box;
    font-size: 13px;
    color: #888 !important;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow */
.lc-search-card-arrow {
    flex-shrink: 0;
    color: #ccc;
    align-self: center;
    transition: color 0.15s, transform 0.15s;
}
.lc-search-card:hover .lc-search-card-arrow {
    color: #888;
    transform: translateX(3px);
}

/* ── EMPTY STATE ──────────────────────────────────────────────────────── */
.lc-search-empty {
    text-align: center;
    padding: 80px 0 60px;
}
.lc-search-empty-icon { color: #ddd; margin-bottom: 18px; }
.lc-search-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}
.lc-search-empty-sub { font-size: 14px; color: #aaa; }

/* ── PAGINATION ───────────────────────────────────────────────────────── */
.lc-search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 44px;
    flex-wrap: wrap;
}
.lc-search-pagination a,
.lc-search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
}
.lc-search-pagination a { color: #555; border-color: #e5e5e5; }
.lc-search-pagination a:hover { background: #f5f5f5; color: #111; text-decoration: none; }
.lc-search-pagination .page-numbers.current { background: #111; color: #fff; border-color: #111; }
.lc-search-pagination .page-numbers.dots    { color: #bbb; border-color: transparent; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .lc-search-hero { padding: 28px 0 20px; }
    .lc-search-container { padding: 0 16px; }
    .lc-search-form-input { font-size: 15px; }
    .lc-search-card { padding: 14px 0; gap: 12px; }
    .lc-search-card-thumb,
    .lc-search-card-no-thumb { width: 56px; height: 42px; }
    /* Scope under .lc-search-page to match main rules' specificity (0,2,0) */
    .lc-search-page .lc-search-card-title { font-size: 14px; }
    .lc-search-card-arrow { display: none; }
    .lc-search-card:hover { background: transparent; }
}
