/* Styles pour les résultats de recherche */

/* Section de résultats */
.results-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-count {
    background: #D4AF37;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Grille de résultats */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Carte de résultat */
.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Badge de type */
.result-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(212, 175, 55, 0.95);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.result-type-badge.recipe {
    background: rgba(139, 195, 74, 0.95);
}

.result-type-badge.article {
    background: rgba(33, 150, 243, 0.95);
}

/* Image du résultat */
.result-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

/* Contenu du résultat */
.result-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: #D4AF37;
}

.result-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta informations */
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-meta i {
    color: #D4AF37;
    font-size: 0.9rem;
}

/* État vide */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.no-results-icon {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .result-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .result-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .result-content {
        padding: 15px;
    }
}