/**
 * Blog Styles for FlexBiz Theme
 * 
 * @package FlexBiz_Theme
 * @since 1.0.0
 */

/* Blog Section Styles */
.blog.section {
    padding: 80px 0;
    background: var(--background-color, #ffffff);
}

/* Blog Header Styles */
.blog .section-header {
    margin-bottom: 60px;
}

.blog .section-header h2 {
    color: var(--heading-color, #171717);
    font-weight: 700;
    margin-bottom: 20px;
}

.blog .section-header p {
    font-size: 1.1rem;
    color: var(--default-color, #444444);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Badge Styles */
.blog-badge .badge,
.category-badge .badge,
.tag-badge .badge,
.archive-badge .badge {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
}

/* Blog Filters */
.blog-filters {
    background: rgba(0, 0, 0, 0.02);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-filters .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-filters .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Blog Post Card Styles */
.blog-post-card {
    background: var(--surface-color, #ffffff);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Blog Post Image */
.blog-post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

/* Blog Post Content */
.blog-post-content {
    padding: 25px;
}

/* Blog Post Meta */
.blog-post-meta {
    font-size: 0.85rem;
    color: var(--default-color, #444444);
    margin-bottom: 15px;
}

.blog-post-meta .post-date,
.blog-post-meta .post-author {
    color: var(--accent-color, #dd3209);
}

.blog-post-meta .post-author a {
    color: var(--accent-color, #dd3209);
}

.blog-post-meta .post-author a:hover {
    color: var(--heading-color, #171717);
}

/* Blog Post Categories */
.post-categories .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Blog Post Title */
.blog-post-title h3 {
    color: var(--heading-color, #171717);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-post-title a {
    color: var(--heading-color, #171717);
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--accent-color, #dd3209);
}

/* Blog Post Excerpt */
.blog-post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--default-color, #444444);
    margin-bottom: 20px;
}

/* Blog Post Tags */
.post-tags .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    color: var(--default-color, #444444);
    transition: all 0.3s ease;
}

.post-tags .badge:hover {
    background: var(--accent-color, #dd3209);
    color: white;
    transform: translateY(-1px);
}

/* Blog Post Footer */
.blog-post-footer .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-post-footer .btn:hover {
    transform: translateX(3px);
}

/* Pagination Styles */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    border: none;
    color: var(--default-color, #444444);
    padding: 12px 16px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--accent-color, #dd3209);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--accent-color, #dd3209);
    color: white;
    border: none;
}

/* WordPress Default Pagination Styles */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--default-color, #444444);
    background: var(--surface-color, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.nav-links .page-numbers:hover {
    background: var(--accent-color, #dd3209);
    color: white;
    border-color: var(--accent-color, #dd3209);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 50, 9, 0.3);
    text-decoration: none;
}

.nav-links .page-numbers.current {
    background: var(--accent-color, #dd3209);
    color: white;
    border-color: var(--accent-color, #dd3209);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(221, 50, 9, 0.2);
}

.nav-links .page-numbers.next,
.nav-links .page-numbers.prev {
    padding: 8px 16px;
    min-width: auto;
    font-weight: 600;
}

.nav-links .page-numbers.next i,
.nav-links .page-numbers.prev i {
    margin-left: 4px;
    font-size: 0.8rem;
}

.nav-links .page-numbers.prev i {
    margin-left: 0;
    margin-right: 4px;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .nav-links {
        gap: 6px;
    }
    
    .nav-links .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .nav-links .page-numbers.next,
    .nav-links .page-numbers.prev {
        padding: 6px 12px;
    }
}

/* No Posts Found */
.no-posts-found {
    padding: 60px 20px;
    text-align: center;
}

.no-posts-found .display-1 {
    color: var(--default-color, #444444);
    opacity: 0.3;
}

.no-posts-found h3 {
    color: var(--heading-color, #171717);
    margin-bottom: 15px;
}

.no-posts-found p {
    color: var(--default-color, #444444);
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog.section {
        padding: 60px 0;
    }
    
    .blog .section-header {
        margin-bottom: 40px;
    }
    
    .blog-filters {
        padding: 20px;
    }
    
    .blog-filters .btn {
        margin-bottom: 10px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .blog-post-card {
        margin-bottom: 30px;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-post-meta > * {
        margin-bottom: 5px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .blog-post-card {
        background: var(--surface-color, #252525);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .blog-filters {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .post-tags .badge {
        background: rgba(255, 255, 255, 0.1);
        color: var(--contrast-color, #ffffff);
    }
}
