/**
 * GARMR - Terminal Style
 * Version: 1.2.16
 * Author: Morpheus (morpheus@btx.cx) & Deeps
 */

:root { 
    --glow: #0f0; 
    --bg: #050505; 
    --glow-dim: #0f03; 
}

* { 
    box-sizing: border-box; 
}

body { 
    background: var(--bg); 
    color: var(--glow); 
    font-family: 'Courier New', monospace; 
    margin: 0; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
}

#bg-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    opacity: 0.1; 
}

.container { 
    display: flex; 
    flex: 1; 
    width: 100%; 
    padding: 20px; 
    gap: 20px; 
    box-sizing: border-box; 
    overflow: hidden; 
}

.main-terminal { 
    flex: 3; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid var(--glow); 
    background: rgba(0, 10, 0, 0.95); 
    position: relative; 
    box-shadow: 0 0 15px var(--glow-dim); 
}

.bento-sidebar { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.bento-box { 
    border: 1px solid var(--glow); 
    padding: 15px; 
    background: rgba(0, 8, 0, 0.98); 
    font-size: 0.85em; 
    overflow: hidden;
    box-shadow: 0 0 8px var(--glow-dim); 
}

.terminal-header { 
    padding: 10px; 
    border-bottom: 1px solid var(--glow); 
    background: var(--glow); 
    color: #000; 
    font-weight: bold; 
    font-size: 0.8em; 
    display: flex; 
    justify-content: space-between; 
}

#output { 
    flex: 1; 
    padding: 15px; 
    overflow-y: auto; 
    text-shadow: none; 
    scrollbar-width: none;
    font-size: 14px;
    line-height: 1.5; 
}

#output::-webkit-scrollbar {
    display: none;
}

.input-area { 
    display: flex; 
    padding: 12px; 
    border-top: 1px solid var(--glow); 
    align-items: center;
    background: rgba(0, 5, 0, 0.9);
}

.prompt {
    color: var(--glow);
    margin-right: 8px;
    font-weight: bold;
}

input { 
    background: none; 
    border: none; 
    color: var(--glow); 
    font-family: inherit; 
    outline: none; 
    width: 100%; 
    font-size: 16px;
}

.cursor { 
    width: 8px; 
    height: 1.2em; 
    background: var(--glow); 
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink { 
    0%, 50% { opacity: 1; } 
    51%, 100% { opacity: 0; } 
}

.status-bar { 
    height: 28px; 
    border-top: 1px solid var(--glow); 
    background: #000; 
    color: var(--glow); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 20px; 
    font-weight: bold; 
    font-size: 0.75em; 
}

#pulse-svg { 
    width: 100%; 
    height: 40px; 
    stroke: var(--glow); 
    stroke-width: 2; 
    fill: none; 
    opacity: 0.9; 
}

#transmission-stream { 
    font-style: italic; 
    transition: opacity 0.3s ease; 
    min-height: 2em;
    padding: 2px 0;
}

.command-history {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--glow-dim);
    font-size: 0.9em;
}

.command-item {
    opacity: 0.8;
    padding: 3px 0 3px 8px;
    border-left: 2px solid var(--glow-dim);
    margin: 3px 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.command-item:hover {
    opacity: 1;
    border-left-color: var(--glow);
    background: rgba(0, 255, 0, 0.1);
}

.discovered-files {
    min-height: 80px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 5px;
}

.file-item {
    opacity: 0.9;
    font-size: 0.9em;
    border-left: 2px solid var(--glow-dim);
    padding-left: 5px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-label {
    font-weight: bold;
    margin: 8px 0 4px 0;
    color: var(--glow);
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* Easter egg author credit */
.author-credit {
    text-align: right;
    font-size: 0.65em;
    opacity: 0.2;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.author-credit:hover {
    opacity: 0.8;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .bento-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .bento-box {
        min-width: calc(50% - 5px);
        padding: 10px;
    }
    
    .terminal-header {
        font-size: 0.7em;
        padding: 8px;
    }
    
    .status-bar {
        font-size: 0.65em;
        padding: 0 10px;
        height: auto;
        min-height: 28px;
        flex-wrap: wrap;
    }
    
    #output {
        font-size: 13px;
        padding: 10px;
    }
    
    .prompt {
        font-size: 14px;
    }
    
    input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bento-box {
        min-width: 100%;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .container {
        flex-direction: row;
    }
    
    .bento-sidebar {
        flex-direction: column;
    }
    
    .bento-box {
        min-width: auto;
    }
}