/* SLAKE blog search — barre inline index blog */

.slake-blog-search-inline {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 20;
}

.slake-blog-search-inline__inner {
    max-width: 100%;
    width: min(100%, 380px);
    margin: 0;
}

.slake-blog-search-inline-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #c5cdd8;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(15, 12, 41, 0.06);
}

.slake-blog-search-inline-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: #4a5568;
    line-height: 0;
}

.slake-blog-search-inline-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.slake-blog-search-inline-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #1a202c;
    font-size: 16px;
    line-height: 1.4;
    padding: 10px 0;
}

.slake-blog-search-inline-bar input::placeholder {
    color: #718096;
}

.slake-blog-search-inline-bar input:focus {
    outline: none;
}

.slake-blog-search-inline-results {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slake-blog-search-inline-results:empty {
    display: none;
}

.slake-blog-search-status {
    min-height: 0;
    font-size: 13px;
    color: #4a5568;
    margin-top: 6px;
}

.slake-blog-search-msg {
    margin: 0;
    padding: 8px 2px;
    color: #4a5568;
    font-size: 14px;
}

.slake-blog-search-hit {
    display: block;
    text-decoration: none;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
    color: #1a202c;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.slake-blog-search-hit:hover,
.slake-blog-search-hit:focus-visible {
    border-color: #c9a227;
    background: #fffaf0;
    outline: none;
}

.slake-blog-search-hit-title {
    display: block;
    font-weight: 600;
    color: #2c5282;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.slake-blog-search-hit-excerpt {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #4a5568;
}

/* Overlay — preview opératrice uniquement */
.slake-blog-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    pointer-events: none;
}

.slake-blog-search-overlay--open {
    display: block;
    pointer-events: auto;
}

html.slake-blog-search-open {
    overflow: hidden;
}

.slake-blog-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 41, 0.72);
    backdrop-filter: blur(4px);
}

.slake-blog-search-panel {
    position: relative;
    margin: 0 auto;
    max-width: 42rem;
    width: 100%;
    min-height: 100%;
    padding: max(12px, env(safe-area-inset-top)) 16px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slake-blog-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 216, 155, 0.35);
    border-radius: 12px;
    padding: 8px 10px 8px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.slake-blog-search-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #f7fafc;
    font-size: 16px;
    line-height: 1.4;
    padding: 8px 0;
}

.slake-blog-search-bar input::placeholder {
    color: #a0aec0;
}

.slake-blog-search-bar input:focus {
    outline: none;
}

.slake-blog-search-close {
    flex: 0 0 auto;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.slake-blog-search-results {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 640px) {
    .slake-blog-search-inline__inner {
        max-width: 380px;
    }

    .slake-blog-search-panel {
        min-height: auto;
        margin-top: 12vh;
        padding-top: 0;
    }

    .slake-blog-search-results {
        max-height: min(60vh, 520px);
    }
}
