/**
 * Clean Blog Styles for StylSensei Child Theme
 */

/* 
 * Clean Blog Styles
 * A modern, white background blog design
 */

/* Main blog container */
.blog-container {
    background-color: #ffffff;
    padding: 60px 0;
    min-height: 70vh;
}

/* Blog header */
.blog-header {
    background-color: #ffffff;
    padding: 120px 0 60px;
    margin-bottom: 0;
    text-align: center;
    border-bottom: none;
}

.blog-header h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    padding-top: 40px; /* Added space to prevent navbar overlap */
}

.blog-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 0 auto 50px;
    max-width: 1200px;
    justify-content: center;
}

/* Blog post card */
.blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 380px;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

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

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

/* Category label */
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color, #38c4a2);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post content */
.blog-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.blog-post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color, #38c4a2);
}

/* Meta information */
.blog-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.blog-post-date {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.blog-post-date:before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2zm0 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm.5-9.5V12l3.5 2-1 1.5L11 13V8.5h1.5z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    margin-right: 5px;
}

.blog-post-author {
    display: flex;
    align-items: center;
}

.blog-post-author img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
}

/* Post excerpt */
.blog-post-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

/* Read more button */
.blog-post-readmore {
    align-self: flex-start;
    margin-top: auto;
    background: transparent;
    color: var(--primary-color, #38c4a2);
    border: 1px solid var(--primary-color, #38c4a2);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-post-readmore:hover {
    background: var(--primary-color, #38c4a2);
    color: white;
}

/* Pagination */
.blog-pagination {
    text-align: center;
    margin-top: 50px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers.current {
    background: var(--primary-color, #38c4a2);
    color: white;
}

.blog-pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
}

.blog-pagination .prev,
.blog-pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* No posts found message */
.no-posts-found {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
        padding-top: 30px;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-post-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-container {
        padding: 30px 0;
    }
    
    .blog-header {
        padding: 100px 0 40px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
}

/* Fallback for no featured image */
.blog-post-thumbnail img.img-fluid {
    min-height: 100%;
} 