/* Styles personnalisés pour l'application de recettes */

.recipe-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recipe-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.recipe-card .card-body {
    display: flex;
    flex-direction: column;
}

.recipe-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.recipe-card .card-text {
    flex-grow: 1;
}

/* Image placeholder */
.no-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Étoiles de notation */
.rating {
    color: #ffc107;
}

.rating .bi-star {
    color: #dee2e6;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #dee2e6;
    padding: 0 2px;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #ffc107;
}

/* Temps de préparation/cuisson */
.time-badge {
    font-size: 0.85rem;
}

/* Fiche recette */
.recipe-detail-img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

.recipe-detail-no-img {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    border-radius: 8px;
}

/* Liste des ingrédients */
.ingredient-list {
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ingredient-list li:last-child {
    border-bottom: none;
}

.ingredient-list li::before {
    content: "\2022";
    color: #0d6efd;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    margin-right: 0.5em;
}

/* Instructions */
.instructions {
    white-space: pre-line;
    line-height: 1.8;
}

/* Formulaire d'ajout d'ingrédients */
.ingredient-row {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Catégories */
.category-badge {
    font-size: 0.8rem;
}

/* Filtres */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Messages d'alerte */
.alert {
    border-radius: 8px;
}

/* Boutons */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

/* Preview image upload */
#preview-image {
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
