/* Effet de balayage brillant UNIQUEMENT pour la carte premium */
.premium-shine-effect {
    position: relative;
    overflow: hidden;
}

.premium-shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent
    );
    z-index: 1;
    pointer-events: none;
    animation: premiumShine 3s ease-in-out infinite;
    border-radius: inherit;
}

@keyframes premiumShine {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.premium-shine-effect:hover::before {
    animation-duration: 1.5s;
}

/* Effet de pulsation très subtile pour les autres niveaux (diamond, gold, silver) */
.subtle-pulse-effect {
    position: relative;
    overflow: hidden;
    animation: subtlePulse 6s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: inherit;
        transform: scale(1);
    }
    50% {
        transform: scale(1.005);
    }
}

.subtle-pulse-effect:hover {
    animation-duration: 3s;
}

/* Bordures brillantes et fonds colorés pour chaque niveau */

/* Premium (Emerald) */
.premium-border-glow {
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.3),
        0 0 40px rgba(16, 185, 129, 0.2),
        0 0 60px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.8);
    animation: premiumGlow 2s ease-in-out infinite alternate;
}

@keyframes premiumGlow {
    from {
        box-shadow: 
            0 0 20px rgba(16, 185, 129, 0.3),
            0 0 40px rgba(16, 185, 129, 0.2),
            0 0 60px rgba(16, 185, 129, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 30px rgba(16, 185, 129, 0.4),
            0 0 50px rgba(16, 185, 129, 0.3),
            0 0 70px rgba(16, 185, 129, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* Diamond (Cyan) - Effet pulsation subtile */
.diamond-border-glow {
    box-shadow: 
        0 0 12px rgba(6, 182, 212, 0.15),
        0 0 20px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(6, 182, 212, 0.5);
    animation: diamondPulse 5s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(6, 182, 212, 0.15),
            0 0 20px rgba(6, 182, 212, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }
    50% {
        box-shadow: 
            0 0 18px rgba(6, 182, 212, 0.25),
            0 0 30px rgba(6, 182, 212, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

/* Gold - Effet pulsation subtile */
.gold-border-glow {
    box-shadow: 
        0 0 12px rgba(245, 158, 11, 0.15),
        0 0 20px rgba(245, 158, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(245, 158, 11, 0.5);
    animation: goldPulse 5s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(245, 158, 11, 0.15),
            0 0 20px rgba(245, 158, 11, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }
    50% {
        box-shadow: 
            0 0 18px rgba(245, 158, 11, 0.25),
            0 0 30px rgba(245, 158, 11, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

/* Silver - Effet pulsation subtile */
.silver-border-glow {
    box-shadow: 
        0 0 12px rgba(156, 163, 175, 0.15),
        0 0 20px rgba(156, 163, 175, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(156, 163, 175, 0.5);
    animation: silverPulse 5s ease-in-out infinite;
}

@keyframes silverPulse {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(156, 163, 175, 0.15),
            0 0 20px rgba(156, 163, 175, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }
    50% {
        box-shadow: 
            0 0 18px rgba(156, 163, 175, 0.25),
            0 0 30px rgba(156, 163, 175, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

/* Fonds colorés avec gradients animés */
.premium-gradient-bg {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.15) 0%,
        rgba(52, 211, 153, 0.15) 25%,
        rgba(110, 231, 183, 0.15) 50%,
        rgba(52, 211, 153, 0.15) 75%,
        rgba(16, 185, 129, 0.15) 100%
    );
    background-size: 400% 400%;
    animation: premiumGradientMove 3s ease infinite;
}

.diamond-gradient-bg {
    background: linear-gradient(
        135deg,
        rgba(6, 182, 212, 0.08) 0%,
        rgba(34, 211, 238, 0.08) 25%,
        rgba(103, 232, 249, 0.08) 50%,
        rgba(34, 211, 238, 0.08) 75%,
        rgba(6, 182, 212, 0.08) 100%
    );
    background-size: 400% 400%;
    animation: diamondGradientMove 6s ease infinite;
}

.gold-gradient-bg {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(251, 191, 36, 0.08) 25%,
        rgba(253, 224, 71, 0.08) 50%,
        rgba(251, 191, 36, 0.08) 75%,
        rgba(245, 158, 11, 0.08) 100%
    );
    background-size: 400% 400%;
    animation: goldGradientMove 6s ease infinite;
}

.silver-gradient-bg {
    background: linear-gradient(
        135deg,
        rgba(156, 163, 175, 0.08) 0%,
        rgba(209, 213, 219, 0.08) 25%,
        rgba(243, 244, 246, 0.08) 50%,
        rgba(209, 213, 219, 0.08) 75%,
        rgba(156, 163, 175, 0.08) 100%
    );
    background-size: 400% 400%;
    animation: silverGradientMove 6s ease infinite;
}

@keyframes premiumGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes diamondGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes goldGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes silverGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Effet de particules brillantes UNIQUEMENT pour Premium */
.premium-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
}

.premium-particles::after {
    content: '✨';
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    animation: premiumParticles 4s linear infinite;
}

@keyframes premiumParticles {
    0% {
        top: 100%;
        left: 10%;
        opacity: 0;
        transform: rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: -10%;
        left: 90%;
        opacity: 0;
        transform: rotate(360deg);
    }
}

/* Effet de texte brillant pour les badges */
.premium-text-shine {
    background: linear-gradient(
        90deg,
        #10b981,
        #34d399,
        #6ee7b7,
        #34d399,
        #10b981
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: premiumTextShine 2s ease-in-out infinite;
}

.diamond-text-shine {
    background: linear-gradient(
        90deg,
        #06b6d4,
        #22d3ee,
        #67e8f9,
        #22d3ee,
        #06b6d4
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: diamondTextShine 4s ease-in-out infinite;
}

.gold-text-shine {
    background: linear-gradient(
        90deg,
        #f59e0b,
        #fbbf24,
        #fde047,
        #fbbf24,
        #f59e0b
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldTextShine 4s ease-in-out infinite;
}

.silver-text-shine {
    background: linear-gradient(
        90deg,
        #9ca3af,
        #d1d5db,
        #f3f4f6,
        #d1d5db,
        #9ca3af
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: silverTextShine 4s ease-in-out infinite;
}

@keyframes premiumTextShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes diamondTextShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes goldTextShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes silverTextShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsiveness */
@media (max-width: 768px) {
    .premium-shine-effect::before {
        display: none; /* Désactive l'effet sur mobile */
    }
    
    .subtle-pulse-effect {
        animation-duration: 8s;
    }
    
    .premium-particles::after {
        display: none; /* Désactive les particules sur mobile */
    }
}

/* Effets de hover pour tous les emplacements boostés */
.subtle-pulse-effect:hover,
.premium-shine-effect:hover {
    transform: translateY(-4px) scale(1.02);
    transition: all 0.3s ease;
}

.subtle-pulse-effect:hover {
    animation-duration: 3s;
}

.premium-shine-effect:hover::before {
    animation-duration: 1.5s;
}

/* Effets de hover spécifiques pour les bordures */
.premium-border-glow:hover,
.diamond-border-glow:hover,
.gold-border-glow:hover,
.silver-border-glow:hover {
    transform: translateY(-4px) scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Amélioration des effets de hover pour chaque niveau */
.premium-border-glow:hover {
    box-shadow: 
        0 0 30px rgba(16, 185, 129, 0.5),
        0 0 60px rgba(16, 185, 129, 0.3),
        0 0 90px rgba(16, 185, 129, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.diamond-border-glow:hover {
    box-shadow: 
        0 0 25px rgba(6, 182, 212, 0.4),
        0 0 50px rgba(6, 182, 212, 0.25),
        0 0 75px rgba(6, 182, 212, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.gold-border-glow:hover {
    box-shadow: 
        0 0 25px rgba(245, 158, 11, 0.4),
        0 0 50px rgba(245, 158, 11, 0.25),
        0 0 75px rgba(245, 158, 11, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.silver-border-glow:hover {
    box-shadow: 
        0 0 25px rgba(156, 163, 175, 0.4),
        0 0 50px rgba(156, 163, 175, 0.25),
        0 0 75px rgba(156, 163, 175, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Animation pour les badges lors du hover */
.premium-text-shine:hover,
.diamond-text-shine:hover,
.gold-text-shine:hover,
.silver-text-shine:hover {
    animation-duration: 1s;
}

/* Effet de hover pour les images dans les cartes boostées */
.boosted-card:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Effet de hover pour les boutons dans les cartes boostées */
.boosted-card:hover .bg-green-500,
.boosted-card:hover .bg-emerald-500,
.boosted-card:hover .bg-cyan-500,
.boosted-card:hover .bg-yellow-500,
.boosted-card:hover .bg-gray-400 {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}
