/* Catppuccin Mocha Theme - Old School Aesthetic */
:root {
    --ctp-base: #1e1e2e;
    --ctp-mantle: #181825;
    --ctp-crust: #11111b;
    --ctp-text: #cdd6f4;
    --ctp-subtext: #a6adc8;
    --ctp-surface: #313244;
    --ctp-overlay: #45475a;
    --ctp-lavender: #b4befe;
    --ctp-blue: #89b4fa;
    --ctp-sapphire: #74c7ec;
    --ctp-mauve: #cba6f7;
    --ctp-pink: #f5c2e7;
    --ctp-peach: #fab387;
    --ctp-yellow: #f9e2af;
    --ctp-green: #a6e3a1;
}

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

body {
    background-color: var(--ctp-base);
    color: var(--ctp-text);
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation */
.nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--ctp-surface);
    margin-bottom: 40px;
    font-size: 14px;
}

.nav-link {
    color: var(--ctp-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--ctp-sapphire);
    text-decoration: underline;
}

.nav-separator {
    margin: 0 10px;
    color: var(--ctp-overlay);
}

/* Main Content */
.main-content {
    min-height: 70vh;
}

/* Listing Page */
.listing-header {
    margin-bottom: 30px;
}

.shell-prompt {
    font-size: 1.1em;
    padding: 15px 20px;
    background-color: var(--ctp-mantle);
    border: 1px solid var(--ctp-surface);
    border-radius: 4px;
    margin-bottom: 15px;
}

.prompt-user {
    color: var(--ctp-green);
}

.prompt-path {
    color: var(--ctp-blue);
}

.prompt-command {
    color: var(--ctp-text);
}

.pwd-output {
    font-size: 1em;
    color: var(--ctp-text);
    padding: 10px 20px;
    background-color: var(--ctp-crust);
    border-left: 3px solid var(--ctp-blue);
    margin-bottom: 25px;
}

.home-title {
    color: var(--ctp-lavender);
    font-size: 2em;
    margin: 25px 0 10px 0;
    font-weight: normal;
}

.home-subtitle {
    color: var(--ctp-subtext);
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1em;
}

.listing-header h1 {
    color: var(--ctp-lavender);
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: normal;
}

.subtitle {
    color: var(--ctp-subtext);
    font-style: italic;
}

.posts-list {
    list-style: none;
}

.post-item {
    margin-bottom: 8px;
    padding: 12px;
    border-left: 2px solid var(--ctp-surface);
    transition: all 0.2s;
}

.post-item:hover {
    border-left-color: var(--ctp-mauve);
    background-color: var(--ctp-mantle);
}

.post-link {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.post-title {
    color: var(--ctp-blue);
    font-size: 1.1em;
}

.post-date {
    color: var(--ctp-subtext);
    font-size: 0.9em;
    white-space: nowrap;
}

/* Article Detail */
.article-detail {
    margin: 0;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ctp-surface);
}

.current-path {
    font-size: 0.9em;
    color: var(--ctp-overlay);
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: var(--ctp-mantle);
    border-left: 3px solid var(--ctp-blue);
    display: inline-block;
    border-radius: 2px;
}

.path-prompt {
    color: var(--ctp-blue);
    font-weight: bold;
}

.article-header h1 {
    color: var(--ctp-lavender);
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: normal;
}

.article-meta {
    color: var(--ctp-subtext);
    font-size: 0.9em;
}

.article-meta .author {
    margin-right: 15px;
}

.article-meta .author a {
    color: var(--ctp-sapphire);
    text-decoration: none;
}

.article-meta .author a:hover {
    color: var(--ctp-blue);
    text-decoration: underline;
}

.article-meta .date::before {
    content: "• ";
    margin-right: 5px;
}

/* Article Content */
.article-content {
    margin-bottom: 40px;
}

.article-content h2 {
    color: var(--ctp-mauve);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: normal;
}

.article-content h3 {
    color: var(--ctp-pink);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: normal;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content a {
    color: var(--ctp-sapphire);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--ctp-blue);
}

.article-content code {
    background-color: var(--ctp-mantle);
    color: var(--ctp-peach);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background-color: var(--ctp-mantle);
    border: 1px solid var(--ctp-surface);
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--ctp-text);
}

.article-content blockquote {
    border-left: 3px solid var(--ctp-mauve);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--ctp-subtext);
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Article Footer */
.article-footer {
    padding-top: 20px;
    border-top: 1px solid var(--ctp-surface);
}

.back-link {
    color: var(--ctp-text);
    text-decoration: none;
    font-size: 1em;
    padding: 10px 15px;
    background-color: var(--ctp-mantle);
    border: 1px solid var(--ctp-surface);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
}

.back-link:hover {
    background-color: var(--ctp-surface);
    border-color: var(--ctp-overlay);
}

.prompt-symbol {
    color: var(--ctp-green);
    margin-right: 5px;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--ctp-surface);
    text-align: center;
    color: var(--ctp-subtext);
    font-size: 0.9em;
}

.footer-social {
    margin-bottom: 15px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}

.footer-social .prompt-symbol {
    color: var(--ctp-green);
    margin-right: 8px;
}

.footer-social .footer-separator {
    color: var(--ctp-overlay0);
    margin: 0 10px;
}

.footer-social .footer-link {
    color: var(--ctp-sapphire);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social .footer-link:hover {
    color: var(--ctp-blue);
    text-decoration: underline;
}

/* Simple responsive adjustments */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        padding: 10px;
    }

    .shell-prompt {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .pwd-output {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .home-title {
        font-size: 1.6em;
    }

    .home-subtitle {
        font-size: 0.9em;
    }

    .current-path {
        font-size: 0.85em;
        padding: 6px 10px;
    }

    .listing-header h1,
    .article-header h1 {
        font-size: 2em;
    }

    .article-link {
        flex-direction: column;
        gap: 5px;
    }

    .back-link {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}
