/* Cache Buster: 20250530125414 */
:root {
    --terminal-bg: #1a1a1a;
    --terminal-text: #00ff00;
    --terminal-header: #2d2d2d;
    --terminal-border: #404040;
    --cursor-color: #00ff00;
    --prompt-color: #00aaff;
    --system-color: #ffaa00;
    --font-mono: 'Source Code Pro', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

/* Terminal Container */
.terminal-container {
    width: 90vw;
    max-width: 900px;
    height: 80vh;
    background: var(--terminal-bg);
    border: 2px solid var(--terminal-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Terminal Header */
.terminal-header {
    background: var(--terminal-header);
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid var(--terminal-border);
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-button.close {
    background: #ff5f56;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #27ca3f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    padding: 20px;
    background: var(--terminal-bg);
    overflow-y: auto;
    font-family: var(--font-mono);
}

#terminal-output {
    color: var(--terminal-text);
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Estilo para respostas de comandos */
#terminal-output > div:not(.system-info):not(.welcome-message):not(.warranty-info):not(.login-info):not(.prompt-line) {
    color: #ffff00;
    margin: 5px 0;
    padding-left: 10px;
}

/* System Info */
.system-info {
    color: var(--system-color);
    margin-bottom: 10px;
}

/* Cores para o ASCII art */
.ascii-art .red {
    color: #ff4444;
}

.ascii-art .yellow {
    color: #ffff44;
}

.ascii-art .orange {
    color: #ff8800;
}

/* ASCII art styling */
.ascii-art {
    color: var(--prompt-color);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    margin: 15px 0;
    white-space: pre;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
    letter-spacing: normal;
    word-spacing: normal;
    font-weight: normal;
}

/* Welcome Message */
.welcome-message div {
    margin: 2px 0;
}

.welcome-message div:first-child {
    color: var(--prompt-color);
    font-weight: 600;
}

/* Warranty Info */
.warranty-info div {
    margin: 2px 0;
}

/* Login Info */
.login-info {
    margin-top: 10px;
}

/* Prompt */
.prompt-line {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.prompt {
    color: var(--prompt-color);
    font-weight: 600;
}

/* Status line styling */
/* Removido :contains por não ser suportado */

/* Comandos disponíveis styling */
/* Removido :contains por não ser suportado */

.cursor {
    color: var(--cursor-color);
    font-weight: bold;
    margin-left: 2px;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scrollbar personalizada */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--terminal-border);
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsividade aprimorada */
/* Tablets */
@media (max-width: 1024px) {
    .terminal-container {
        width: 95vw;
        max-width: 800px;
        height: 85vh;
    }
    
    .terminal-content {
        padding: 18px;
        font-size: 13px;
    }
    
    #terminal-output {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .ascii-art {
        font-size: 10px;
        line-height: 1.0;
    }
}

/* Smartphones em landscape */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .terminal-container {
        width: 100vw;
        height: 90vh;
        border-radius: 6px;
        border-width: 1px;
    }
    
    .terminal-header {
        height: 35px;
        padding: 0 12px;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .terminal-buttons {
        gap: 6px;
    }
    
    .terminal-button {
        width: 10px;
        height: 10px;
    }
    
    .terminal-content {
        padding: 15px;
        font-size: 12px;
    }
    
    #terminal-output {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .ascii-art {
        font-size: 8px;
        line-height: 0.9;
        margin: 10px 0;
    }
    
    .prompt {
        font-size: 12px;
    }
    
    .cursor {
        font-size: 12px;
    }
}

/* Smartphones em portrait */
@media (max-width: 480px) {
    body {
        padding: 5px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .terminal-container {
        width: 100vw;
        height: 95vh;
        border-radius: 4px;
        max-height: 100vh;
        margin: 0;
    }
    
    .terminal-header {
        height: 32px;
        padding: 0 10px;
    }
    
    .terminal-title {
        font-size: 10px;
        display: none; /* Ocultar título em telas muito pequenas */
    }
    
    .terminal-buttons {
        gap: 5px;
    }
    
    .terminal-button {
        width: 8px;
        height: 8px;
    }
    
    .terminal-content {
        padding: 10px;
        font-size: 11px;
    }
    
    #terminal-output {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .ascii-art {
        font-size: 6px;
        line-height: 0.8;
        margin: 5px 0;
        transform: scale(0.9);
    }
    
    .prompt {
        font-size: 11px;
    }
    
    .cursor {
        font-size: 11px;
    }
    
    /* Melhorar rolagem em dispositivos móveis */
    .terminal-content {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    
    /* Ajustar scrollbar para mobile */
    .terminal-content::-webkit-scrollbar {
        width: 4px;
    }
}

/* Telas muito pequenas (smartwatches, etc) */
@media (max-width: 360px) {
    .terminal-container {
        height: 98vh;
    }
    
    .terminal-content {
        padding: 8px;
        font-size: 10px;
    }
    
    #terminal-output {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .ascii-art {
        font-size: 5px;
        line-height: 0.7;
        transform: scale(0.8);
    }
    
    .prompt, .cursor {
        font-size: 10px;
    }
}

/* Orientação landscape para smartphones */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: center;
        padding: 5px;
    }
    
    .terminal-container {
        height: 95vh;
        width: 98vw;
    }
    
    .terminal-header {
        height: 28px;
    }
    
    .terminal-content {
        padding: 8px;
        font-size: 10px;
    }
    
    .ascii-art {
        font-size: 5px;
        line-height: 0.6;
        margin: 3px 0;
        transform: scale(0.7);
    }
}

/* Melhorias para touch devices */
@media (pointer: coarse) {
    .terminal-content {
        /* Melhor experiência de scroll no touch */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Aumentar área de toque dos botões */
    .terminal-button {
        padding: 2px;
        margin: 1px;
    }
}
