* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    height: 100vh;
}

/* Boot Sequence Styles */
.boot-sequence {
    background-color: #000000;
    color: #ff9900;
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.boot-text {
    white-space: pre-wrap;
    text-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
}

/* Terminal Container */
.terminal-container {
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    margin: 2.5vh auto;
    background-color: #1a1a1a;
    border: 2px solid #ff9900;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 153, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    padding: 10px 15px;
    border-bottom: 1px solid #ff9900;
    display: flex;
    align-items: center;
    border-radius: 6px 6px 0 0;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background-color: #ff5f56;
}

.btn-minimize {
    background-color: #ffbd2e;
}

.btn-maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: #ff9900;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
}

/* Terminal Body — split pane */
.terminal {
    flex: 1;
    display: flex;
    overflow: hidden;
    color: #ff9900;
    font-size: 16px;
    line-height: 1.6;
}

/* Left nav panel — full width until split */
.terminal-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    background-color: #0a0a0a;
    transition: flex 0.25s ease;
}

/* When split is active, nav shrinks to fixed width */
.terminal.split .terminal-nav {
    flex: 0 0 400px;
    min-width: 280px;
    border-right: 1px solid #2a2a2a;
    overflow-x: hidden;
}

/* Scale down ASCII banner when split is active */
.terminal.split .ascii-art {
    font-size: 7.5px;
    line-height: 1.15;
}

/* Right detail panel — hidden until split */
.terminal-detail {
    display: none;
    flex-direction: column;
    padding: 20px 24px;
    overflow-y: auto;
    background-color: #080808;
}

.terminal-detail.open {
    display: flex;
    flex: 1;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e1e1e;
    flex-shrink: 0;
}

#detail-title {
    color: #ffbb33;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.detail-close {
    background: transparent;
    border: 1px solid #333;
    color: #555;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    padding: 3px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: border-color 0.15s, color 0.15s;
}

.detail-close:hover {
    border-color: #ff5f56;
    color: #ff5f56;
}

.detail-output {
    flex: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-line {
    margin: 5px 0;
    text-shadow: 0 0 5px rgba(255, 153, 0, 0.3);
}

.error {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.success {
    color: #ffbb33;
    text-shadow: 0 0 5px rgba(255, 187, 51, 0.5);
}

.info {
    color: #ff9900;
}

.ascii-art {
    color: #ffbb33;
    text-shadow: 0 0 8px rgba(255, 187, 51, 0.6);
    font-size: 12px;
    line-height: 1.2;
}

/* Input Line */
.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #ffbb33;
    margin-right: 8px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 187, 51, 0.5);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ff9900;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    caret-color: #ff9900;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    0%, 100% { caret-color: #ff9900; }
    50%       { caret-color: transparent; }
}

/* Scrollbar Styling */
.terminal-nav::-webkit-scrollbar,
.terminal-detail::-webkit-scrollbar,
.boot-sequence::-webkit-scrollbar {
    width: 6px;
}

.terminal-nav::-webkit-scrollbar-track,
.terminal-detail::-webkit-scrollbar-track,
.boot-sequence::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-nav::-webkit-scrollbar-thumb,
.terminal-detail::-webkit-scrollbar-thumb,
.boot-sequence::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

.terminal-nav::-webkit-scrollbar-thumb:hover,
.terminal-detail::-webkit-scrollbar-thumb:hover,
.boot-sequence::-webkit-scrollbar-thumb:hover {
    background: #ff9900;
}

.output-line.separator {
    color: #222;
    margin: 10px 0;
    text-shadow: none;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Link Styling */
a {
    color: #ffbb33;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 187, 51, 0.5);
}

a:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* Glitch Effect for Special Commands */
.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Matrix Rain Effect */
.matrix {
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    animation: matrix-fall 3s linear;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Help Grid */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 10px 0;
}

.help-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.help-card-title {
    color: #ffbb33;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2a2a2a;
    letter-spacing: 0.5px;
}

.cmd-btn {
    background: transparent;
    border: 1px solid #333;
    color: #cc8800;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    width: 100%;
}

.cmd-btn:hover {
    background: #ff9900;
    color: #0a0a0a;
    border-color: #ff9900;
}

.help-tip {
    color: #444;
    font-size: 12px;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Logo Container for Platform Images */
.logo-container {
    text-align: center;
    margin: 20px 0;
    padding: 10px 0;
}

.platform-logo {
    max-width: 1000px;
    width: 90%;
    height: auto;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 153, 0, 0.3));
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal {
        font-size: 14px;
        flex-direction: column;
    }

    .terminal-container {
        width: 98%;
        height: 95vh;
        margin: 2.5vh auto;
    }

    .terminal.split {
        flex-direction: column;
    }

    .terminal.split .terminal-nav {
        flex: 0 0 auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }

    .terminal-detail.open {
        flex: 1;
        min-height: 0;
    }

    .ascii-art {
        font-size: 10px;
    }

    .platform-logo {
        max-width: 600px;
        width: 90%;
    }
}
