/* =========================================
   BLOG INDEX STYLES
   ========================================= */

/* Blog Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding-bottom: 60px;
}

/* Terminal Card Base */
.project-card {
    display: block;
    text-decoration: none;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Keep the pointer cursor for the small clickable index cards */
.posts-grid .project-card {
    cursor: pointer;
}

/* Change the cursor back to default for the large post view container */
.large-terminal {
    cursor: default;
}

/* 1. Keep the jump effect ONLY for the clickable grid cards on the blog index */
.posts-grid .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 2. Stop the large terminal on the post page from moving/jumping */
.large-terminal:hover {
    transform: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Terminal Body */
.project-card .terminal-body {
    padding: 20px;
}

/* Styled like code comments */
.post-meta {
    font-size: 0.85rem;
    color: #6a9955;
    margin-bottom: 12px;
    font-style: italic;
}

.project-title {
    color: #569cd6;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.project-desc {
    color: #d4d4d4;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Styling elements rendered inside the large post terminal window */
.large-terminal .terminal-body {
    padding: 30px 40px;
}

.large-terminal .terminal-body h1,
.large-terminal .terminal-body h2,
.large-terminal .terminal-body h3 {
    color: #569cd6;
    margin-top: 20px;
    margin-bottom: 10px;
}

.large-terminal .terminal-body p {
    color: #d4d4d4;
    margin-bottom: 15px;
    line-height: 1.7;
}

.large-terminal .terminal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #d4d4d4;
}

/* =========================================
   BLOG SIDEBAR + TAG FILTER
   ========================================= */

.blog-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 24px;
}

.blog-sidebar {
    width: 200px;
    flex-shrink: 0;
    margin-top: 30px;
}

.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-sidebar .terminal-header {
    cursor: default;
}

.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-list li {
    margin-bottom: 8px;
}

.tag-list a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.tag-list a:hover {
    color: #00adb5;
}

.tag-list a.active {
    color: #00adb5;
}

.tag-list .all-posts {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

/* =========================================
   TAG PILLS
   ========================================= */

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.post-tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #333;
    background: #252526;
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.post-tag:hover {
    color: #00adb5;
    border-color: #00adb5;
}

.project-card .post-tag {
    text-decoration: none;
}

.post-tags .post-tag {
    text-decoration: none;
}

@media (max-width: 768px) {
    .blog-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }
}