/* geovore/styles.css */

/* CLASSES POUR TITRES MULTICOLORES */
.geovore-title-main {
    color: #8b5cf6 !important;
    font-weight: 900 !important;
    font-size: 3rem !important;
}

.geovore-title-section {
    color: #3b82f6 !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
}

.geovore-title-sub {
    color: #ec4899 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

.geovore-title-small {
    color: #f59e0b !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
}

.geovore-title-white {
    color: white !important;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes slide-in {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes bounce-in {
    0% { 
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes spin-celebration {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

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

.animate-pulse-slow { 
    animation: pulse-slow 2s ease-in-out infinite; 
}

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

.animate-shake { 
    animation: shake 0.5s ease-in-out; 
}

.animate-bounce-in {
    animation: bounce-in 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-spin-celebration {
    animation: spin-celebration 2s ease-in-out infinite;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.niveau-6eme {
    background: linear-gradient(to right, #10b981, #059669);
}

.niveau-5eme {
    background: linear-gradient(to right, #f59e0b, #ea580c);
}

.niveau-4eme {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

.niveau-3eme {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
}

.jxgbox {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.construction-tool {
    transition: all 0.3s ease;
}

.construction-tool:hover {
    transform: scale(1.05);
}

.construction-tool.active {
    transform: scale(1.1);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.badge-geovore {
    position: relative;
    display: inline-block;
}

.badge-geovore::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: spin-celebration 1s ease-in-out;
}

.points-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confetti-fall 3s linear;
    pointer-events: none;
}

@media (max-width: 768px) {
    .geovore-title-main {
        font-size: 2rem !important;
    }
    
    .geovore-title-section {
        font-size: 1.75rem !important;
    }
    
    .geovore-title-sub {
        font-size: 1.25rem !important;
    }
    
    .geovore-title-small {
        font-size: 1rem !important;
    }
    
    .jxgbox {
        height: 400px !important;
    }
    
    .mobile-board {
        padding: 0.5rem !important;
    }
    
    .mobile-tool-button {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1.25rem !important;
    }
    
    .mobile-challenge-title {
        font-size: 1.25rem !important;
    }
}