/* ===== Filter Bar ===== */
.recipes-list-filter-bar {
    padding: 1rem 2rem 0.5rem;
    background: transparent;
    border-bottom: none;
}

.filter-content {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.recipes-list-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 0.85rem 1rem;
    align-items: end;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.filter-control {
    min-width: 0;
}

.recipes-list-filter-form .filter-control-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.recipes-list-filter-form select {
    width: 100%;
    height: 48px;
    padding: 0 2.4rem 0 0.95rem;
    border: 1px solid #d9d4cb;
    border-radius: 14px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232d2d2d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 0.85rem center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.recipes-list-filter-form select:focus {
    outline: none;
    border-color: var(--vermillion);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.14);
}

.filter-apply {
    height: 48px;
    min-width: 116px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.filter-apply:hover {
    transform: none;
    box-shadow: none;
}

.filter-apply:focus-visible {
    outline: 3px solid rgba(196, 30, 58, 0.24);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .recipes-list-filter-bar {
        padding: 0.9rem 1.5rem 0.45rem;
    }

    .recipes-list-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.9rem;
    }

    .filter-apply {
        grid-column: span 2;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .recipes-list-filter-bar {
        padding: 0.85rem 1rem 0.35rem;
    }

    .recipes-list-filter-form {
        grid-template-columns: 1fr;
        padding: 0.45rem 0;
        gap: 0.65rem;
    }

    .recipes-list-filter-form .filter-control-label {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }

    .filter-apply {
        grid-column: span 1;
        width: 100%;
    }
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    align-items: center;
}

.pagination-form {
    margin: 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--paper-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.page-btn:disabled,
.page-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}

.page-btn-wide {
    width: auto;
    min-width: 72px;
    padding: 0 0.9rem;
    border-radius: 999px;
}

.page-btn:hover,
.page-btn.active {
    background: var(--vermillion);
    color: var(--white);
    border-color: var(--vermillion);
}


/* ===== Recipes List Layout ===== */
.recipes-list-results {
    padding-top: 0.8rem;
}

.recipes-list-results-header {
    margin-bottom: 1.25rem;
}

.recipes-list-empty-state {
    margin-bottom: 0;
    padding-top: 0.5rem;
}

@media (max-width: 1024px) {
    .recipes-list-results {
        padding-top: 0.65rem;
    }

    .recipes-list-results-header {
        margin-bottom: 1.1rem;
    }
}

@media (max-width: 768px) {
    .recipes-list-results {
        padding-top: 0.55rem;
    }

    .recipes-list-results-header {
        margin-bottom: 0.95rem;
    }

    .recipes-list-empty-state {
        padding-top: 0.35rem;
    }
}

html[dir="rtl"] .recipes-filter-form select {
    background-position: left 0.85rem center;
    padding: 0 0.95rem 0 2.4rem;
}
