/* ─── Search Full Screen Widget ─── */

/* ─── Trigger ─── */
.c-search-fs .c-search-fs__trigger {
    background: none !important;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a3e36;
    transition: opacity 0.2s ease;
}
.c-search-fs .c-search-fs__trigger:hover {
    opacity: 0.7;
}

/* ─── Overlay ─── */
.c-search-fs .c-search-fs__overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background-color: rgba(30, 25, 18, 0.92);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
}

.c-search-fs .c-search-fs__overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

/* ─── Close button ─── */
.c-search-fs .c-search-fs__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none !important;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 8px;
    transition: opacity 0.2s ease;
}
.c-search-fs .c-search-fs__close:hover {
    opacity: 0.7;
}

/* ─── Container ─── */
.c-search-fs .c-search-fs__container {
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
    margin-top: 20vh;
}

/* ─── Input ─── */
.c-search-fs .c-search-fs__input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 12px;
}

.c-search-fs .c-search-fs__input-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
}

.c-search-fs .c-search-fs__input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 28px;
    color: #ffffff;
    font-family: inherit;
}

.c-search-fs .c-search-fs__input::placeholder {
    color: #ffffff;
    opacity: 0.5;
}

/* Remove browser default search clear */
.c-search-fs .c-search-fs__input::-webkit-search-cancel-button,
.c-search-fs .c-search-fs__input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* ─── Popular Pages ─── */
.c-search-fs .c-search-fs__popular {
    margin-top: 28px;
}

.c-search-fs .c-search-fs__popular-label {
    font-size: 14px;
    color: #b9956a;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 16px;
}

.c-search-fs .c-search-fs__popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.c-search-fs .c-search-fs__popular-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #faf8f599;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition:
            color 0.2s ease,
            background-color 0.2s ease;
}

.c-search-fs .c-search-fs__popular-link:hover {
    color: #faf8f5;
    background-color: #faf8f51a;
}

/* ─── Results ─── */
.c-search-fs .c-search-fs__results {
    margin-top: 32px;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.c-search-fs .c-search-fs__result {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: padding-left 0.2s ease;
}
.c-search-fs .c-search-fs__result:hover {
    padding-left: 8px;
}

.c-search-fs .c-search-fs__result-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 4px;
    transition: color 0.2s ease;
}

.c-search-fs .c-search-fs__result-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* ─── Loading / No results ─── */
.c-search-fs .c-search-fs__loading,
.c-search-fs .c-search-fs__no-results {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    padding: 24px 0;
    text-align: center;
}

/* ─── Spinner ─── */
.c-search-fs .c-search-fs__spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #b89e6c;
    border-radius: 50%;
    animation: searchFsSpin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes searchFsSpin {
    to {
        transform: rotate(360deg);
    }
}
