/* CSS Custom SquadIRL - Animations et styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-in;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
    @apply text-gray-300 hover:text-white transition-colors flex items-center gap-2;
}

.dropdown-menu {
    @apply hidden group-hover:block absolute right-0 mt-2 w-48 bg-gaming-dark border border-gray-800 rounded-lg shadow-xl overflow-hidden animate-slide-up;
}

.dropdown-item {
    @apply block px-4 py-3 hover:bg-gray-800 transition-colors;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn-primary {
    @apply px-4 py-2 bg-gradient-to-r from-gaming-purple to-gaming-pink hover:opacity-80 rounded-lg transition font-medium;
}

.btn-secondary {
    @apply px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded-lg transition font-medium;
}

.btn-danger {
    @apply px-4 py-2 bg-red-600 hover:bg-red-700 rounded-lg transition font-medium;
}

/* ============================================
   CARDS
   ============================================ */

.event-card {
    @apply bg-gaming-dark rounded-xl overflow-hidden border border-gray-800 hover:border-gaming-purple transition-all duration-300;
    transform: translateY(0);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.1),
        0 10px 10px -5px rgba(139, 92, 246, 0.04);
}

/* ============================================
   MESSAGES FLASH
   ============================================ */

.flash-message {
    @apply animate-slide-up;
}

/* ============================================
   FORMULAIRES
   ============================================ */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.footer-link {
    @apply text-gray-400 hover:text-white transition-colors;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   BADGE ANIMATIONS
   ============================================ */

.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   IMAGE PREVIEW
   ============================================ */

.image-preview {
    @apply animate-fade-in;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
    @apply bg-gradient-to-r from-gaming-purple to-gaming-pink bg-clip-text text-transparent;
}

/* ============================================
   SHIMMER EFFECT (pour loading states)
   ============================================ */

.shimmer {
    background: linear-gradient(90deg,
            rgba(15, 23, 42, 0) 0%,
            rgba(139, 92, 246, 0.1) 50%,
            rgba(15, 23, 42, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .event-card:hover {
        transform: none;
    }
}