/**
 * EasyBlog Category Addon Styles for JPageBuilder
 */

/* Posts Container */
.eb-posts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* List Layout */
.eb-posts-list {
    display: block;
}

.eb-posts-list .eb-post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.eb-posts-list .eb-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Grid Layout */
.eb-posts-grid {
    display: flex;
    flex-wrap: wrap;
}

.eb-posts-grid .eb-post {
    padding: 0 15px;
    margin-bottom: 30px;
}

.eb-posts-grid[data-columns="2"] .eb-post {
    width: 50%;
}

.eb-posts-grid[data-columns="3"] .eb-post {
    width: 33.333333%;
}

.eb-posts-grid[data-columns="4"] .eb-post {
    width: 25%;
}

/* Post Item */
.eb-post-item {
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.eb-posts-grid .eb-post-item,
.eb-posts-masonry .eb-post-item {
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease;
}

.eb-posts-grid .eb-post-item:hover,
.eb-posts-masonry .eb-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Post Thumbnail */
.eb-post-thumb {
    margin-bottom: 15px;
    line-height: 1;
    display: block;
    position: relative;
    overflow: hidden;
}

.eb-post-thumb a {
    display: block;
}

.eb-post-thumb img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.eb-post-thumb:hover img {
    transform: scale(1.05);
}

.eb-posts-grid .eb-post-thumb,
.eb-posts-masonry .eb-post-thumb {
    margin-bottom: 0;
}

/* Post Content */
.eb-post-content {
    padding: 20px;
}

.eb-posts-list .eb-post-content {
    padding: 0;
}

/* Post Title */
.eb-post-title {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 15px;
    font-weight: bold;
}

.eb-meta-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.eb-posts-grid .eb-post-title,
.eb-posts-masonry .eb-post-title {
    font-size: 18px;
}

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

.eb-post-title a:hover {
    color: #1e88e5;
}

/* Post Meta */
.eb-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.eb-post-meta > div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.eb-post-meta > div + div:before {
    display: flex;
    align-items: center;
    content: '\00b7';
    font-size: 13px;
    vertical-align: middle;
    padding: 0 6px;
}

.eb-post-meta > div:last-child {
    margin-right: 0;
}

.eb-meta-label {
    font-weight: 600;
    margin-right: 4px;
}

/* Post Intro */
.eb-post-intro {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.eb-post-intro p {
    margin: 0;
}

/* Read More Button */
.eb-post-more {
    margin-top: 15px;
}

.eb-post-more .btn {
    display: inline-block;
    padding: 8px 20px;
    background: #1e88e5;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.eb-post-more .btn:hover {
    background: #1565c0;
}

/* Masonry Layout */
.eb-posts-masonry {
    display: flex;
    flex-wrap: wrap;
}

.eb-posts-masonry .eb-post {
    padding: 0 15px;
    margin-bottom: 30px;
}

.eb-posts-masonry[data-columns="2"] .eb-post {
    width: 50%;
}

.eb-posts-masonry[data-columns="3"] .eb-post {
    width: 33.333333%;
}

.eb-posts-masonry[data-columns="4"] .eb-post {
    width: 25%;
}

/* Responsive */
@media (max-width: 991px) {
    .eb-posts-grid[data-columns="4"] .eb-post,
    .eb-posts-masonry[data-columns="4"] .eb-post {
        width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .eb-posts-grid[data-columns="3"] .eb-post,
    .eb-posts-grid[data-columns="4"] .eb-post,
    .eb-posts-masonry[data-columns="3"] .eb-post,
    .eb-posts-masonry[data-columns="4"] .eb-post {
        width: 50%;
    }
    
    .eb-post-meta {
        display: block;
    }
    
    .eb-post-meta > div {
        margin-bottom: 8px;
    }
}

@media (max-width: 575px) {
    .eb-posts-grid .eb-post,
    .eb-posts-masonry .eb-post {
        width: 100% !important;
    }
    
    .eb-post-title {
        font-size: 20px;
    }
    
    .eb-posts-grid .eb-post-title,
    .eb-posts-masonry .eb-post-title {
        font-size: 18px;
    }
}

/* Alert Info */
.alert-info {
    padding: 15px;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    color: #31708f;
}