/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(64, 224, 255, 0.5));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.loading-title {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #40e0ff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(64, 224, 255, 0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(64, 224, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(64, 224, 255, 0.8);
    }
}

.loading-subtitle {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.2em;
    color: #b8d4f0;
    margin-bottom: 40px;
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(64, 224, 255, 0.2);
    border-top: 4px solid #40e0ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #40e0ff, #64b5f6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(64, 224, 255, 0.5);
}

.loading-text {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1em;
    color: #b8d4f0;
    text-align: center;
    min-height: 20px;
}

.loading-tips {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 500px;
    padding: 0 20px;
}

.loading-tip {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.9em;
    color: #8bb3d9;
    font-style: italic;
    opacity: 0;
    animation: tipFade 4s ease-in-out infinite;
}

@keyframes tipFade {
    0%, 20%, 80%, 100% {
        opacity: 0;
    }
    30%, 70% {
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2em;
    }
    
    .loading-subtitle {
        font-size: 1em;
        padding: 0 20px;
    }
    
    .loading-logo {
        width: 80px;
        height: 80px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .loading-tips {
        bottom: 40px;
        max-width: 90%;
    }
}