/* Vista Streaming CSS */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

body, * {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
}

.vista-desktop {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.vista-bg {
    background: linear-gradient(135deg, #4a90e2 0%, #7bb3f2 50%, #a2d2ff 100%);
    background-size: cover;
}

.vista-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px;
}

.vista-window {
    border: 1px solid #888;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: windowGlitch 0.1s ease-in-out;
}

@keyframes windowGlitch {
    0% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

.vista-titlebar {
    background: linear-gradient(to bottom, #4a90e2, #2171b5);
    border-bottom: 1px solid #1a5490;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.vista-close-btn {
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vista-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.vista-taskbar {
    background: linear-gradient(to bottom, #2c3e50, #34495e);
    border-top: 1px solid #556b7f;
    backdrop-filter: blur(20px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

.vista-start-btn {
    background: linear-gradient(to bottom, #27ae60, #229954);
    border: 1px solid #1e8449;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.vista-start-btn:hover {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.vista-button {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border: 1px solid #adb5bd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.1s;
}

.vista-button:hover {
    background: linear-gradient(to bottom, #e9ecef, #dee2e6);
    transform: translateY(1px);
}

/* Streaming specific styles */
.streaming-overlay {
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.5);
    animation: liveGlow 2s ease-in-out infinite alternate;
}

@keyframes liveGlow {
    from { box-shadow: 0 0 20px rgba(255,0,0,0.5); }
    to { box-shadow: 0 0 30px rgba(255,0,0,0.8); }
}

.chat-message {
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.donation-alert {
    animation: donationPop 0.5s ease-out;
}

@keyframes donationPop {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.viral-moment {
    animation: viralPulse 1s ease-in-out infinite;
}

@keyframes viralPulse {
    0%, 100% { 
        transform: scale(1);
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: scale(1.05);
        filter: hue-rotate(180deg);
    }
}

/* RGB lighting effects */
.rgb-border {
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000) 1;
    animation: rgbRotate 3s linear infinite;
}

@keyframes rgbRotate {
    0% { border-image: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000) 1; }
    25% { border-image: linear-gradient(45deg, #00ff00, #0000ff, #ff0000, #00ff00) 1; }
    50% { border-image: linear-gradient(45deg, #0000ff, #ff0000, #00ff00, #0000ff) 1; }
    75% { border-image: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000) 1; }
    100% { border-image: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000) 1; }
}

/* Error dialogs with meme potential */
.meme-error {
    transform: rotate(-2deg);
    animation: errorShake 0.5s ease-in-out infinite;
}

@keyframes errorShake {
    0%, 100% { transform: rotate(-2deg) translateX(0); }
    25% { transform: rotate(-1deg) translateX(-2px); }
    75% { transform: rotate(-3deg) translateX(2px); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vista-desktop {
        flex-direction: column;
    }
    
    .chat-panel {
        width: 100%;
        height: 200px;
    }
    
    .vista-window {
        width: 90% !important;
        height: 60% !important;
        left: 5% !important;
        top: 10% !important;
    }
}

/* Scroll bar styling for chat */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d3748;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}