/*--------------------------------------------------------------
>>> RECOMMENDATIONS STYLES
----------------------------------------------------------------
Styles for AI-powered recommendation system
--------------------------------------------------------------*/

/* Recommendations Section */
.recommendations-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.recommendations-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
}

.recommendations-section h3 i {
    color: #1abc9c;
    margin-right: 10px;
}

/* Recommendations Grid */
#recommendations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Recommendation Card */
.recommendation-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Thumbnail */
.rec-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #ecf0f1;
}

.rec-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-thumbnail .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    color: #bdc3c7;
}

.rec-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}

/* Content */
.rec-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rec-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.rec-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rec-title a:hover {
    color: #1abc9c;
}

.rec-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.rec-rating .stars {
    color: #f39c12;
}

.rec-rating .rating-value {
    font-weight: 600;
    color: #2c3e50;
}

.rec-reason {
    font-size: 13px;
    color: #7f8c8d;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rec-reason i {
    color: #1abc9c;
}

.rec-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    font-size: 13px;
    color: #7f8c8d;
}

.rec-meta .downloads {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rec-content .btn {
    margin-top: auto;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 16px;
}

.loading i {
    margin-right: 10px;
    color: #1abc9c;
}

/* Responsive */
@media (max-width: 768px) {
    #recommendations-container {
        grid-template-columns: 1fr;
    }

    .recommendations-section {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #recommendations-container {
        grid-template-columns: repeat(2, 1fr);
    }
}