

.category-content {
    display: none;
    padding: 40px 0;
    animation: fadeIn 0.4s ease-in-out;
}

.category-content.active {
    display: block;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(95, 93, 255, 0.1), rgba(95, 93, 255, 0.05));
    border-radius: 12px;
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(90deg, #5f5dff, #8b89ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(95, 93, 255, 0.3),
                0 0 20px rgba(95, 93, 255, 0.2);
    border-color: rgba(95, 93, 255, 0.5);
}

.category-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
                                rgba(0, 0, 0, 0.95) 0%, 
                                rgba(0, 0, 0, 0.7) 50%,
                                transparent 100%);
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-overlay {
    transform: translateY(0);
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.category-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.category-card-year {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.category-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-card-rating .stars {
    color: #ffd700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.category-card-rating span:last-child {
    color: #fff;
}

.category-card-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animation d'entrée */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.category-link.active {
    color: #5f5dff;
}

/* Responsive */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 25px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }
    
    .category-card-title {
        font-size: 1rem;
    }
    
    .category-card-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, 
                                    rgba(0, 0, 0, 0.9) 0%, 
                                    rgba(0, 0, 0, 0.6) 60%,
                                    transparent 100%);
    }
}

@media (max-width: 480px) {
    .category-header {
        margin-bottom: 30px;
        padding: 20px 0;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

/* Message d'attente pendant le chargement */
.category-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.category-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
