/* Original Header Search Div (Hidden) */
.header-search.alpine-header-search {
    /* display: none; */ /* Keep if not needed */
}

/* Search Trigger Button (Ensure consistency if styled elsewhere) */
.header-search-trigger button {
    background: none;
    border: none;
    color: var(--alpine-text-main, #1B1B1B); /* Use variable */
    font-size: 20px; /* Match other header icons */
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.header-search-trigger button:hover {
    color: var(--alpine-red, #e0192e); /* Use variable */
}

/* --- Search Overlay Styles --- */

.alpine-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 27, 27, 0.9); /* Darker overlay - Use --alpine-dark-text with alpha? */
    /* background-color: rgba(var(--alpine-dark-text-rgb, 27, 27, 27), 0.9); */ /* Needs RGB var */
    backdrop-filter: blur(8px); /* Slightly more blur */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    padding-top: 15vh; /* Push content down */
    z-index: 10000; /* Ensure it's on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0.35s;
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.alpine-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0s;
}

/* Prevent body scrolling when overlay is open */
body.search-overlay-active {
    overflow: hidden;
}

.search-overlay-content {
    background-color: transparent; /* Remove inner background */
    padding: 0; /* Remove inner padding */
    border-radius: 0; /* Remove inner radius */
    max-width: 700px; /* Increase max width slightly */
    width: 90%;
    position: relative;
    box-shadow: none; /* Remove inner shadow */
    text-align: center;
    /* Add entrance animation */
    transform: translateY(-20px);
    transition: transform 0.35s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.alpine-search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-close {
    position: absolute;
    top: -40px; /* Position above the form */
    right: -10px; /* Adjust position */
    background: none;
    border: none;
    font-size: 24px; /* Adjust size */
    color: rgba(255,255,255,0.7); /* White icon */
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-overlay-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.searchform-overlay {
    display: flex;
    width: 100%;
    border-bottom: 2px solid rgba(255,255,255,0.5); /* Underline effect */
    transition: border-color 0.3s ease;
}
.searchform-overlay:focus-within {
     border-bottom-color: var(--alpine-red, #e0192e); /* Highlight on focus */
}

.search-overlay-input {
    flex-grow: 1;
    padding: 15px 0; /* Vertical padding, no horizontal */
    border: none; /* Remove border */
    border-radius: 0; /* Remove radius */
    font-size: 24px; /* Larger font size */
    background-color: transparent; /* Transparent background */
    color: #fff; /* White text */
    outline: none; /* Remove focus outline */
    direction: rtl; /* Ensure correct text direction */
    text-align: right;
}

.search-overlay-input::placeholder {
    color: rgba(255,255,255,0.5); /* Lighter placeholder */
    opacity: 1;
}

.search-overlay-submit {
    padding: 15px 20px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.7);
    border-radius: 0;
    cursor: pointer;
    font-size: 22px; /* Adjust icon size */
    transition: color 0.2s ease;
    margin-right: 10px; /* Space between input and button */
    line-height: 1;
}

.search-overlay-submit:hover {
    color: #fff;
}

/* Add FontAwesome icon if needed */
.search-overlay-submit::before {
    content: '\f002'; /* fa-search */
    font-family: "Font Awesome 6 Pro"; /* Use correct FA family */
    font-weight: 900; /* Solid style */
    display: inline-block;
}

/* --- End Search Overlay Styles --- */

/* ==========================================================================
   Search Results Page Styles
   ========================================================================== */

/* No Results */
.alpine-no-results {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.alpine-no-results .no-results-icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.alpine-no-results h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.alpine-no-results p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.alpine-no-results .alpine-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--alpine-red, #e0192e);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.alpine-no-results .alpine-button:hover {
    background: #c01729;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .alpine-no-results {
        padding: 50px 20px;
    }

    .alpine-no-results .no-results-icon {
        font-size: 48px;
    }

    .alpine-no-results h2 {
        font-size: 20px;
    }
} 