/*
====================================
LOADING SCREEN - 4eSport
Black & White Animated Theme
====================================
*/

:root {
    --black: #000000;
    --white: #FFFFFF;
    --border-width: 3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 1920px;
    height: 1080px;
    background-color: transparent;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================== MAIN CONTAINER ================== */
.loading-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ================== ANIMATED GRID BACKGROUND ================== */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.05) 40px,
            rgba(255, 255, 255, 0.05) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.05) 40px,
            rgba(255, 255, 255, 0.05) 41px
        );
    animation: gridScroll 20s linear infinite;
    z-index: 1;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ================== CENTER LOGO ================== */
.center-logo {
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
    animation: logoEntrance 1.5s ease-out, logoPulse 3s ease-in-out infinite 1.5s;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.8));
    }
}

.main-logo {
    width: 300px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

/* ================== LOADING TEXT ================== */
.loading-text {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 50px;
    animation: textFadeIn 1s ease-out 0.5s backwards;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stream-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

.loading-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    animation: subtitleBlink 1.5s ease-in-out infinite;
}

@keyframes subtitleBlink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ================== LOADING BAR ================== */
.loading-bar-container {
    position: relative;
    z-index: 10;
    width: 600px;
    margin-bottom: 20px;
    animation: barFadeIn 1s ease-out 1s backwards;
}

@keyframes barFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-bar-bg {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.loading-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--white) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        var(--white) 100%);
    background-size: 200% 100%;
    animation: barFill 600s linear forwards, barShine 1.5s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

@keyframes barFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes barShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-bar-glow {
    position: absolute;
    top: -5px;
    left: -10px;
    width: 20px;
    height: 18px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    filter: blur(8px);
    animation: glowMove 600s linear forwards;
}

@keyframes glowMove {
    0% { left: -10px; }
    100% { left: calc(100% - 10px); }
}

.loading-percentage {
    margin-top: 15px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ================== SOCIAL INFO ================== */
.social-info {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    z-index: 10;
    animation: socialFadeIn 1s ease-out 1.5s backwards;
}

@keyframes socialFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: socialFloat 3s ease-in-out infinite;
}

.social-item:nth-child(2) {
    animation-delay: 0.5s;
}

.social-item:nth-child(3) {
    animation-delay: 1s;
}

@keyframes socialFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.social-icon-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* ================== CORNER DECORATIONS ================== */
.corner-deco {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid var(--white);
    z-index: 5;
    animation: cornerPulse 3s ease-in-out infinite;
}

@keyframes cornerPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.corner-tl {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
    animation-delay: 0s;
}

.corner-tr {
    top: 30px;
    right: 30px;
    border-left: none;
    border-bottom: none;
    animation-delay: 0.5s;
}

.corner-bl {
    bottom: 30px;
    left: 30px;
    border-right: none;
    border-top: none;
    animation-delay: 1s;
}

.corner-br {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
    animation-delay: 1.5s;
}

/* ================== FLOATING PARTICLES ================== */
.loading-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: particleFloat 10s ease-in-out infinite;
    z-index: 2;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-100px) translateX(30px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-900px) translateX(-30px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-1000px) translateX(0) scale(0);
    }
}

.particle-1 { left: 10%; bottom: 0; animation-delay: 0s; }
.particle-2 { left: 25%; bottom: 0; animation-delay: 1.5s; }
.particle-3 { left: 40%; bottom: 0; animation-delay: 3s; }
.particle-4 { left: 55%; bottom: 0; animation-delay: 4.5s; }
.particle-5 { left: 70%; bottom: 0; animation-delay: 6s; }
.particle-6 { left: 85%; bottom: 0; animation-delay: 7.5s; }
.particle-7 { left: 18%; bottom: 0; animation-delay: 2s; }
.particle-8 { left: 65%; bottom: 0; animation-delay: 5s; }
