/* Copyright (c) 2025 Toxı360 Portfolio - toxi360.org | License: license.html */

/* Simple Terminal Window - Real Terminal Style */
.simple-terminal-window {
    width: 800px;
    height: 600px;
    background: #0a0a0a;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    transition: all 0.3s ease;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.simple-terminal-window.minimized {
    transform: translate(-50%, calc(100% - 35px));
    height: 35px;
    width: 300px;
}

.simple-terminal-window.minimized .simple-terminal-content {
    display: none;
}

.simple-terminal-window.maximized {
    width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    transform: none;
    top: 0;
    left: 0;
}

.simple-terminal-window.maximized .simple-terminal-header {
    border-radius: 0;
}

.simple-terminal-header {
    background: #1a1a1a;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    cursor: move;
    user-select: none;
    position: relative;
    height: 35px;
}

.simple-terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Window Controls for Simple Terminal */
.simple-terminal-window .window-controls {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.simple-terminal-window .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.simple-terminal-window .control.close {
    background: #ff5f56;
}

.simple-terminal-window .control.minimize {
    background: #ffbd2e;
}

.simple-terminal-window .control.maximize {
    background: #27c93f;
}

.simple-terminal-window .control:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.simple-terminal-window .control.close:hover {
    background: #ff4444;
}

.simple-terminal-window .control.minimize:hover {
    background: #ffaa00;
}

.simple-terminal-window .control.maximize:hover {
    background: #22cc44;
}

.simple-terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    height: calc(100% - 35px);
}

.simple-terminal-output {
    flex: 1;
    padding: 15px;
    padding-bottom: 70px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #e0e0e0;
    line-height: 1.4;
    font-size: 13px;
    scrollbar-width: thin;
    scrollbar-color: #555 #0a0a0a;
    min-height: 0;
    max-height: 100%;
    position: relative;
}

.simple-terminal-output::-webkit-scrollbar {
    width: 8px;
}

.simple-terminal-output::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.simple-terminal-output::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.simple-terminal-output::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.welcome-message {
    color: #00ff00;
    font-weight: 600;
    margin-bottom: 8px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #0a0a0a;
    border-top: 1px solid #333;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 55px;
    box-sizing: border-box;
}

.terminal-input-line .prompt {
    color: #00ff00;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    font-size: 13px;
    margin-right: 10px;
}

.terminal-input-line input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    caret-color: #00ff00;
}

.terminal-input-line input::placeholder {
    color: #666;
}

/* Command Output Styling */
.command-output {
    margin: 8px 0;
    padding: 8px 0;
    color: #e0e0e0;
}

.error-output {
    color: #ff6b6b;
}

.success-output {
    color: #4ecdc4;
}

.info-output {
    color: #45b7d1;
}

/* Help Menu Styling */
.help-menu {
    margin: 15px 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.help-header {
    background: #2a2a2a;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    color: #00ff00;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-content {
    padding: 15px;
}

.help-section {
    margin-bottom: 20px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-category {
    color: #00ff00;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.help-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 8px;
}

.help-command {
    display: flex;
    align-items: flex-start;
    padding: 6px 8px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.help-command:hover {
    background: #1a1a1a;
    border-color: #555;
}

.command-name {
    color: #00ff00;
    font-weight: 600;
    font-size: 11px;
    min-width: 120px;
    font-family: 'Consolas', monospace;
}

.command-description {
    color: #ccc;
    font-size: 11px;
    line-height: 1.3;
    flex: 1;
}

/* System Info Styling */
.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.system-item {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #333;
}

.system-label {
    color: #00ff00;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.system-value {
    color: #e0e0e0;
    font-size: 11px;
    font-family: 'Consolas', monospace;
}

/* File List Styling */
.file-list {
    margin: 10px 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #2a2a2a;
    border-color: #555;
}

.file-icon {
    color: #00ff00;
    margin-right: 8px;
    font-size: 12px;
}

.file-name {
    color: #e0e0e0;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    flex: 1;
}

.file-size {
    color: #999;
    font-size: 10px;
    font-family: 'Consolas', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-terminal-window {
        width: 95%;
        height: 70vh;
        border-radius: 6px;
    }
    
    .simple-terminal-header {
        padding: 6px 12px;
        height: 30px;
    }
    
    .simple-terminal-title {
        font-size: 12px;
    }
    
    .simple-terminal-content {
        height: calc(100% - 30px);
    }
    
    .simple-terminal-output {
        padding: 12px;
        padding-bottom: 60px;
        font-size: 12px;
    }
    
    .terminal-input-line {
        padding: 8px 12px;
        height: 50px;
    }
    
    .terminal-input-line .prompt {
        font-size: 12px;
        margin-right: 8px;
    }
    
    .terminal-input-line input {
        font-size: 12px;
    }
    
    .help-commands {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .help-command {
        padding: 5px 6px;
    }
    
    .command-name {
        min-width: 100px;
        font-size: 10px;
    }
    
    .command-description {
        font-size: 10px;
    }
    
    .system-info {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .system-item {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .simple-terminal-window {
        width: 98%;
        height: 65vh;
        border-radius: 4px;
    }
    
    .simple-terminal-header {
        padding: 5px 10px;
        height: 28px;
    }
    
    .simple-terminal-title {
        font-size: 11px;
    }
    
    .simple-terminal-content {
        height: calc(100% - 28px);
    }
    
    .simple-terminal-output {
        padding: 10px;
        padding-bottom: 55px;
        font-size: 11px;
    }
    
    .terminal-input-line {
        padding: 6px 10px;
        height: 45px;
    }
    
    .terminal-input-line .prompt {
        font-size: 11px;
        margin-right: 6px;
    }
    
    .terminal-input-line input {
        font-size: 11px;
    }
    
    .command-output {
        padding: 6px 0;
        margin: 6px 0;
    }
    
    .help-content {
        padding: 12px;
    }
    
    .help-header {
        padding: 8px 12px;
        font-size: 12px;
    }
} 