/* TRS-80 Computer Styling */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

.trs-computer {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.trs-monitor {
    background: linear-gradient(145deg, #f5f5dc 0%, #e8e8d8 50%, #dcdccc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.trs-monitor::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: power-blink 2s infinite;
}

@keyframes power-blink {
    0%, 80% { opacity: 1; }
    90%, 100% { opacity: 0.3; }
}

.trs-brand {
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.trs-screen {
    background: #000;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
    position: relative;
    border: 3px solid #333;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 65, 0.1),
        inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.trs-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    border-radius: 5px;
}

.trs-terminal {
    height: 350px;
    overflow-y: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

.trs-terminal::-webkit-scrollbar {
    width: 8px;
}

.trs-terminal::-webkit-scrollbar-track {
    background: #111;
}

.trs-terminal::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 4px;
}

.trs-keyboard {
    background: linear-gradient(145deg, #f5f5dc 0%, #e8e8d8 50%, #dcdccc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.trs-key {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.1s ease;
    text-align: center;
    user-select: none;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trs-key:hover {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 50%, #d8d8d8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.trs-key:active {
    background: linear-gradient(145deg, #e0e0e0 0%, #d0d0d0 50%, #c0c0c0 100%);
    transform: translateY(1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trs-computer {
        padding: 10px;
    }
    
    .trs-monitor {
        padding: 15px;
    }
    
    .trs-screen {
        min-height: 300px;
        padding: 15px;
    }
    
    .trs-terminal {
        height: 250px;
        font-size: 12px;
    }
    
    .trs-key {
        padding: 6px 2px;
        font-size: 10px;
        min-height: 30px;
    }
}

/* CRT Glow Effect */
.trs-screen {
    animation: crt-flicker 3s infinite linear;
}

@keyframes crt-flicker {
    0%, 98%, 100% { opacity: 1; }
    99% { opacity: 0.98; }
}

/* Boot Animation */
@keyframes boot-text {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}