/* Single Post Styles */
.post-single {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    font-size: 1rem;
    color: #3498db;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 400;
}

.post-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-image:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-right: 4px solid #3498db;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 4px;
}

.post-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    background: #2c3e50;
    color: #fff;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.post-content th {
    background: #f8f9fa;
    font-weight: 400;
}

/* Social Share */
.social-share {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.social-share h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-next {
    text-align: left;
}

.nav-prev a,
.nav-next a {
    display: block;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-prev a:hover,
.nav-next a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-prev a i,
.nav-next a i {
    font-size: 1.2rem;
    color: #3498db;
}

.nav-prev a span,
.nav-next a span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-prev a strong,
.nav-next a strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.3;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.related-posts h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.related-posts h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-card .post-image {
    height: 200px;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-card .post-content {
    padding: 1.5rem;
}

.post-card .post-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card .post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: #3498db;
}

.post-card .post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card .post-meta {
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.comment-form h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background: #3498db;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 400;
    color: #2c3e50;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-content {
    color: #444;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
}

.breadcrumb span {
    color: #666;
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-header {
        padding: 1.5rem;
    }
    
    .post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-prev,
    .nav-next {
        max-width: 100%;
    }
    
    .nav-next {
        text-align: right;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .related-posts,
    .comments-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-header {
        padding: 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .social-share {
        padding: 1rem;
    }
    
    .post-navigation {
        padding: 1rem;
    }
    
    .related-posts,
    .comments-section {
        padding: 1rem;
    }
}