
/*----------------------- HEADER  -----------------------*/

.category-header-top-image {
    height: 300px;
    border-radius: 8px;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the overlay opacity as needed */
    z-index: 1;
    border-radius: 8px;
}

.category-header-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Ensure the text is centered horizontally */
    height: 100%;
    padding: 0 20px;
}

.category-header-title {
    text-align: center;
    font-size: 32px;
    font-family: var(--font-name-title) sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.category-header-text {
    text-align: center; /* Center-align text */
    font-size: var(--font-size-medium);
    color: #fff;
    margin: 0 20px; /* Ensure text is not too wide on large screens */
}

@media (max-width: 768px) {
    .category-header-top-image {
        height: 210px;
        background-position: top center;
    }

    .category-header-title {
        font-size: 30px;
        padding: 0 20px;
    }

    .category-header-text {
        font-size: 14px;
        margin: 0 20px;
        padding: 0 10px;
    }
}

/*----------------------- LEFT SEARCH COLUMN  -----------------------*/

#sidebarToggle {
    display: inline-block;
    margin-right: 10px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 6px;
    color: white;
    width: 40px;
    height: 40px;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    top: auto;
    left: auto;
    z-index: 10;
}

.filter-container {
    position: relative;
    /* Reset positioning for desktop */
    transform: translateX(0%);
    /* Ensure it's always visible */
    background-color: white;
    width: 250px;
}

.filter-container input[type="text"] {
    width: calc(100%);
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-accordion-container .accordion-content {
    display: none;
    overflow: hidden;
    margin-bottom: 5px;
    background-color: #fff;
    box-sizing: border-box;
}

.filter-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-name-title) sans-serif;
    color: var(--color-dark-grey);
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    user-select: none;
}

.filter-accordion-title:hover {
    background-color: #f0f0f0;
}

.filter-arrow {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/*----------------------- RIGHT SEARCH RESULT COLUMN  -----------------------*/

.filter-search-results {
    display: none;
    border: 1px solid #ccc;
    padding-left: 10px;
    margin-bottom: 10px;
    position: relative;
    background-color: #fff;
}


.filter-search-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

#filterSearch {
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}
.filter-clear-icon {
    position: absolute;
    right: 10px;
    font-size: 25px;
    top: 14px;
    cursor: pointer;
    user-select: none;
    color: #C0C0C0;
}


.filter-accordion-item {
    display: flex;
    align-items: center;
    user-select: none;
    font-size: 11px;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-accordion-item:last-child {
    border-bottom: none;
}


.filter-accordion-item input[type="checkbox"] {
    margin-right: 8px;
}

.filter-accordion-item span {
    cursor: pointer;
    user-select: none;
}


.filter-tags-container {
    border-bottom: 1px solid #f0f0f0;
    padding-top: 8px;
     padding-bottom: 8px;
    min-height: 36px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
    padding: 3px;
    padding-left: 10px;
    background-color: #fff;
    color: var(--color-dark-grey);
    border: 1px solid #a9a38b;
    border-radius: 6px;
    margin-right: 10px;
}

.filter-tag span {
    margin-right: 4px;
}

.filter-tag-remove-icon {
    cursor: pointer;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    text-align: center;
    line-height: 15px;
    border-radius: 50%;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth transition for background-color and color */
}

.filter-tag-remove-icon:hover {
    background-color: var(--color-error);
    color: white;
}

@media (max-width: 768px) {
    .filter-container {
        position: fixed;
        /* or 'absolute' if that suits your layout better */
        left: 0;
        top: 0;
        height: 100%;
        width: 280px;
        /* Adjust as necessary */
        transform: translateX(-100%);
        /* Start off-screen */
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        /* Ensure it's above other content */
        padding: 20px;
    }

    .filter-container.is-visible {
        transform: translateX(0%);
        /* Move into view */
    }

    #sidebarToggle {
        display: block;
    }

    .filter-tags-container {
    }
}

.recipe-content {
    display: flex;
    height: 100%;
    padding: 4px;
    margin: 8px;
    position: relative;
    z-index: 10;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: left;
}

.recipe-content:hover .recipe-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.row {
    display: flex;
    align-items: center;
    transition: height 0.5s ease;
    flex-wrap: wrap;
}

.item-checkbox {
   width: 17px;
   height: 17px;
   flex-shrink: 0;
   appearance: none;
   background-color: transparent;
   background-repeat: no-repeat;
   background-position: center;
   background-size: 12px;
   border: 2px solid #acaab1;
   border-radius: 4px;
   cursor: pointer;
   transition: background-color 0.3s, border-color 0.3s;
}


.item-checkbox:checked {
   background-color: var(--color-primary);
   border-color: var(--color-primary);
   background-image: url('/img/icn/checkmark.svg');
   background-size: 12px;
   background-position: center;
   background-repeat: no-repeat;
   animation: clickEffect 0.6s ease;
}