/* =========================
   SEARCH BUTTON
========================= */

.search-button {
    position: fixed;
    top: 25px;
    right: 25px;

    width: 44px;
    height: 44px;

    border: 1px solid #eadfd8;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);

    color: #5b4b46;
    font-size: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(80, 60, 50, 0.08);

    z-index: 1000;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.search-button:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.95);

    box-shadow: 0 7px 18px rgba(80, 60, 50, 0.14);
}


/* =========================
   SEARCH OVERLAY
========================= */

.search-overlay {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(50, 40, 38, 0.35);
    backdrop-filter: blur(7px);

    z-index: 2000;

    padding: 80px 20px 30px;
}

.search-overlay.show {
    display: block;
}


/* =========================
   SEARCH BOX
========================= */

.search-box {
    width: 100%;
    max-width: 750px;

    margin: 0 auto;

    background: #fffaf7;

    border: 1px solid #eadfd8;
    border-radius: 24px;

    padding: 25px;

    box-shadow: 0 20px 50px rgba(50, 35, 30, 0.18);
}


/* =========================
   SEARCH HEADER
========================= */

.search-header {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.search-input {
    flex: 1;

    width: 100%;

    border: 1px solid #dfd1c9;
    border-radius: 14px;

    background: #ffffff;

    padding: 14px 16px;

    color: #3f3532;

    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 17px;

    outline: none;
}

.search-input:focus {
    border-color: #d9aaa9;

    box-shadow: 0 0 0 3px rgba(217, 170, 169, 0.15);
}

.search-close {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #f2e7e2;

    color: #5b4b46;

    font-size: 23px;

    cursor: pointer;

    flex-shrink: 0;
}

.search-close:hover {
    background: #eadbd5;
}


/* =========================
   SEARCH RESULTS
========================= */

.search-results {
    max-height: 65vh;

    overflow-y: auto;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* =========================
   RESULT ITEM
========================= */

.search-result {
    display: block;

    padding: 15px 17px;

    background: #ffffff;

    border: 1px solid #eadfd8;
    border-radius: 15px;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.search-result:hover {
    transform: translateY(-2px);

    background: #fffdfb;

    box-shadow: 0 5px 15px rgba(80, 60, 50, 0.08);
}


/* RESULT TITLE */

.search-result-title {
    margin: 0 0 5px;

    font-size: 18px;
    font-weight: 700;

    color: #3a302d;
}


/* RESULT CATEGORY */

.search-result-category {
    margin: 0 0 7px;

    font-size: 13px;

    color: #a17f76;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* RESULT TEXT */

.search-result-text {
    margin: 0;

    font-size: 15px;

    line-height: 1.5;

    color: #5b4b46;
}


/* =========================
   NO RESULTS
========================= */

.search-empty {
    padding: 30px 15px;

    text-align: center;

    color: #8b7770;

    font-size: 16px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 520px) {

    .search-button {
        top: 18px;
        right: 18px;

        width: 40px;
        height: 40px;

        font-size: 19px;
    }

    .search-overlay {
        padding: 70px 12px 20px;
    }

    .search-box {
        padding: 18px;

        border-radius: 20px;
    }

    .search-input {
        font-size: 16px;
    }

    .search-result-title {
        font-size: 17px;
    }

    .search-result-text {
        font-size: 14px;
    }
}