/* Blog - Page-specific styles */

/* Blog Index Styles */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.post-preview {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 40px;
}

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

.post-preview-image {
    display: block;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.post-preview-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-preview-image:hover img {
    transform: scale(1.02);
}

.post-preview h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    line-height: 1.3;
}

.post-preview h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-preview h2 a:hover {
    color: #3498db;
}

.post-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.meta-separator {
    margin: 0 8px;
}

.post-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #2980b9;
}

/* Single Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 40px;
}

.post-header h1 {
    margin-bottom: 15px;
    font-size: 38px;
    line-height: 1.2;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

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

.post-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 28px;
    color: #2c3e50;
}

.post-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 22px;
    color: #2c3e50;
}

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

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

.post-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.post-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.post-content pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

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

.post-content a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Post Footer */
.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.post-tags {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    background: #ecf0f1;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.post-navigation a {
    color: #3498db;
    text-decoration: none;
    flex: 1;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.post-navigation a:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.back-to-index {
    text-align: center;
}

.back-to-index a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-to-index a:hover {
    color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .post-header h1 {
        font-size: 28px;
    }

    .post-preview h2 {
        font-size: 22px;
    }

    .post-content {
        font-size: 17px;
    }

    .post-content h2 {
        font-size: 24px;
    }

    .post-content h3 {
        font-size: 20px;
    }

    .post-navigation {
        flex-direction: column;
    }
}
