/* =========================================
   BLOG POST PAGE STYLES
   ========================================= */

.blog-article {
    max-width: 800px;
    margin: 40px auto 60px auto;
}

.blog-article h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Ubuntu', sans-serif;
}

/* Reusing your existing post-meta look, just sized for a full page */
.blog-article .post-meta {
    font-size: 0.9rem;
    color: #6a9955;
    font-style: italic;
    margin-bottom: 30px;
}

/* The terminal window wrapper around the post content */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #252526;
    padding: 10px 15px;
}

.window-buttons {
    display: flex;
    gap: 8px;
}

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

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.window-title {
    color: #858585;
    font-size: 0.85rem;
}
.post-content {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 6px;
}


/* Headings inside the rendered markdown content */
.post-content h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Ubuntu', sans-serif;
}
.post-content h2 {
    color: #569cd6;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.post-content h3 {
    color: #569cd6;
    font-size: 1.2rem;
    margin: 20px 0 12px 0;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content strong {
    color: #ce9178;
    font-weight: bold;
}

.post-content a {
    color: #00adb5;
    text-decoration: underline;
}

.post-content a:hover {
    color: #007a80;
}

.post-content ul,
.post-content ol {
    margin: 0 0 18px 25px;
}

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

.post-content code {
    background-color: #252526;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.post-content .terminal-body {
    padding: 30px 35px;
    color: #d4d4d4;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content .post-meta {
    font-size: 0.9rem;
    color: #6a9955;
    font-style: italic;
    margin-bottom: 25px;
}

.post-content h2 { color: #569cd6; font-size: 1.4rem; margin: 25px 0 15px 0; }
.post-content h3 { color: #569cd6; font-size: 1.2rem; margin: 20px 0 12px 0; }
.post-content p { margin-bottom: 18px; }
.post-content strong { color: #ce9178; font-weight: bold; }
.post-content a { color: #00adb5; text-decoration: underline; }
.post-content a:hover { color: #007a80; }
.post-content ul, .post-content ol { margin: 0 0 18px 25px; }
.post-content li { margin-bottom: 8px; }
.post-content code {
    background-color: #252526;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .post-content .terminal-body { padding: 20px; }
    .post-content h1 { font-size: 1.6rem; }
}

/* --- Post navigation --- */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 700px;
    padding: 0 1rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    max-width: 200px;
}

.post-nav-link.next {
    margin-left: auto; /* pushes next to the right when prev is absent */
}

/* The file icon shape */
.nav-file-icon {
    width: 70px;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease;
}

.post-nav-link:hover .file-icon {
    transform: translateY(-4px);
}

/* The little folded tab at the top-right of the icon */
.nav-file-icon-tab {
    width: 60%;
    height: 10px;
    background-color: #393e46;
    border-radius: 4px 4px 0 0;
    align-self: flex-start;
}

/* The main body of the icon */
.nav-file-icon-body {
    width: 100%;
    height: 55px;
    background-color: #393e46;
    border-radius: 0 4px 4px 4px;
    display: flex;
    align-items: flex-end;
    padding: 6px;
    box-sizing: border-box;
}

.post-nav-link:hover .file-icon-body,
.post-nav-link:hover .file-icon-tab {
    background-color: #00adb5;
}

/* The filename text inside the icon */
.nav-file-icon-label {
    font-size: 0.55rem;
    color: #eeeeee;
    font-family: monospace;
    word-break: break-all;
    line-height: 1.2;
}

.post-nav-direction {
    font-size: 0.75rem;
    color: #888;
    font-family: monospace;
}

.post-nav-title {
    font-size: 0.8rem;
    color: #eeeeee;
    text-align: center;
    font-family: monospace;
}

main.container {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 1rem;
    align-items: start;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-nav-side {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

@media (max-width: 800px) {
    main.container {
        display: flex;
        flex-direction: column;
    }

    article#post-content {
        order: 1;
    }

    .post-nav-side.left {
        order: 2;
    }

    .post-nav-side.right {
        order: 3;
    }

    .post-nav-side {
        padding-top: 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .post-nav-link.next {
        margin-left: 0;
    }
}