/*
====================================
END STREAM - 4eSport
Black & White Animated Theme
====================================
*/

:root {
    --black: #000000;
    --white: #FFFFFF;
}

* {
    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 ================== */
.endstream-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    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.03) 40px,
            rgba(255, 255, 255, 0.03) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.03) 40px,
            rgba(255, 255, 255, 0.03) 41px
        );
    animation: gridScroll 20s linear infinite;
    z-index: 1;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ================== CONTENT ================== */
.endstream-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: contentFadeIn 1.5s ease-out;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== LOGO ================== */
.end-logo-container {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoEntrance 1.5s ease-out, logoPulse 3s ease-in-out 1.5s infinite;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }
}

.end-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================== TITLE ================== */
.end-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 8px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: titleSlide 1.2s ease-out 0.3s backwards, titleGlow 3s ease-in-out 1.5s infinite;
}

@keyframes titleSlide {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.8);
    }
}

.end-subtitle {
    font-size: 42px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 6px;
    margin-top: -20px;
    animation: subtitleSlide 1.2s ease-out 0.5s backwards;
}

@keyframes subtitleSlide {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================== SOCIAL SECTION ================== */
.end-social-section {
    margin-top: 30px;
    animation: socialFadeIn 1.5s ease-out 0.8s backwards;
}

@keyframes socialFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-title {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: socialItemFloat 3s ease-in-out infinite;
}

.social-item:nth-child(1) { animation-delay: 0s; }
.social-item:nth-child(2) { animation-delay: 1s; }
.social-item:nth-child(3) { animation-delay: 2s; }

@keyframes socialItemFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    transform: scale(1.05) translateY(-5px);
}

.social-icon {
    width: 50px;
    height: 50px;
    color: var(--white);
}

.social-text {
    text-align: left;
}

.social-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-handle {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

/* ================== END MESSAGE ================== */
.end-message {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    animation: messageFadeIn 1.5s ease-out 1.2s backwards, messagePulse 2s ease-in-out 2.5s infinite;
}

@keyframes messageFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes messagePulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* ================== CORNER DECORATIONS ================== */
.end-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid var(--white);
    z-index: 5;
    animation: cornerExpand 2s ease-out, cornerPulse 3s ease-in-out 2s infinite;
}

@keyframes cornerExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 1;
    }
}

@keyframes cornerPulse {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 10px 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;
}

.corner-tr {
    top: 30px;
    right: 30px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 30px;
    left: 30px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

/* ================== PARTICLES ================== */
.end-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 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateY(-100px) translateX(20px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-980px) translateX(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-1080px) translateX(0) scale(0.5);
    }
}

.particle-1 { left: 10%; bottom: 0; animation-delay: 0s; }
.particle-2 { left: 30%; bottom: 0; animation-delay: 2.5s; }
.particle-3 { left: 50%; bottom: 0; animation-delay: 5s; }
.particle-4 { left: 70%; bottom: 0; animation-delay: 7.5s; }
.particle-5 { left: 20%; bottom: 0; animation-delay: 10s; }
.particle-6 { left: 85%; bottom: 0; animation-delay: 12.5s; }
