/* Custom styles for magical theming */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.magical-bg {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    position: relative;
    overflow-x: hidden;
}

.magical-title {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
    background: linear-gradient(45deg, #8b5cf6, #3b82f6, #ec4899, #f59e0b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

.magical-heading {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.magic-glow {
    text-shadow: 0 0 15px currentColor;
}

.magic-card {
    background: rgba(30, 27, 75, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.magic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.spell-card {
    background: rgba(49, 46, 129, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.1);
}

.spell-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.magic-stat-card {
    background: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 120px;
}

.magic-wand-btn {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(236, 72, 153, 0.2);
    position: relative;
    overflow: hidden;
}

.magic-wand-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(236, 72, 153, 0.3);
}

.magic-wand-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: rotate 2s linear infinite;
}

.spell-component-btn {
    color: white;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.spell-component-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.primary-action-btn, .secondary-action-btn {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.primary-action-btn:hover, .secondary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.utility-btn {
    color: white;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.utility-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.spell-action-btn {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.spell-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Animated background elements */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(139, 92, 246, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(236, 72, 153, 0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(59, 130, 246, 0.8), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 4s ease-in-out infinite;
    opacity: 0.6;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle, rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(236, 72, 153, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 70px 70px;
    animation: float-particles 20s linear infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-particles {
    from { transform: translateY(0px) rotate(0deg); }
    to { transform: translateY(-100vh) rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .text-7xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .magic-wand-btn {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
    
    .primary-action-btn, .secondary-action-btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    
    .spell-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .spell-card .flex {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .text-7xl {
        font-size: 2rem;
    }
    
    .spell-component-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .magic-stat-card {
        min-width: 80px;
        padding: 0.8rem 1rem;
    }
}