/* ========================================
   Loading Screen Styles
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #355C7D 0%, #6C5B7B 50%, #C06C84 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    padding: 32px;
}

.pixel-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 48px;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5),
                     0 0 10px rgba(255, 107, 157, 0.5);
    }
    to {
        text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5),
                     0 0 20px rgba(255, 107, 157, 1),
                     0 0 30px rgba(255, 107, 157, 0.5);
    }
}

.loading-bar-container {
    width: 300px;
    height: 30px;
    background-color: #1a1a2e;
    border: 4px solid #ffffff;
    margin: 0 auto 24px;
    position: relative;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4ecca3, #FF6B9D);
    transition: width 0.3s ease-out;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.loading-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #ffffff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pixel-title {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .loading-bar-container {
        width: 250px;
        height: 24px;
    }

    .loading-text {
        font-size: 10px;
    }
}

