@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0b2e; 
}
::-webkit-scrollbar-thumb {
    background: #431c75; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffd700; 
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #0f0518;
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .mystic-font {
    font-family: 'Cinzel', serif;
}

/* Starry Background Animation */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    z-index: -1;
}

/* Card Glow Effects */
.arcana-card {
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.arcana-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), 0 0 30px rgba(67, 28, 117, 0.5);
    border-color: #ffd700;
}

/* Sidebar Animation */
.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #ffd700;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover::before, .nav-item.active::before {
    transform: scaleY(1);
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffd700;
}

/* Tool Specific Animations */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px #ffd700; }
    50% { box-shadow: 0 0 25px #ffd700, 0 0 10px #ff00ff; }
}

.glowing-orb {
    animation: pulse-glow 3s infinite;
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    backdrop-filter: blur(5px);
}
