/* ================================== */
/* CSS AUTÔNOMO - LUPA DE BUSCA (SITE-WIDE)
/* ================================== */

/* ---------------------------------- */
/* 1. OVERLAY DE BUSCA                */
/* ---------------------------------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.95);
    /* Azul Padrão */
    z-index: 1999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #FFFFFF;
    /* Branco */
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.search-overlay-close:hover {
    transform: rotate(90deg);
    color: #EA4335;
    /* Vermelho Padrão */
}

.search-overlay-content {
    width: 90%;
    max-width: 700px;
}

/* ---------------------------------- */
/* 2. FORMULÁRIO DE BUSCA             */
/* ---------------------------------- */
.overlay-search-form {
    display: flex;
    width: 100%;
    border-bottom: 3px solid #FFBF00;
    /* Amarelo Padrão */
}

#overlay-search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    /* Branco */
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    padding: 1rem 0;
}

#overlay-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.overlay-search-form button {
    background: transparent;
    border: none;
    color: #FFBF00;
    /* Amarelo Padrão */
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
}

/* ---------------------------------- */
/* 3. ANIMAÇÃO DE ERRO (SHAKE)        */
/* ---------------------------------- */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(10px);
    }

    50% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ---------------------------------- */
/* 4. MEDIA QUERY (DESKTOP)           */
/* ---------------------------------- */
@media (min-width: 768px) {
    #overlay-search-input {
        font-size: 2.5rem;
    }

    .overlay-search-form button {
        font-size: 2.5rem;
    }
}