/* Blog Styles */
.blog-listing {
    padding: 100px 0;
}

.post-card {
    background: hsl(var(--background));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.post-meta i {
    color: hsl(var(--primary));
    margin-right: 0.5rem;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: hsl(var(--foreground));
    text-decoration: none;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary));
    text-decoration: none;
    margin-top: 1rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}
.sidebar-widget:first-child {
    margin-top: 0;
}
.sidebar-widget {
    background: hsl(var(--background));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
    padding: 2rem;
    margin-bottom: 2rem;
}

.widget-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(96deg 54.67% 31.05%);
}

.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    margin-bottom: 0.75rem;
}

.categories-widget a {
    color: hsl(var(--foreground));
    text-decoration: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
    border-radius: var(--radius);
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .post-image img {
        height: 200px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
    }
}

/* Single Post Styles */
/* .single-post {
    padding: 100px 0;
} */

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.post-header .post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
}

.featured-image {
    margin: -2rem -2rem 2rem;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent,
        hsl(var(--background))
    );
}

.post-content {
    background: hsl(var(--background));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
    padding: 2rem;
}

/* Post Body Typography */
.post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground) / 0.9);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 1.875rem;
    margin: 3rem 0 1.5rem;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.25rem;
}

.post-body ul, 
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.25rem;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid hsl(var(--primary));
    background: hsl(var(--muted));
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.post-body code, .code-snippet {
    background: hsl(var(--muted));
    padding: 1rem 1rem;
    border-radius: var(--radius-md);
    font-size: .975rem;
    line-height: 30px;
    width: 100%;
    display: block;
    color: #4a8f1c !important;
}
.nopad {
    padding: 0 !important;
}

.code-text {
    color: #4a8f1c !important;
}

.dir-snippet {
    background: hsl(0deg 2.97% 94.32%);
    padding: 1rem 1rem;
    border-radius: var(--radius-md);
    font-size: .975rem;
    line-height: 20px;
    list-style: none;
    width: 100%;
    display: block;
    color: #4a8f1c !important;
}

.dir-snippet li:first {
    margin-top: .75rem;
}
.dir-snippet li {
    margin-bottom: 0rem;
}

.post-body pre {
    background: hsl(var(--muted));
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

/* Post Tags */
.post-tags {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.post-tags i {
    color: hsl(var(--primary));
    margin-right: 0.5rem;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    gap: 2rem;
}

.prev-post,
.next-post {
    flex: 1;
    padding: 1.5rem;
    background: hsl(var(--muted));
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.prev-post:hover,
.next-post:hover {
    transform: translateY(-5px);
    background: hsl(var(--primary) / 0.1);
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}

.post-navigation span {
    display: block;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.post-navigation h4 {
    color: hsl(var(--foreground));
    font-size: 1.125rem;
    margin: 0;
}

/* Comments Section */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--border));
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: hsl(var(--muted));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.comment-metadata {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Hide comment-related elements */
.comments-area,
.comment-respond,
.comment-form,
.comments-link {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .featured-image img {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .single-post {
        padding: 60px 0;
    }

    .featured-image {
        margin: -1.5rem -1.5rem 1.5rem;
    }

    .featured-image img {
        height: 300px;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-post,
    .next-post {
        text-align: center;
    }
}