/* ==========================================
   CUPCAKE MEETUP: ANTI-CHAN HQ THEME
/* Hacker Neon Background (Theme 2A) */
.hacker-bg {
    position: relative; 
    background: #1f2833; 
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

.ide-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding-top: 150px; /* Prevents sprites from clipping */
    margin-top: -150px;
    padding-bottom: 50px;
}
.hacker-bg::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 15 L40 15 L40 25 L50 25 L50 35 L40 35 L40 45 L30 45 L30 35 L20 35 L20 25 L30 25 Z' fill='%2366fcf1' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 40px; background-repeat: repeat;
    -webkit-mask-image: radial-gradient(circle at bottom left, black 0%, transparent 80%);
    mask-image: radial-gradient(circle at bottom left, black 0%, transparent 80%);
    pointer-events: none; z-index: 0;
    border-radius: inherit;
}

.vscode-wrapper {
    position: relative;
    z-index: 1;
    zoom: 0.8; /* Scales down the entire module like a Word image */
    width: 95%;
    min-width: 950px;
    max-width: 1400px;
    margin: 150px auto 50px auto; /* 150px top margin allows sprites to float without clipping in scroll container */
    height: 90vh;
    min-height: 800px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe WPC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #cccccc;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

/* Inner Container for Border Radius */
.vscode-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 1px solid #1a0a2e;
    border-bottom: none;
    background-color: #0d0d1a;
}

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a0a2e; }
::-webkit-scrollbar-thumb:hover { background: #7c4dff; }
::-webkit-scrollbar-corner { background: transparent; }

/* Activity Bar */
.vscode-activity-bar {
    width: 48px;
    background-color: #0d0d1a;
    border-right: 1px solid #1a0a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    flex-shrink: 0;
}
.activity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #858585;
    font-size: 20px;
}
.activity-icon.active {
    color: #ffffff;
    border-left: 2px solid #e040fb;
}

/* Primary Sidebar */
.vscode-sidebar {
    width: 140px;
    background-color: #0d0d1a;
    border-right: 1px solid #1a0a2e;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.vscode-sidebar-header {
    font-size: 11px;
    padding: 10px 20px;
    text-transform: uppercase;
    color: #cccccc;
    display: flex;
    justify-content: space-between;
}
.vscode-sidebar-section {
    font-size: 11px;
    font-weight: bold;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #cccccc;
}
.vscode-sidebar-section::before {
    content: '▶';
    font-size: 8px;
    margin-right: 5px;
}
.vscode-sidebar-section.expanded::before { transform: rotate(90deg); }

.vscode-sidebar-item {
    font-size: 13px;
    padding: 4px 10px 4px 25px;
    display: flex;
    align-items: center;
}
.vscode-sidebar-item.active { background-color: #1a0a2e; color: #ffffff; border-left: 2px solid #e040fb; }

/* Main Area */
.vscode-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #0d0d1a;
    min-width: 0;
}

/* Editor Tabs */
.vscode-tabs {
    display: flex;
    background-color: #0d0d1a;
    height: 35px;
    flex-shrink: 0;
}
.vscode-tab {
    padding: 0 15px;
    display: flex;
    align-items: center;
    background-color: #0d0d1a;
    color: #858585;
    font-size: 13px;
    border-right: 1px solid #1a0a2e;
}
.vscode-tab.active {
    background-color: #1a0a2e;
    color: #e040fb;
    border-top: 1px solid #e040fb;
}

/* Breadcrumbs */
.vscode-breadcrumbs {
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 12px;
    color: #858585;
    background-color: #0d0d1a;
    flex-shrink: 0;
}

/* Editor Content */
.vscode-editor-content {
    flex-grow: 1;
    padding: 20px 40px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 18px; 
    line-height: 1.6;
    color: #e1bee7;
}

/* Markdown Specifics */
.md-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 12px 15px;
    border: 1px dashed #18ffff; /* Cyan dashed border */
    background: rgba(24, 255, 255, 0.05); /* Very light cyan bg */
    color: #18ffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    letter-spacing: 1px;
}
.md-header-tag {
    opacity: 0.7;
    font-size: 12px;
}
.md-text { color: #e1bee7; }
.md-tsuki { color: #ff80ab; }
.md-selene { color: #18ffff; }
.md-quote {
    color: #e040fb;
    margin-left: 10px;
    border-left: 3px solid #7c4dff;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* Panel Area */
.vscode-panel {
    height: 220px;
    border-top: 1px solid #1a0a2e;
    display: flex;
    flex-direction: column;
    background-color: #0a0a15;
    flex-shrink: 0;
}
.vscode-panel-tabs {
    display: flex;
    height: 35px;
    padding: 0 20px;
    flex-shrink: 0;
}
.vscode-panel-tab {
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #858585;
    text-transform: uppercase;
}
.vscode-panel-tab.active {
    color: #e040fb;
    border-bottom: 1px solid #e040fb;
}

/* Split Terminals */
.vscode-terminals {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}
.vscode-terminal-instance {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px 20px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 14px;
    color: #e040fb; /* terminal.foreground */
}
.vscode-terminal-instance.left { border-right: 1px solid #1a0a2e; }

.term-line {
    margin-bottom: 6px;
    line-height: 1.4;
}

.term-banner {
    white-space: pre;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.2;
}

/* Specific terminal prompt colors */
.tsuki-term .term-prompt { color: #ff4081; } /* ansiMagenta */
.selene-term .term-prompt { color: #18ffff; } /* ansiCyan */

.term-sys { color: #e1bee7; font-style: italic; } /* ansiWhite */
.term-act { color: #ffd740; } /* ansiYellow */
.term-err { color: #ff4081; } /* ansiMagenta */
.term-msg { color: #00e676; } /* ansiGreen */

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: #e040fb;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Status Bar */
.vscode-status-bar {
    height: 22px;
    background-color: #6200ea;
    border: 1px solid #1a0a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    color: #ffffff;
    flex-shrink: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.status-left, .status-right { display: flex; align-items: center; gap: 15px; }
.status-item { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.status-item.error { color: #ff80ab; } 
.status-item.warning { color: #ffe57f; } 
.status-item.accent { color: #18ffff; font-weight: bold; }

/* SPRITE POSITIONING */
.mascot-sprite-meetup {
    width: 150px;
    height: 150px;
    background-size: 300% 300%;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    position: absolute;
    top: -140px; /* Stand on top of the IDE container */
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.5));
}

#tsuki-sprite { left: 50px; background-image: url('../../_assets/tsuki_hoshi-walk-3x3-no-bg.png'); transform: scaleX(1); }
#selene-sprite { right: 50px; background-image: url('../../_assets/selene_wave_anim_DESPILL.png'); transform: scaleX(-1); }

/* Custom Animations */
.anim-tsuki-shrug { animation: tsuki-shrug 1s steps(1) infinite; }
@keyframes tsuki-shrug {
    0.00%, 49.99% { background-position: 50% 50%; transform: scaleX(1); }
    50.00%, 99.99% { background-position: 100% 50%; transform: scaleX(1); }
    100% { background-position: 50% 50%; transform: scaleX(1); }
}

.anim-selene-wave { animation: selene-greeting-wave 1.8s steps(1) infinite; }
@keyframes selene-greeting-wave {
    0.00%, 33.32% { background-position: 50% 100%; transform: scaleX(-1); }
    33.33%, 66.66% { background-position: 100% 50%; transform: scaleX(-1); }
    66.67%, 99.99% { background-position: 50% 50%; transform: scaleX(-1); }
    100% { background-position: 50% 100%; transform: scaleX(-1); }
}

/* Speech Bubbles */
.speech-bubble {
    position: absolute;
    top: 20px;
    background: #0d0d1a;
    border: 1px solid #e040fb;
    border-radius: 15px;
    padding: 8px 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.tsuki-bubble { left: 140px; border-color: #ff4081; }
.selene-bubble { right: 140px; border-color: #18ffff; }

.speech-bubble .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.tsuki-bubble .dot { background-color: #ff4081; }
.selene-bubble .dot { background-color: #18ffff; }

.speech-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.speech-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.anim-tsuki-shrug .tsuki-bubble,
.anim-selene-wave .selene-bubble {
    opacity: 1;
}
