/* Custom Cursed Styles */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&display=swap');

/* Loading animation */
@keyframes loading {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Horror slider */
.slider-thumb::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.slider-thumb::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* Glowing effects */
.cursed-title {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #ff6b35, 0 0 30px #ff6b35, 0 0 40px #ff6b35; }
    to { text-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b35, 0 0 30px #ff6b35; }
}

/* Spooky hover effects */
.hover-shake:hover {
    animation: shake 0.5s ease-in-out;
}

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

/* Particle effect simulation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 107, 53, 0.3), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(138, 43, 226, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 107, 53, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(138, 43, 226, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(-5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Dark theme enhancements */
.bg-gray-900 {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9));
    backdrop-filter: blur(10px);
}

/* Button glow effects */
button:hover {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
    transform: translateY(-1px);
}

/* Input focus effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.3), 0 0 15px rgba(147, 51, 234, 0.2);
}