/* 前台主選單放大鏡按鈕觸發的全螢幕搜尋 overlay 樣式 */
/* 與 search.js / layouts.blade.php 內 #searchOverlay 對應 */

.search-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    /* 預設隱藏，由 JS 透過 jQuery .fadeIn() / .fadeOut() 控制顯示 */
    /* 開啟時 JS 會設 display: flex 以保留 align-items / justify-content 置中 */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.search-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-overlay__close:hover {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
}

.search-overlay__inner {
    width: 100%;
    max-width: 720px;
    padding: 0 24px;
    text-align: center;
}

.search-overlay__title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.search-overlay__form {
    width: 100%;
}

.search-overlay__field {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-overlay__icon {
    flex: 0 0 auto;
    color: #999;
    font-size: 18px;
    padding: 0 16px;
}

.search-overlay__input {
    flex: 1 1 auto;
    height: 56px;
    border: none;
    outline: none;
    font-size: 18px;
    color: #222;
    background: transparent;
    padding: 0;
    min-width: 0;
}

.search-overlay__input::placeholder {
    color: #aaa;
}

.search-overlay__submit {
    flex: 0 0 auto;
    height: 56px;
    padding: 0 32px;
    border: none;
    background: #e60012;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-overlay__submit:hover {
    background: #b8000d;
}

/* 開啟 overlay 時鎖住 body scroll */
body.search-overlay-open {
    overflow: hidden;
}

/* 搜尋結果頁：空關鍵字提示 */
.search-empty-tip {
    padding: 60px 0;
    text-align: center;
    font-size: 18px;
    color: #666;
}

@media (max-width: 767px) {
    .search-overlay__close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .search-overlay__title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .search-overlay__field {
        flex-wrap: wrap;
    }

    .search-overlay__input {
        height: 48px;
        font-size: 16px;
        flex: 1 1 100%;
        padding: 0 12px 0 0;
    }

    .search-overlay__submit {
        flex: 1 1 100%;
        height: 44px;
    }

    .search-overlay__icon {
        padding: 0 12px;
    }
}
