/* Styles personnalisés pour AzCard */

/* Pattern de grille de fond */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Animation des cartes de jeux */
.game-card {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Animation de scroll horizontal */
#gamesContainer {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4B5563 #1F2937;
}

#gamesContainer::-webkit-scrollbar {
    height: 8px;
}

#gamesContainer::-webkit-scrollbar-track {
    background: #1F2937;
    border-radius: 4px;
}

#gamesContainer::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

#gamesContainer::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Animation de chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Animation de pulsation pour les éléments interactifs */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Styles pour les boutons */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-full transition-all duration-300 transform hover:scale-105;
}

.btn-secondary {
    @apply bg-gray-700 hover:bg-gray-600 text-white font-semibold py-3 px-6 rounded-full transition-all duration-300;
}

/* Styles pour les cartes */
.card {
    @apply bg-gray-800 rounded-xl shadow-lg border border-gray-700;
}

.card-hover {
    @apply hover:shadow-2xl hover:border-gray-600 transition-all duration-300;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-card {
        width: 280px;
        height: 360px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .game-card {
        width: 240px;
        height: 320px;
    }
}

/* Animation de texte défilant */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

/* Effet de brillance sur les cartes */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

/* Styles pour les icônes 3D */
.icon-3d {
    transform-style: preserve-3d;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(180deg);
    }
}

/* Gradient de fond animé */
.animated-gradient {
    background: linear-gradient(-45deg, #1F2937, #374151, #4B5563, #6B7280);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Styles pour l'avatar utilisateur */
.user-avatar {
    transition: all 0.3s ease;
    border: 2px solid #8B5CF6;
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: #A78BFA;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.user-avatar img {
    transition: opacity 0.3s ease;
}

.user-avatar img:hover {
    opacity: 0.9;
}

/* Animation de chargement pour l'avatar */
@keyframes avatarPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.avatar-loading {
    animation: avatarPulse 1.5s ease-in-out infinite;
}

/* Styles pour les cartes de collection */
.rarity-legendary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rarity-epic {
    background: linear-gradient(45deg, #8A2BE2, #9932CC);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.rarity-rare {
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
}

.rarity-common {
    background: linear-gradient(45deg, #808080, #A9A9A9);
    box-shadow: 0 0 20px rgba(128, 128, 128, 0.3);
}

/* Animation de brillance pour les cartes rares */
@keyframes cardShine {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

.game-card:hover .shine-effect {
    animation: cardShine 0.8s ease-out;
}

/* Effet de particules pour les cartes légendaires */
.legendary-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
    border-radius: 1rem;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animation de pulsation pour les badges de rareté */
.rarity-badge {
    animation: rarityPulse 2s ease-in-out infinite;
}

@keyframes rarityPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

/* Effet de survol amélioré pour les cartes */
.game-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* Animation de chargement pour les icônes de personnages */
.character-icon {
    animation: characterFloat 3s ease-in-out infinite;
}

@keyframes characterFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Styles pour les étoiles de rareté */
.star-gold {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: starGlow 2s ease-in-out infinite;
}

.star-silver {
    color: #C0C0C0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.star-bronze {
    color: #CD7F32;
    text-shadow: 0 0 6px rgba(205, 127, 50, 0.3);
}

@keyframes starGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        transform: scale(1.1);
    }
}

/* Animation pour les étoiles légendaires */
.legendary-stars .fa-star {
    animation: legendaryStarPulse 1.5s ease-in-out infinite;
}

@keyframes legendaryStarPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2);
        filter: brightness(1.5);
    }
}

/* Styles spécifiques pour la page série */
.series-card {
    perspective: 1000px;
}

.series-card:hover {
    transform: translateY(-20px) rotateX(5deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

/* Animation de rotation pour les icônes de série */
.series-card .character-icon {
    animation: seriesIconFloat 4s ease-in-out infinite;
}

@keyframes seriesIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(-10px) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg) scale(1.05);
    }
}

/* Effet de particules pour les cartes de série */
.series-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.series-card:hover::before {
    opacity: 1;
    animation: seriesBorderGlow 2s linear infinite;
}

@keyframes seriesBorderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation de texte dégradé */
.gradient-text {
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B6B, #4ECDC4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Effet de survol pour les statistiques */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.stats-card .bg-gradient-to-r {
    transition: all 0.3s ease;
}

.stats-card:hover .bg-gradient-to-r {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Animation de compteur pour les statistiques */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-number {
    animation: countUp 1s ease-out;
}

/* Styles pour l'affichage des boosters */
#boosters {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(168, 85, 247, 0.3));
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
}

#boosters:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

#boosters .fa-layer-group {
    animation: boosterGlow 2s ease-in-out infinite;
}

@keyframes boosterGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
        transform: scale(1.1);
    }
}

/* Animation de pulsation pour les nouveaux boosters */
@keyframes boosterPulse {
    0% {
        box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
    }
}

.booster-pulse {
    animation: boosterPulse 1s ease-in-out;
}

/* Styles pour la modale de déconnexion */
#logoutModal {
    backdrop-filter: blur(4px);
}

#modalContent {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#modalContent:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Animation d'apparition de la modale */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#logoutModal.show {
    animation: modalFadeIn 0.3s ease-out;
}

/* Effet de brillance amélioré pour les cartes de série */
.series-card .shine-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: seriesShine 3s ease-in-out infinite;
}

@keyframes seriesShine {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    50% {
        transform: translateX(100%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

