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

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

/* Fade in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    50% { opacity: 0.7; transform: translateY(10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* Floating particles animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-10px) translateX(5px) rotate(90deg); }
    50% { transform: translateY(-20px) translateX(-5px) rotate(180deg); }
    75% { transform: translateY(-10px) translateX(10px) rotate(270deg); }
}

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

/* Typewriter effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 3s steps(30) 1s forwards;
}

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

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #1f2937, #111827);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7c3aed, #dc2626);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8b5cf6, #ef4444);
}

/* Enhanced horror slider */
.slider-thumb {
    background: linear-gradient(90deg, #1f2937, #4b5563, #1f2937);
}

.slider-thumb::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #dc2626, #991b1b);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.8), inset 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid #7c2d12;
}

.slider-thumb::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #dc2626, #991b1b);
    cursor: pointer;
    border: 2px solid #7c2d12;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.8);
}

/* Enhanced glowing effects */
.cursed-title {
    animation: cursed-glow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px #ff6b35;
}

@keyframes cursed-glow {
    0% { 
        text-shadow: 0 0 20px #ff6b35, 0 0 30px #ff6b35, 0 0 40px #ff6b35;
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 25px #dc2626, 0 0 35px #dc2626, 0 0 45px #dc2626;
    }
    100% { 
        text-shadow: 0 0 30px #7c3aed, 0 0 40px #7c3aed, 0 0 50px #7c3aed;
        transform: scale(1.02);
    }
}

/* Glow effects for different elements */
.glow-effect {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
}

.glow-green {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4), 0 0 60px rgba(34, 197, 94, 0.2);
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0) translateY(0); }
    10% { transform: translateX(-2px) translateY(-1px); }
    20% { transform: translateX(2px) translateY(1px); }
    30% { transform: translateX(-2px) translateY(1px); }
    40% { transform: translateX(2px) translateY(-1px); }
    50% { transform: translateX(-1px) translateY(2px); }
    60% { transform: translateX(1px) translateY(-2px); }
    70% { transform: translateX(-1px) translateY(-2px); }
    80% { transform: translateX(1px) translateY(2px); }
    90% { transform: translateX(-1px) translateY(1px); }
}

/* Enhanced particle effect simulation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 107, 53, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(138, 43, 226, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(220, 38, 38, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(34, 197, 94, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(59, 130, 246, 0.3), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: cosmic-float 25s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes cosmic-float {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-15px) translateX(10px) rotate(90deg); }
    50% { transform: translateY(-8px) translateX(-8px) rotate(180deg); }
    75% { transform: translateY(-12px) translateX(15px) rotate(270deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}

/* Dark theme enhancements with glassmorphism */
.bg-gray-900 {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

/* Enhanced button effects */
button:hover {
    box-shadow: 
        0 0 25px rgba(147, 51, 234, 0.5),
        0 0 50px rgba(147, 51, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
    transition: all 0.3s ease;
}

button:active {
    transform: translateY(0) scale(0.98);
}

/* Enhanced input focus effects */
input:focus, textarea:focus {
    box-shadow: 
        0 0 0 3px rgba(147, 51, 234, 0.4), 
        0 0 20px rgba(147, 51, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: #a855f7;
}

/* Loading pulse effect */
@keyframes loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease;
}

/* Special effects for viral content */
.viral-glow {
    animation: viral-pulse 2s ease-in-out infinite;
}

@keyframes viral-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.8), 0 0 60px rgba(249, 115, 22, 0.4);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .cursed-title {
        font-size: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav button {
        width: 100%;
        text-align: center;
    }
}

/* Twitter-specific styling */
.twitter-blue {
    color: #1da1f2;
}

.tweet-style {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
}