/* Blog-specific styles extending your current design */

/* Blog Hero Section */
.blog-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

/* Blog Filters */
.blog-filters {
    padding: 1rem 0;
}

.blog-filters .filter-btn {
    border-radius: 25px;
    padding: 8px 20px;
    transition: var(--transition);
}

.blog-filters .filter-btn.active {
    background-color: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

/* Blog Posts Section */
.blog-posts-section {
    min-height: 60vh;
}

/* Blog Card Styles */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    border: none;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--dark-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.blog-read-more {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--primary-color);
}

/* Blog Post Template Styles */
.blog-post-header {
    padding-top: 120px;
    padding-bottom: 2rem;
    background: var(--light-gray);
}

.post-meta {
    font-size: 0.9rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.2rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.featured-image img {
    box-shadow: var(--shadow);
}

.blog-post-content {
    padding: 3rem 0;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-color);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.code-block {
    background: var(--dark-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark-gray);
}

/* Post Tags */
.post-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

/* Share Buttons */
.share-buttons .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    padding-left: 2rem;
}

.author-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.recent-posts {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.recent-post-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.recent-post-title:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--dark-color) !important;
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--dark-color);
    border: 1px solid var(--medium-gray);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

.page-item.active .page-link {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .blog-sidebar {
        padding-left: 0;
        margin-top: 3rem;
        position: static;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-post-header {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .blog-card-image {
        height: 150px;
    }
}

/* Loading Animation for Blog */
.blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--dark-gray);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--medium-gray);
}
