/*
====================================
PROFESSIONAL OBS OVERLAY STYLES
Black & White Animated Design
====================================
*/

:root {
    --black: #000000;
    --white: #FFFFFF;
    --border-width: 3px;
    --camera-width: 320px;
    --camera-height: 180px;
    --game-width: 1600px;
    --game-height: 900px;
}

* {
    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;
    position: relative;
}

/* ================== ANIMATED BACKGROUND ================== */
.overlay-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: gridMove 20s linear infinite;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(circle at 10% 50%, transparent 100px, black 150px);
    -webkit-mask-image: radial-gradient(circle at 10% 50%, transparent 100px, black 150px);
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(4px, 4px); }
}

.overlay-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    animation: bgPulse 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(circle at 10% 50%, transparent 100px, black 150px);
    -webkit-mask-image: radial-gradient(circle at 10% 50%, transparent 100px, black 150px);
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ================== MAIN CONTAINER ================== */
.overlay-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* ================== GAME FRAME (16/9) - CENTER ================== */
.game-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--game-width);
    height: var(--game-height);
    border: var(--border-width) solid var(--white);
    background: transparent;
    z-index: 10;
    animation: frameEntrance 1s ease-out, framePulseGlow 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

@keyframes frameEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes framePulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 255, 255, 0.2),
            inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(255, 255, 255, 0.3),
            inset 0 0 40px rgba(255, 255, 255, 0.15);
    }
}

.game-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Animated border segments */
.game-frame::before,
.game-frame::after {
    content: '';
    position: absolute;
    background: var(--white);
    animation: borderSegmentMove 4s linear infinite;
}

.game-frame::before {
    top: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: borderTopMove 6s linear infinite;
}

.game-frame::after {
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: borderBottomMove 6s linear infinite;
}

@keyframes borderTopMove {
    0% { left: -100px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 100px); opacity: 0; }
}

@keyframes borderBottomMove {
    0% { right: -100px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: calc(100% + 100px); opacity: 0; }
}

/* Game frame corner decorations */
.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--white);
    animation: cornerPulse 3s ease-in-out infinite;
}

@keyframes cornerPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.5),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
}

.corner-tl {
    top: -12px;
    left: -12px;
    border-right: none;
    border-bottom: none;
    animation-delay: 0s;
}

.corner-tl::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 20px;
    height: 2px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite;
}

.corner-tl::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 2px;
    height: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite 0.5s;
}

@keyframes cornerLineExtend {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.corner-tr {
    top: -12px;
    right: -12px;
    border-left: none;
    border-bottom: none;
    animation-delay: 0.75s;
}

.corner-tr::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 2px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite 0.75s;
}

.corner-tr::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 2px;
    height: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite 1.25s;
}

.corner-bl {
    bottom: -12px;
    left: -12px;
    border-right: none;
    border-top: none;
    animation-delay: 1.5s;
}

.corner-bl::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 20px;
    height: 2px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite 1.5s;
}

.corner-bl::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 2px;
    height: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite 2s;
}

.corner-br {
    bottom: -12px;
    right: -12px;
    border-left: none;
    border-top: none;
    animation-delay: 2.25s;
}

.corner-br::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 2px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite 2.25s;
}

.corner-br::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 2px;
    height: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: cornerLineExtend 2s ease-in-out infinite 2.75s;
}

/* ================== TOP DECORATION ================== */
.top-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    z-index: 5;
}

.animated-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--white) 50%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.line-top-1 {
    top: 30px;
    width: 50%;
    left: -50%;
    animation: slideRight 8s linear infinite;
}

.line-top-2 {
    top: 60px;
    width: 40%;
    right: -40%;
    animation: slideLeft 6s linear infinite 1s;
}

@keyframes slideRight {
    0% { left: -50%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes slideLeft {
    0% { right: -40%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: 100%; opacity: 0; }
}

/* ================== BOTTOM DECORATION ================== */
.bottom-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    z-index: 5;
}

.line-bottom-1 {
    bottom: 30px;
    width: 45%;
    left: -45%;
    animation: slideRight 7s linear infinite 2s;
}

.line-bottom-2 {
    bottom: 60px;
    width: 35%;
    right: -35%;
    animation: slideLeft 9s linear infinite 0.5s;
}

/* Decorative shapes */
.decorative-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--white);
    background: transparent;
    animation: shapeRotate 10s linear infinite;
    z-index: 5;
}

@keyframes shapeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shape-top-left {
    top: 20px;
    left: 40px;
}

.shape-top-right {
    top: 20px;
    right: 450px;
    animation-direction: reverse;
}

.shape-bottom-left {
    bottom: 20px;
    left: 40px;
    animation-delay: 2s;
}

.shape-bottom-right {
    bottom: 20px;
    right: 450px;
    animation-direction: reverse;
    animation-delay: 3s;
}

/* ================== LOGO (LEFT SIDE) ================== */
.logo-container {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    animation: logoEntrance 1s ease-out;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.logo-image {
    width: 150px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* ================== SIDE DECORATIONS ================== */
.side-decoration {
    position: absolute;
    top: 20%;
    width: 100px;
    height: 60%;
    z-index: 5;
}

.side-left {
    left: 40px;
    opacity: 0;
    pointer-events: none;
}

.side-right {
    right: 40px;
}

.vertical-line {
    position: absolute;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--white) 50%, 
        transparent 100%);
    left: 50%;
    transform: translateX(-50%);
    animation: lineGrow 4s ease-in-out infinite;
}

@keyframes lineGrow {
    0%, 100% { height: 0%; top: 50%; }
    50% { height: 100%; top: 0%; }
}

.v-line-1 {
    animation-delay: 0s;
}

.v-line-2 {
    animation-delay: 2s;
}

.pulse-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.5);
    }
}

.dot-1 { top: 20%; animation-delay: 0s; }
.dot-2 { top: 60%; animation-delay: 1s; }
.dot-3 { top: 30%; animation-delay: 0.5s; }
.dot-4 { top: 70%; animation-delay: 1.5s; }

/* ================== SOCIAL BADGE (BELOW CAMERA) ================== */
.social-badge {
    position: absolute;
    top: 50%;
    right: 50px;
    width: var(--camera-width);
    height: 80px;
    transform: translateY(calc(var(--camera-height) / 2 + 15px));
    background: var(--white);
    border: var(--border-width) solid var(--black);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 255, 255, 0.3);
    z-index: 18;
    overflow: hidden;
    opacity: 0;
    transform: translateY(calc(var(--camera-height) / 2 + 95px));
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-badge.visible {
    opacity: 1;
    transform: translateY(calc(var(--camera-height) / 2 + 15px));
}

.social-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-svg {
    width: 26px;
    height: 26px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-svg.active {
    opacity: 1;
}

.social-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.follow-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
}

.platform-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.4px;
    transition: opacity 0.3s ease;
}

/* ================== CAMERA FRAME (16/9) ================== */
.camera-frame {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    width: var(--camera-width);
    height: var(--camera-height);
    border: var(--border-width) solid var(--white);
    background: transparent;
    z-index: 20;
    animation: cameraEntrance 1.2s ease-out, cameraGlow 4s ease-in-out infinite;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes cameraEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cameraGlow {
    0%, 100% {
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(255, 255, 255, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(255, 255, 255, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.15);
    }
}

.camera-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

/* Animated scanning line effect */
.camera-inner::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: scanLine 5s linear infinite;
}

@keyframes scanLine {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* Camera corner decorations */
.camera-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--white);
    animation: cameraCornerPulse 2.5s ease-in-out infinite;
}

@keyframes cameraCornerPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 
            0 0 8px rgba(255, 255, 255, 0.6),
            0 0 15px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 15px rgba(255, 255, 255, 0.9),
            0 0 25px rgba(255, 255, 255, 0.5);
        transform: scale(1.15);
    }
}

.camera-corner-tl {
    top: -8px;
    left: -8px;
    border-right: none;
    border-bottom: none;
    animation-delay: 0s;
}

.camera-corner-tl::before,
.camera-corner-tl::after {
    content: '';
    position: absolute;
    background: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.camera-corner-tl::before {
    top: -1px;
    left: -1px;
    width: 15px;
    height: 2px;
    animation: cornerFlash 3s ease-in-out infinite;
}

.camera-corner-tl::after {
    top: -1px;
    left: -1px;
    width: 2px;
    height: 15px;
    animation: cornerFlash 3s ease-in-out infinite 0.3s;
}

@keyframes cornerFlash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.camera-corner-tr {
    top: -8px;
    right: -8px;
    border-left: none;
    border-bottom: none;
    animation-delay: 0.6s;
}

.camera-corner-tr::before,
.camera-corner-tr::after {
    content: '';
    position: absolute;
    background: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.camera-corner-tr::before {
    top: -1px;
    right: -1px;
    width: 15px;
    height: 2px;
    animation: cornerFlash 3s ease-in-out infinite 0.6s;
}

.camera-corner-tr::after {
    top: -1px;
    right: -1px;
    width: 2px;
    height: 15px;
    animation: cornerFlash 3s ease-in-out infinite 0.9s;
}

.camera-corner-bl {
    bottom: -8px;
    left: -8px;
    border-right: none;
    border-top: none;
    animation-delay: 1.2s;
}

.camera-corner-bl::before,
.camera-corner-bl::after {
    content: '';
    position: absolute;
    background: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.camera-corner-bl::before {
    bottom: -1px;
    left: -1px;
    width: 15px;
    height: 2px;
    animation: cornerFlash 3s ease-in-out infinite 1.2s;
}

.camera-corner-bl::after {
    bottom: -1px;
    left: -1px;
    width: 2px;
    height: 15px;
    animation: cornerFlash 3s ease-in-out infinite 1.5s;
}

.camera-corner-br {
    bottom: -8px;
    right: -8px;
    border-left: none;
    border-top: none;
    animation-delay: 1.8s;
}

.camera-corner-br::before,
.camera-corner-br::after {
    content: '';
    position: absolute;
    background: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.camera-corner-br::before {
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 2px;
    animation: cornerFlash 3s ease-in-out infinite 1.8s;
}

.camera-corner-br::after {
    bottom: -1px;
    right: -1px;
    width: 2px;
    height: 15px;
    animation: cornerFlash 3s ease-in-out infinite 2.1s;
}

/* ================== FLOATING PARTICLES ================== */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: particleFloat 10s ease-in-out infinite;
}

@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: 15%;
    bottom: 0;
    animation-delay: 0s;
}

.particle-2 {
    left: 30%;
    bottom: 0;
    animation-delay: 2s;
}

.particle-3 {
    left: 50%;
    bottom: 0;
    animation-delay: 4s;
}

.particle-4 {
    left: 70%;
    bottom: 0;
    animation-delay: 6s;
}

.particle-5 {
    left: 85%;
    bottom: 0;
    animation-delay: 8s;
}

.particle-6 {
    left: 40%;
    bottom: 0;
    animation-delay: 3s;
}
