/*
    recipe.css
    This stylesheet provides custom styles for the recipe listing page, including filter buttons,
    recipe grid, recipe items, and responsive adjustments for mobile devices.
    It ensures a clean, modern, and interactive UI for recipe-related views.
*/

/* Filter button container and button styles */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(242, 244, 247, 0.1);
}

.filter-btn.active {
    background: #BF161C;
    border-color: #e1bc3a;
}

.filter-btn:hover {
    border-color: #BF161C;
}

/* Recipe grid and recipe item styles */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px #BF161C;
}

.recipe-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-item {
    transform: translateY(0);
    transition: transform 0.3s ease;;
}

.recipe-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recipe-category {
    color: #BF161C;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.recipe-links {
    display: flex;
    gap: 1rem;
}

.recipe-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-link i {
    color: #BF161C;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 0.5rem 1.5rem;
    }

    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 1rem;
        gap: 1rem;
    }
}