/* Custom animations and overrides */

/* Parallax effect */
.parallax-element {
    transform: translateZ(0);
    animation: parallaxFloat 6s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% { transform: translateY(0px) translateZ(0); }
    50% { transform: translateY(-20px) translateZ(0); }
}

/* Marquee animation */
.marquee-container {
    position: relative;
}

.marquee-content {
    animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Duplicate content for seamless loop */
.marquee-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
}

/* Floating runes animation */
.floating-rune {
    position: absolute;
    font-size: 2rem;
    color: #FFD700;
    opacity: 0.7;
    animation: floatingRune 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatingRune {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-60px) rotate(180deg);
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-30px) rotate(270deg);
        opacity: 1;
    }
}

/* Volcanic glow effects */
.bg-volcanic {
    background: linear-gradient(135deg, #2C1810 0%, #1a0f08 100%);
}

.bg-charcoal {
    background: linear-gradient(135deg, #36454F 0%, #2c3539 100%);
}

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

::-webkit-scrollbar-track {
    background: #2C1810;
}

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

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

/* Prose styling for markdown content */
.prose h2 {
    color: #FFD700;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: #DC143C;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose table {
    background: #36454F;
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.prose th {
    background: #2C1810;
    color: #FFD700;
    padding: 1rem;
    font-weight: bold;
}

.prose td {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(220, 20, 60, 0.1);
}

.prose blockquote {
    border-left: 4px solid #DC143C;
    background: rgba(220, 20, 60, 0.1);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.prose code {
    background: #2C1810;
    color: #FFD700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.prose pre {
    background: #2C1810;
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 20s;
    }
    
    .floating-rune {
        font-size: 1.5rem;
    }
    
    .parallax-element {
        animation-duration: 4s;
    }
}

/* Hover effects */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Button pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}
