/* ==========================================================================
   ASCII Art & Terminal Page Styles
   ========================================================================== */
html,
body.ascii-page {
    background-color: #0d0617;
    color: #f1f5f9;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Anonymous Pro', 'SF Mono', Consolas, monospace;
}

body.ascii-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.terminal-window {
    width: 100%;
    max-width: 860px;
    background: #110820;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(110, 14, 156, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    -webkit-user-select: none;
}

.terminal-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

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

.dot-close {
    background: #ff5f56;
}

.dot-minimize {
    background: #ffbd2e;
}

.dot-maximize {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.82rem;
    color: #cbd5e1;
    letter-spacing: 0.02em;
    text-align: center;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 0.75rem;
}

.terminal-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.term-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    padding: 0.22rem 0.55rem;
    font-size: 0.74rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.term-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.terminal-body {
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
    background: #090310;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.terminal-pre {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.38;
    color: #f1f5f9;
    white-space: pre;
    word-break: normal;
}

.terminal-pre a,
.terminal-link {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.terminal-pre a:hover,
.terminal-link:hover {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

@media (max-width: 640px) {
    body.ascii-page {
        padding: 0.5rem;
    }

    .terminal-window {
        border-radius: 6px;
    }

    .terminal-body {
        padding: 0.85rem 0.65rem 1.25rem 0.65rem;
    }

    .terminal-pre {
        font-size: 0.76rem;
    }

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