/* Custom CSS for GiFi Magic Room */

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(300px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(300px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spinWheel {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(1800deg);
    }
}

/* Classes d'animation */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.slide-out-right {
    animation: slideOutRight 0.5s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

.spin-animation {
    animation: spinWheel 3s ease-out;
}

/* Styles pour les notifications */
.notification {
    background: linear-gradient(135deg, #FCD34D, #FB923C);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    max-width: 300px;
}

/* Styles pour les cartes produits */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Styles pour la roue de la fortune */
.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

/* Styles pour les barres de progression */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Styles pour les badges */
.badge-popular {
    background: linear-gradient(135deg, #EF4444, #EC4899);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* Styles pour les boutons */
.btn-primary {
    background: linear-gradient(135deg, #FCD34D, #FB923C);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #D1D5DB;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

/* Styles pour les sections */
.section-hidden {
    display: none;
}

.section-visible {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

/* Styles pour le compte à rebours */
.countdown-urgent {
    background: linear-gradient(135deg, #EF4444, #EC4899) !important;
    animation: pulse 1s infinite;
}

/* Styles pour les statistiques sociales */
.social-stat {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.social-stat:hover {
    transform: translateY(-2px);
}

/* Styles pour les icônes Lucide */
[data-lucide] {
    stroke-width: 2;
}

/* Styles responsives */
@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
    }
    
    .text-responsive {
        font-size: 1.5rem;
    }
    
    .px-responsive {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Styles pour les transitions de page */
.page-transition {
    transition: all 0.5s ease-in-out;
}

/* Styles pour les éléments interactifs */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
}

/* Styles pour les overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
}

/* Styles pour les modales */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 50;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 60;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Styles pour les éléments de gamification */
.gamification-element {
    position: relative;
    overflow: hidden;
}

.gamification-element::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 ease;
}

.gamification-element:hover::before {
    left: 100%;
}

/* Styles pour les effets de particules */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Styles pour les gradients personnalisés */
.gradient-gifi {
    background: linear-gradient(135deg, #FCD34D, #FB923C);
}

.gradient-gifi-light {
    background: linear-gradient(135deg, #FEF3C7, #FED7AA);
}

/* Styles pour les ombres personnalisées */
.shadow-gifi {
    box-shadow: 0 10px 25px rgba(251, 146, 60, 0.2);
}

.shadow-gifi-lg {
    box-shadow: 0 20px 40px rgba(251, 146, 60, 0.3);
}
