/* Custom styles for illuminated manuscript effect */
@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Cinzel:wght@400;500;600;700&display=swap');

body {
    background-attachment: fixed;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    background-size: 100% 100%;
    scroll-behavior: smooth;
}

/* Parchment texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(245, 245, 220, 0.01) 2px,
            rgba(245, 245, 220, 0.01) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(245, 245, 220, 0.01) 2px,
            rgba(245, 245, 220, 0.01) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* Enhanced glow effects */
.text-yellow-400 {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.text-red-400 {
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

.text-blue-400 {
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.text-purple-400 {
    text-shadow: 0 0 8px rgba(196, 181, 253, 0.3);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffd700, #d4af37);
}

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

/* Enhanced hover effects */
.hover\:scale-110:hover {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

/* Special animation for loading */
@keyframes manuscript-unfurl {
    from {
        transform: scale(0.8) rotateY(-10deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

#root {
    animation: manuscript-unfurl 1.5s ease-out;
}

/* Enhanced border effects */
.border-yellow-400\/30 {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Selection highlighting */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #f5f5dc;
}

/* Print styles for the truly dedicated */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .text-yellow-400 {
        color: #8b7355 !important;
        text-shadow: none !important;
    }
}