/* ==========================================================================
   Organism: Search Overlay
   ========================================================================== */

.saha-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;
    background-color: var(--saha-color-bg-dark, #242424);
}

.saha-search-overlay[hidden] {
    display: none;
}

.saha-search-overlay__inner {
    max-width: var(--saha-container-max);
    margin: 0 auto;
    padding: 55px var(--saha-container-padding);
    display: flex;
    align-items: center;
    gap: 40px;
}

/* --- Form & Input --- */

.saha-search-overlay__form {
    flex: 1;
    max-width: 560px;
}

.saha-search-overlay__input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 0;
    font-family: var(--saha-font-primary);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--saha-color-text-inverse, #fff);
    outline: none;
}

.saha-search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.saha-search-overlay__input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* --- Close Button --- */

.saha-search-overlay__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--saha-color-text-inverse, #fff);
    padding: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saha-search-overlay__close:hover {
    opacity: 0.7;
}

.saha-search-overlay__close .saha-icon {
    width: 24px;
    height: 24px;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .saha-search-overlay__inner {
        padding: 30px 20px;
        gap: 20px;
    }

    .saha-search-overlay__input {
        font-size: 20px;
    }
}
