/* Styles pour le bloc Featured Content */
.featured-content {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
}

.featured-content-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

.featured-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-card-large {
    flex: 2; /* Première carte plus grande */
}


.featured-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-card-thumbnail {
    height: 200px; /* Hauteur ajustée pour les grosses cartes */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    top: 160px;
    left: 0;
    width: 100%;
    height: 20%;
    /* Le background sera défini dynamiquement en PHP avec la couleur de la carte */
    z-index: 1;
}

.featured-card-info a{
    display:flex;
    align-items: center;
    padding: 6px 16px;
}

.featured-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    position: relative;
    z-index: 2;
}

.placeholder-icon {
    font-size: 32px;
    color: #999;
}

.featured-card-content {
    padding: 20px 16px 20px 16px;
    position: relative;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.featured-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
    line-height: 1.3;
    padding: 6px 16px;
}

.featured-card-category {
    font-size: 14px;
    color: #777;
    margin: 0 0 6px 0;
    text-align: left !important;
    
}

.featured-card-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.featured-card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
}

.download-icon {
    font-size: 18px;
    margin-right: 4px;
}

.download-count {
    font-size: 14px;
    color: #444;
}

.featured-card-action {
    bottom: 10px;
    right: 10px;
    z-index: 2;
}

/* Bouton commun pour modèle et application */
.btn-utiliser {
    display: inline-block;
    padding: 6px 12px;
    background: #e1d6ff; /* Violet clair */
    color: #7772a3;
    text-align: center;
    border: none;
    border-radius: 15px; /* Coins arrondis */
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-utiliser:hover {
    background: #7d3c9e; /* Violet plus foncé au survol */
    color: white;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-content {
        flex-direction: column;
        padding: 0px;
    }
    .featured-content-grid {
        flex-direction: column;
    }
    .featured-card {
        width: 100%;
    }
    .featured-card-thumbnail {
        height: 130px;
    }
    .featured-card-info a{
        display:flex;
        align-items: center;
        padding: 6px 0px;
    }
    
    /* Améliorer l'affichage du contenu sur mobile */
    .featured-card-content {
        text-align: left;
        padding: 15px 12px;
        gap: 12px;
        height: auto;
        min-height: 120px;
    }
    
    .featured-card-title {
        font-size: 16px;
        
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
        margin: 0 0 4px 0;
    }
    
    .featured-card-category {
        font-size: 12px !important;
        margin-top: 2px !important;
        margin-bottom: 8px;
        text-align: left !important;
    }
    
    /* Améliorer l'affichage de l'info modèle/app */
    .featured-card-info {
        gap: 10px;
        display: block !important;
        align-items: stretch;
    }
    
    .featured-card-info > div {
        align-items: center;
        gap: 10px;
    }
    
    .model-name,
    .featured-card-info span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        flex: 1;
    }
    
    /* Ligne de flou entre l'image et le texte */
    .featured-card-content::before {
        content: '';
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Bouton pleine largeur sur mobile */
    .featured-card-action {
        width: 100%;
        position: static;
    }
    
    .featured-card-action .button {
        width: 100%;
        padding: 7px 16px;
        text-align: center;
        border-radius: 10px;
        font-weight: 600;
        display: block;
        font-size: 14px;
    }
    
    .featured-card-category,
    .featured-card-description,
    .download-count {
        font-size: 12px;
    }
}