/**
 * BLACK HORNET RACING - LOADING SCREEN
 * Eleganter Loading Screen verhindert weißen Flash
 */

/* Loading Screen Container */
#bhr-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0C1117;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

#bhr-loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* BHR Logo Container */
.bhr-loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.bhr-loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(5, 238, 136, 0.6));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Loading Text */
.bhr-loading-text {
    color: #E5E7EB;
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Racing Loading Bar */
.bhr-loading-bar-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.bhr-loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #05EE88, #04d478, #05EE88);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: loadingProgress 2s ease-out forwards, loadingShine 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(5, 238, 136, 0.8);
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes loadingShine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Loading Dots */
.bhr-loading-dots {
    color: #9CA3AF;
    font-size: 1rem;
    margin-top: 1rem;
}

.bhr-loading-dots span {
    animation: loadingDot 1.4s infinite;
}

.bhr-loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.bhr-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.bhr-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

/* Spinning Rennrad-Icon (optional) */
.bhr-loading-spinner {
    width: 40px;
    height: 40px;
    margin-top: 1rem;
    border: 3px solid rgba(5, 238, 136, 0.2);
    border-top-color: #05EE88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .bhr-loading-logo {
        width: 100px;
        height: 100px;
    }
    
    .bhr-loading-text {
        font-size: 1rem;
    }
    
    .bhr-loading-bar-container {
        width: 250px;
    }
}



