/* Custom animations and styles */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes pulse-red {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.8), 0 0 20px rgba(239, 68, 68, 0.6);
    }
    50% { 
        text-shadow: 0 0 20px rgba(239, 68, 68, 1), 0 0 30px rgba(239, 68, 68, 0.8);
    }
}

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

.animate-glitch {
    animation: glitch 2s infinite;
}

.animate-pulse-red {
    animation: pulse-red 2s infinite;
}

/* Horror-themed styling for form elements */
.horror-input {
    background: linear-gradient(45deg, #1f2937, #374151);
    border: 2px solid #dc2626;
    transition: all 0.3s ease;
}

.horror-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* Skull emoji styling */
.skull-rating {
    filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.8));
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #ef4444;
}

/* Button hover effects */
.horror-button {
    position: relative;
    overflow: hidden;
}

.horror-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.horror-button:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-pulse-red {
        font-size: 2rem;
    }
    
    .horror-card {
        margin-bottom: 1rem;
    }
}

/* Dark theme enhancements */
.dark {
    color-scheme: dark;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-800 {
        background-color: #000000;
        border-color: #ffffff;
    }
    
    .text-gray-300 {
        color: #ffffff;
    }
    
    .border-red-600 {
        border-color: #ff0000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-shake,
    .animate-glitch,
    .animate-pulse-red {
        animation: none;
    }
}

/* Focus indicators for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .horror-button,
    nav,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}