/**
 * Blog Customizer Styles
 * Styles for blog layout options
 */

/* ==========================================
   BLOG POSTS WRAPPER - All layouts
   ========================================== */
.blog-posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-post-item {
    background: #fff;
    border-radius: var(--medivox-border-radius, 12px);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-post-item .post-thumbnail img {
    width: 100%;
    display: block;
}

.blog-post-item .post-content {
    padding: 25px;
}

/* ==========================================
   BLOG LAYOUT: GRID
   ========================================== */
.blog-layout-grid .blog-posts-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-layout-grid .blog-post-item {
    display: flex;
    flex-direction: column;
}

.blog-layout-grid .blog-post-item .post-thumbnail img {
    height: 220px !important;
    object-fit: cover;
}

.blog-layout-grid .blog-post-item .post-content {
    flex: 1;
}

/* ==========================================
   BLOG LAYOUT: LIST
   ========================================== */
.blog-layout-list .blog-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-layout-list .blog-post-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.blog-layout-list .blog-post-item .post-thumbnail {
    flex: 0 0 300px;
}

.blog-layout-list .blog-post-item .post-thumbnail img {
    height: 200px;
    object-fit: cover;
}

.blog-layout-list .blog-post-item .post-content {
    flex: 1;
}

/* ==========================================
   BLOG LAYOUT: CLASSIC
   ========================================== */
.blog-layout-classic .blog-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-layout-classic .blog-post-item {
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: none;
}

.blog-layout-classic .blog-post-item .post-thumbnail {
    margin: -30px -30px 20px -30px;
}

.blog-layout-classic .blog-post-item .post-thumbnail img {
    max-height: 400px;
    object-fit: cover;
}

.blog-layout-classic .blog-post-item .entry-title {
    font-size: 2rem;
}

.blog-layout-classic .blog-post-item .entry-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================
   POST META
   ========================================== */
.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta i {
    margin-right: 5px;
}

/* ==========================================
   ENTRY TITLE
   ========================================== */
.entry-title {
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.entry-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: var(--medivox-primary, #0F6FFF);
}

/* ==========================================
   ENTRY EXCERPT
   ========================================== */
.entry-excerpt {
    color: #666;
    line-height: 1.6;
}

.entry-excerpt p {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    font-weight: 500;
    color: var(--medivox-primary, #0F6FFF);
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    text-decoration: underline;
    color: var(--medivox-primary, #0F6FFF);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .blog-layout-grid .blog-posts-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-layout-list .blog-post-item {
        flex-direction: column;
    }
    
    .blog-layout-list .blog-post-item .post-thumbnail {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .blog-layout-list .blog-post-item .post-thumbnail img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .blog-layout-grid .blog-posts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-layout-classic .blog-post-item {
        padding: 15px;
    }
    
    .blog-layout-classic .blog-post-item .post-thumbnail {
        margin: -15px -15px 15px -15px;
    }
    
    .blog-layout-classic .blog-post-item .entry-title {
        font-size: 1.5rem;
    }
}