/* Splash Screen and Loading Animations */

/* Powered by Replit Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1s ease-in-out 3s forwards;
}

.splash-logo {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: white;
    font-weight: bold;
    margin-bottom: 30px;
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
}

.splash-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ff6b6b);
    border-radius: 30px;
    z-index: -1;
    animation: rotate 3s linear infinite;
    opacity: 0.7;
}

.splash-text {
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 3px;
    animation: slideUp 1s ease-out;
}

.powered-by {
    color: #888;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Martial Arts Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-screen.active {
    display: flex;
}

/* Yin-Yang Loader */
.yin-yang-loader {
    width: 100px;
    height: 100px;
    position: relative;
    animation: rotate 2s linear infinite;
    margin-bottom: 30px;
}

.yin-yang {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #fff 0%, #fff 50%, #000 50%, #000 100%);
    position: relative;
    border: 2px solid #ff6b6b;
}

.yin-yang::before,
.yin-yang::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 25px;
}

.yin-yang::before {
    left: 0;
    background: #000;
    border: 12.5px solid #fff;
}

.yin-yang::after {
    right: 0;
    background: #fff;
    border: 12.5px solid #000;
}

/* Martial Arts Belt Progress Bar */
.belt-progress {
    width: 300px;
    height: 20px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.belt-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #fff 0%, #fff 14%,           /* White belt */
        #ffd700 14%, #ffd700 28%,     /* Yellow belt */
        #ff8c00 28%, #ff8c00 42%,     /* Orange belt */
        #008000 42%, #008000 56%,     /* Green belt */
        #0000ff 56%, #0000ff 70%,     /* Blue belt */
        #800080 70%, #800080 84%,     /* Purple belt */
        #8b4513 84%, #8b4513 92%,     /* Brown belt */
        #000 92%, #000 100%           /* Black belt */
    );
    width: 0;
    animation: fillProgress 2s ease-out forwards;
}

.loading-message {
    color: #fff;
    font-size: 18px;
    margin-top: 30px;
    text-align: center;
    animation: fadeInOut 2s ease-in-out infinite;
}

.martial-quote {
    color: #888;
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

/* Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

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

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

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.8);
    }
}

@keyframes fillProgress {
    to {
        width: 100%;
    }
}

/* Katana Swipe Transition */
.katana-swipe {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 45%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 55%, 
        transparent 100%
    );
    z-index: 9998;
    animation: swipe 0.5s ease-out forwards;
}

@keyframes swipe {
    to {
        left: 100%;
    }
}

/* Button Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}