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

:root {
    --primary-glow: 0 0 10px rgba(139, 92, 246, 0.5);
    --gold-glow: 0 0 15px rgba(251, 191, 36, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* Slate 900 */
    color: #e2e8f0; /* Slate 200 */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 25%);
    min-height: 100vh;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1e293b; 
}
::-webkit-scrollbar-thumb {
    background: #4c1d95; 
    border-radius: 5px;
    border: 1px solid #1e293b;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d28d9; 
}

/* Card Hover Effects */
.tool-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--primary-glow), 0 0 20px rgba(124, 58, 237, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

.tool-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Button Styles */
.btn-rpg {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-rpg::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: 0.5s;
}

.btn-rpg:hover::before {
    left: 100%;
}

/* Loading Animation */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #7c3aed;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mystic Text Reveal */
.mystic-reveal {
    animation: fadeIn 1s ease-in;
}

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