/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Terminal Header */
.terminal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 1rem 2rem;
    z-index: 100;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.terminal-prompt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.95rem;
}

.prompt-user {
    color: #4ade80;
}

.prompt-separator {
    color: #666;
}

.prompt-path {
    color: #60a5fa;
}

.prompt-symbol {
    color: #fafafa;
    margin-right: 0.75rem;
}

.command-input {
    flex: 1;
    min-width: 200px;
    background: transparent;
    border: none;
    outline: none;
    color: #fafafa;
    font-family: inherit;
    font-size: inherit;
    caret-color: #4ade80;
}

.command-input::placeholder {
    color: #555;
}

.terminal-hints {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hint-label {
    color: #555;
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

.hint-cmd {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 0.2rem 0.6rem;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 3px;
}

.hint-cmd:hover {
    border-color: #4ade80;
    color: #4ade80;
}

/* Terminal Output */
.terminal-output {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 4px;
    display: none;
}

.terminal-output:not(:empty) {
    display: block;
}

.terminal-output span {
    display: block;
}

.output-cmd {
    color: #666;
}

.output-response {
    color: #666;
}

.output-success {
    color: #16a34a;
}

.output-error {
    color: #dc2626;
}

.output-hint {
    color: #999;
    font-size: 0.8rem;
}

/* Main container */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
    flex: 1;
}

/* Content area */
.content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content.loaded {
    opacity: 1;
    transform: translateY(0);
}

.loading {
    color: #999;
    font-style: italic;
}

/* Markdown-rendered typography */
.content h1 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    margin-top: 0;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.content h3 {
    font-size: 1.25rem;
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.content p {
    margin-bottom: 1rem;
    color: #333;
}

.content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: #999;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.content a:hover {
    text-decoration-color: #1a1a1a;
}

/* Lists */
.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: #333;
}

.content li a {
    font-weight: normal;
}

/* Code blocks */
.content code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    background: #f0f0f0;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.content pre {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.content pre code {
    background: none;
    padding: 0;
}

/* Blockquotes */
.content blockquote {
    border-left: 3px solid #e0e0e0;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #555;
    font-style: italic;
}

/* Horizontal rules */
.content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.footer p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .terminal-header {
        padding: 1rem;
    }

    .terminal-prompt {
        font-size: 0.85rem;
    }

    .command-input {
        min-width: 150px;
    }

    .terminal-hints {
        gap: 0.4rem;
    }

    .hint-cmd {
        padding: 0.15rem 0.4rem;
        font-size: 0.75rem;
    }

    .container {
        padding: 8rem 1.5rem 3rem;
    }

    .content h1 {
        font-size: 1.75rem;
    }

    .content h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .terminal-prompt {
        font-size: 0.8rem;
    }

    .hint-label {
        display: none;
    }

    .container {
        padding: 9rem 1rem 2rem;
    }
}

/* Selection color */
::selection {
    background: #1a1a1a;
    color: #fafafa;
}
