/* --- Search Bar & Results --- */
.mfps-searchbar {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
}

#mfps-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #ccc;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#mfps-input:focus {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.25);
    outline: none;
}

#mfps-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mfps-item {
    padding: 0;
    border-bottom: 1px solid #f1f1f1;
}

.mfps-item:last-child {
    border-bottom: none;
}

.mfps-item a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 12px 18px;
    transition: background-color 0.2s ease;
}

.mfps-item a:hover {
    background: #f5f5f5;
}

.mfps-item a strong {
    color: #005a87;
    font-size: 1.1em;
    display: block;
    margin-bottom: 4px;
}

.mfps-item a span {
    color: #555;
    font-size: 0.95em;
    line-height: 1.4;
}

.mfps-hit {
    background: #fff59d;
    font-weight: bold;
    border-radius: 3px;
    padding: 0 2px;
}

.mfps-no-results {
    color: #888;
    padding: 15px 18px;
    font-style: italic;
}

/* --- Paragraph Highlight Animation --- */

@keyframes mfps-highlight-effect {
    from {
        background-color: rgba(255, 243, 72, 0);
    }
    to {
        background-color: rgba(255, 243, 72, 0.4);
    }
}

p.mfps-highlight {
    animation: mfps-highlight-effect 0.7s ease-out forwards;
    /* This transition handles the slow fade OUT when the class is removed */
    transition: background-color 2.5s ease-in-out;
    border-radius: 6px;
    /* Add padding/margin to make the highlight look better */
    padding-left: 0.5em;
    padding-right: 0.5em;
    margin-left: -0.5em;
    margin-right: -0.5em;
}
