/* ============================================
   💻 TERMINAL COMPONENT - Mobile Optimized
   ============================================ */

.terminal-window {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 100%;
}

.terminal-header {
    background: #333;
    color: #ccc;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    min-height: 40px;
}

.terminal-controls {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.control-dot.close { background: #ff5f57; }
.control-dot.minimize { background: #ffbd2e; }
.control-dot.maximize { background: #28ca42; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.65rem;
}

.terminal-content {
    padding: 0.8rem;
    font-family: 'Courier New', monospace;
    background: #000;
    color: #00ff88;
    font-size: 0.7rem;
    line-height: 1.3;
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-line {
    margin: 0.4rem 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.prompt {
    color: #00aaff;
    font-weight: bold;
}

.command {
    color: #ffff00;
    word-break: break-word;
}

.output {
    margin: 0.4rem 0 0.8rem 0;
}

.status-line {
    margin: 0.2rem 0;
    padding-left: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.65rem;
    line-height: 1.2;
}

.status-line.warning { color: #ff9500; }
.status-line.error { color: #ff4757; }
.status-line.info { color: #74b9ff; }
.status-line.online { color: #00ff88; }
.status-line.breakthrough { color: #ffff00; }

/* Tablet and up */
@media (min-width: 768px) {
    .terminal-window {
        margin-bottom: 2rem;
    }

    .terminal-header {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        gap: 1rem;
    }

    .control-dot {
        width: 12px;
        height: 12px;
    }

    .terminal-controls {
        gap: 0.5rem;
    }

    .terminal-title {
        font-size: 0.8rem;
    }

    .terminal-content {
        padding: 1.2rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .terminal-line {
        margin: 0.5rem 0;
    }

    .status-line {
        font-size: 0.75rem;
        padding-left: 1rem;
        margin: 0.3rem 0;
    }
}

@media (min-width: 1024px) {
    .terminal-content {
        font-size: 0.85rem;
        padding: 1.4rem;
    }

    .terminal-header {
        font-size: 0.85rem;
    }

    .terminal-title {
        font-size: 0.85rem;
    }

    .status-line {
        font-size: 0.8rem;
    }
}
