﻿/* 🍽️ Layout and Spacing */
.split-list {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.list-box {
    width: 45%;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 8px;
}

/* ⭐ Stars and Ratings */
.stars {
    margin-left: 10px;
    font-size: 1.2em;
}

.star {
    color: #c28040;
    margin-right: 2px;
}

    .star.empty {
        opacity: 0.5;
    }

    .star.filled {
        opacity: 1;
    }

/* 🔎 Search Inputs */
#searchFilters input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 8px;
}

#ratingFilter {
    margin-top: 4px;
    font-size: 1.2em;
}

.filter-star {
    cursor: pointer;
    color: #c28040;
    margin-right: 4px;
    font-size: 1.4em;
}

/* 🏷️ Selected Label Style */
.active-label {
    font-weight: bold;
    color: #2a9df4;
    border-bottom: 2px solid #2a9df4;
}

/* 📱 Mobile Behavior */
@media (max-width: 768px) {
    .split-list {
        flex-direction: column;
    }

    .list-box {
        width: 100%;
        display: block;
    }

    /* 👇 Conditional visibility based on current view */
    .view-recipes .list-box:first-child {
        display: none;
    }

    .view-recipes .list-box:last-child {
        display: block;
    }

    .view-labels .list-box:nth-child(1) {
        display: block;
    }

    .view-labels .list-box:nth-child(2) {
        display: none;
    }

}
