/* Terminal Page Styles */

body.terminal-body {
    background-color: #000;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    color: #0f0;
}

body.terminal-body .terminal {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.terminal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    font-family: monospace;
    font-size: 16px;
    z-index: 9999;
    padding: 1rem;
    box-sizing: border-box;

    --terminal-color: #0f0;
    --terminal-btn-color: #0f0;
}

.terminal,
.terminal-output,
.terminal-input {
    color: var(--terminal-color);
}

.terminal-header {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.terminal-header button {
    background: #111;
    color: var(--terminal-btn-color);
    border: 1px solid var(--terminal-btn-color);
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.terminal-header button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.terminal-output {
    height: calc(100% - 70px);
    /* header + input */
    overflow-y: auto;
    white-space: pre-wrap;
}

.terminal-output pre {
    font-family: monospace;
    white-space: pre;
    margin: 0;
}

.terminal-input {
    width: 100%;
    background: #000;
    color: var(--terminal-color);
    border: none;
    padding: 5px;
    font-family: monospace;
    font-size: 16px;
    outline: none !important;
    box-shadow: none !important;
}

/* Matrix Mode */
body.matrix-mode .terminal {
    --terminal-color: #0f0 !important;
    --terminal-btn-color: #0f0 !important;
    text-shadow: 0 0 5px #0f0;
}

body.matrix-mode {
    filter: contrast(1.2) brightness(1.1);
}

.help-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    font-family: monospace;
    color: var(--terminal-color);
}

.help-row {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    white-space: nowrap;
}

.awards-table .help-row {
    gap: 15rem;
}

.help-command {
    width: 200px;
    flex-shrink: 0;
    text-align: left;
}

.help-desc {
    flex-grow: 1;
    color: var(--terminal-color);
    white-space: normal;
}

.help-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
    margin-bottom: 6px;
    font-weight: normal;
    color: var(--terminal-color);
}

.cli-link {
    color: var(--terminal-color);
    text-decoration: underline;
}

.cli-link:hover {
    text-decoration: none;
}

.help-table .help-header {
    border-bottom: none !important;
}

.contact-table .help-header {
    border-bottom: none !important;
}