/* Blog-specific styles */

.home-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.home-link:hover {
    color: var(--green);
}

/* Blog post listing */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.blog-post-preview {
    padding-bottom: 50px;
    border-bottom: 1px solid var(--lightest-navy);
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.post-link {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--green);
    font-family: var(--font-mono);
}

.reading-time {
    color: var(--slate);
}

.post-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--lightest-slate);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: var(--transition);
}

.post-link:hover .post-title {
    color: var(--green);
}

.post-excerpt {
    color: var(--slate);
    font-size: 16px;
    line-height: 1.6;
}

/* Individual blog post styles */
.blog-post-header {
    margin-bottom: 50px;
}

.blog-post-header .post-meta {
    margin-bottom: 20px;
}

.blog-post-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--lightest-slate);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-content {
    color: var(--slate);
    font-size: 17px;
    line-height: 1.8;
}

.post-content h2 {
    color: var(--lightest-slate);
    font-size: 28px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h3 {
    color: var(--light-slate);
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
}

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

.post-content strong {
    color: var(--light-slate);
    font-weight: 600;
}

.post-content em {
    font-style: italic;
    color: var(--light-slate);
}

.post-content a {
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.post-content ul li::marker {
    color: var(--green);
}

.post-content ol li::marker {
    color: var(--green);
}

/* Code blocks */
.post-content code {
    font-family: var(--font-mono);
    font-size: 14px;
    background-color: var(--lightest-navy);
    padding: 3px 6px;
    border-radius: 3px;
    color: var(--lightest-slate);
}

.post-content pre {
    background-color: var(--light-navy);
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 20px;
    border-left: 3px solid var(--green);
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Blockquotes */
.post-content blockquote {
    border-left: 3px solid var(--green);
    padding-left: 20px;
    margin: 30px 0;
    color: var(--light-slate);
    font-style: italic;
}

/* Post navigation */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--lightest-navy);
    display: flex;
    gap: 20px;
}

.nav-button {
    display: inline-block;
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 10px 20px;
    border: 1px solid var(--green);
    border-radius: 4px;
}

.nav-button:hover {
    background-color: var(--green-tint);
    transform: translateY(-2px);
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
}

.post-content table th {
    background-color: var(--light-navy);
    color: var(--lightest-slate);
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--green);
}

.post-content table td {
    padding: 12px;
    border-bottom: 1px solid var(--lightest-navy);
}

.post-content table tr:hover {
    background-color: var(--green-tint);
}

/* Responsive */
@media (max-width: 768px) {
    .post-title {
        font-size: 22px;
    }
    
    .blog-post-header h1 {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
}
