/* Vista Streaming CSS with Linux Invasion */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&family=Ubuntu+Mono:wght@400;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;
    transition: all 0.5s ease;
}

.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;
}

/* Penguin invasion mode */
.penguin-invasion {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a8b5c 50%, #6bb66e 100%) !important;
    animation: linuxTakeover 2s ease-in-out infinite alternate;
}

@keyframes linuxTakeover {
    from { filter: hue-rotate(0deg) brightness(1); }
    to { filter: hue-rotate(30deg) brightness(1.1); }
}

.penguin-glow {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8) !important;
    animation: penguinGlow 1s ease-in-out infinite alternate;
}

@keyframes penguinGlow {
    from { box-shadow: 0 0 20px rgba(0, 255, 0, 0.6); }
    to { box-shadow: 0 0 40px rgba(0, 255, 0, 1); }
}

.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;
    transition: all 0.3s ease;
}

.vista-window:hover {
    box-shadow: 0 8px 32px rgba(0,255,0,0.2);
}

@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 with Linux theming */
.rgb-border {
    border: 3px solid;
    border-image: linear-gradient(45deg, #00ff00, #0099cc, #000000, #00ff00) 1;
    animation: linuxRgbRotate 3s linear infinite;
}

@keyframes linuxRgbRotate {
    0% { border-image: linear-gradient(45deg, #00ff00, #0099cc, #000000, #00ff00) 1; }
    25% { border-image: linear-gradient(45deg, #0099cc, #000000, #00ff00, #0099cc) 1; }
    50% { border-image: linear-gradient(45deg, #000000, #00ff00, #0099cc, #000000) 1; }
    75% { border-image: linear-gradient(45deg, #00ff00, #0099cc, #000000, #00ff00) 1; }
    100% { border-image: linear-gradient(45deg, #00ff00, #0099cc, #000000, #00ff00) 1; }
}

/* Linux chat message highlighting */
.linux-chat {
    background: linear-gradient(90deg, rgba(0,255,0,0.1), rgba(0,153,204,0.1)) !important;
    border-left: 4px solid #00ff00;
    font-family: 'Ubuntu Mono', monospace;
}

.distro-war {
    background: linear-gradient(90deg, rgba(255,140,0,0.1), rgba(255,69,0,0.1)) !important;
    border-left: 4px solid #ff8c00;
    animation: distroFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes distroFlicker {
    from { border-left-color: #ff8c00; }
    to { border-left-color: #ff4500; }
}

/* Penguin animations */
@keyframes penguinMarch {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(10px) rotate(5deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(-10px) rotate(-5deg); }
}

.penguin-army {
    animation: penguinMarch 2s ease-in-out infinite;
}

/* Error dialogs with Linux overlay */
.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); }
}

.linux-advice {
    background: linear-gradient(135deg, rgba(0,255,0,0.1), rgba(0,153,204,0.1));
    border: 1px dashed #00ff00;
    animation: linuxAdviceGlow 2s ease-in-out infinite alternate;
}

@keyframes linuxAdviceGlow {
    from { 
        box-shadow: 0 0 5px rgba(0,255,0,0.3); 
        border-color: #00ff00;
    }
    to { 
        box-shadow: 0 0 15px rgba(0,255,0,0.6); 
        border-color: #00cc99;
    }
}

/* Terminal-like elements */
.terminal-text {
    font-family: 'Ubuntu Mono', monospace;
    background: rgba(0,0,0,0.8);
    color: #00ff00;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #00ff00;
}

.sudo-button {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Ubuntu Mono', monospace;
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

.sudo-button:hover {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    box-shadow: 0 0 10px rgba(0,255,0,0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vista-desktop {
        flex-direction: column;
    }
    
    .chat-panel {
        width: 100%;
        height: 250px;
    }
    
    .vista-window {
        width: 90% !important;
        height: 60% !important;
        left: 5% !important;
        top: 10% !important;
    }
    
    .linux-evangelism-meter {
        position: static !important;
        transform: none !important;
        margin: 10px;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a5568, #00ff00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a5a5a, #00cc99);
}

/* Special effects for Linux conversion moments */
.conversion-celebration {
    animation: linuxConversion 3s ease-in-out;
}

@keyframes linuxConversion {
    0% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: scale(1.1) rotate(90deg);
        filter: hue-rotate(120deg);
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        filter: hue-rotate(240deg);
    }
    75% { 
        transform: scale(1.1) rotate(270deg);
        filter: hue-rotate(300deg);
    }
    100% { 
        transform: scale(1) rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

/* Overwhelming evangelism warning */
.evangelism-overload {
    background: repeating-linear-gradient(
        45deg,
        rgba(255,0,0,0.1),
        rgba(255,0,0,0.1) 10px,
        rgba(0,255,0,0.1) 10px,
        rgba(0,255,0,0.1) 20px
    );
    animation: evangelismAlert 1s ease-in-out infinite;
}

@keyframes evangelismAlert {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}