/* prototype.rs - Rust Terminal Interface */

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

:root {
    --terminal-dark: #1E1E2E;
    --terminal-surface: #282A36;
    --text-light: #F8F8F2;
    --rust-orange: #F74C00;
    --safe-green: #50FA7B;
    --type-blue: #6272A4;
    --warning-pink: #FF79C6;
    --traffic-red: #FF5F57;
    --traffic-yellow: #FFBD2E;
    --traffic-green: #28C841;
    --comment-gray: #6272A4;
    --cyan-accent: #8BE9FD;
}

body {
    background-color: #0D0D14;
    color: var(--text-light);
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 3rem 1rem;
}

/* Terminal Window */
#terminal-window {
    max-width: 720px;
    width: 100%;
    background-color: var(--terminal-dark);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    opacity: 0;
    animation: terminalFadeIn 0.3s ease-out 0.2s forwards;
}

@keyframes terminalFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Terminal Chrome */
.terminal-chrome {
    background-color: var(--terminal-surface);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

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

.dot-close { background-color: var(--traffic-red); }
.dot-minimize { background-color: var(--traffic-yellow); }
.dot-maximize { background-color: var(--traffic-green); }

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--type-blue);
    flex: 1;
    text-align: center;
}

/* Terminal Body */
.terminal-body {
    padding: 32px;
}

/* Terminal Blocks */
.terminal-block {
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Command Lines */
.command-line {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.prompt {
    color: var(--safe-green);
    font-weight: 700;
}

.command-text {
    color: var(--rust-orange);
    font-weight: 700;
    font-size: 0.85rem;
}

.command-text::after {
    content: '█';
    animation: blink 1s step-end infinite;
    color: var(--rust-orange);
    opacity: 0;
}

.command-text.typed::after {
    display: none;
}

/* Output Lines */
.output-line {
    padding: 2px 0;
}

.compile-msg {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Content Styles */
.section-heading {
    font-family: 'Fira Code', monospace;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.body-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Syntax Highlighting */
.keyword {
    color: var(--rust-orange);
    font-weight: 500;
}

.type-name {
    color: var(--warning-pink);
}

.string-val {
    color: var(--safe-green);
}

.comment {
    color: var(--comment-gray);
    font-style: italic;
    font-weight: 300;
}

.field-name {
    color: var(--cyan-accent);
}

.fn-name {
    color: var(--warning-pink);
}

.safe-green {
    color: var(--safe-green);
}

.data-val {
    color: var(--text-light);
    font-weight: 500;
}

/* Progress Bars */
.progress-bar-container {
    margin-bottom: 8px;
}

.progress-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    white-space: pre;
}

/* Cursor */
.cursor-line {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 32px;
}

.cursor-blink {
    color: var(--safe-green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .terminal-body {
        padding: 16px;
    }

    .terminal-block {
        margin-bottom: 32px;
    }

    .body-text {
        font-size: 0.8rem;
    }
}
