/* Langemaire Recipe Filter Styles */

.lmr-recipe-search-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.lmr-filters-row {
    display: flex;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.lmr-search-field-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.lmr-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888DFC;
    font-size: 18px;
    z-index: 2;
}

.lmr-search-icon svg {
    width: 1em;
    height: 1em;
}

.lmr-search-field-wrapper:has(.lmr-search-icon) .lmr-search-input {
    padding-left: 50px;
}

.lmr-search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #888DFC;
    border-style: solid;
    border-radius: 8px;
    background-color: #FAFAFA;
    color: #0C0824;
    transition: all 0.3s ease;
    outline: none;
}

.lmr-search-input:focus {
    border-color: #CC81FC;
    box-shadow: 0 0 0 3px rgba(204, 129, 252, 0.1);
}

.lmr-search-input::placeholder {
    color: #999999;
}

.lmr-taxonomy-filter {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 15px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #888DFC;
    border-style: solid;
    border-radius: 8px;
    background-color: #FAFAFA;
    color: #0C0824;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888DFC' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

.lmr-taxonomy-filter:focus {
    border-color: #CC81FC;
    box-shadow: 0 0 0 3px rgba(204, 129, 252, 0.1);
}

.lmr-taxonomy-filter:hover {
    border-color: #CC81FC;
}

/* Responsive */
@media (max-width: 768px) {
    .lmr-filters-row {
        flex-direction: column;
    }

    .lmr-search-field-wrapper,
    .lmr-taxonomy-filter {
        width: 100%;
        min-width: 100%;
    }
}

/* Loading state tijdens AJAX */
.lmr-recipe-search-wrapper.loading .lmr-search-input,
.lmr-recipe-search-wrapper.loading .lmr-taxonomy-filter {
    opacity: 0.6;
    pointer-events: none;
}

.lmr-recipe-search-wrapper.loading::after {
    content: "Laden...";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888DFC;
    font-size: 14px;
    font-weight: 600;
}
