/* Main Layout */
.lcs-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lcs-category-content {
    display: flex;
    gap: 30px;
}

.lcs-posts-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.lcs-category-sidebar {
    width: 300px;
}

/* Blog Grid Layout (Homepage) */
.lcs-blog-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Post Cards */
.lcs-post-card,
.lcs-blog-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.lcs-post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.lcs-post-thumbnail,
.lcs-blog-image {
    height: 235px;
    overflow: hidden;
}

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

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

.lcs-post-content,
.lcs-blog-card > div:last-child {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lcs-post-excerpt,
.lcs-blog-excerpt {
    margin: 15px 0;
    color: #666;
    flex-grow: 1;
}

.lcs-post-meta,
.lcs-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #888;
}

/* Sidebar */
.lcs-blog-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.lcs-blog-sidebar h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.lcs-blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lcs-blog-sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.lcs-blog-sidebar li:last-child {
    border-bottom: none;
}

.lcs-blog-sidebar a {
    display: block;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lcs-blog-sidebar a:hover {
    color: #0073aa;
}

.lcs-blog-sidebar .post-date {
    display: block;
    font-size: 0.8em;
    color: #999;
    margin-top: 5px;
}

/* Pagination */
.lcs-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 5px;
    grid-column: 1 / -1;
}

.lcs-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lcs-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

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

.lcs-pagination .page-numbers.dots {
    border: none;
    pointer-events: none;
}

.lcs-pagination .prev,
.lcs-pagination .next {
    font-weight: bold;
}

/* Loading State */
.lcs-loading {
    position: relative;
    min-height: 200px;
}

.lcs-loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 10;
}

.lcs-loading:before {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    color: #333;
    font-weight: bold;
}

/* Error State */
.lcs-error {
    padding: 20px;
    background: #ffecec;
    border: 1px solid #ffb3b3;
    color: #dc3232;
    border-radius: 4px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .lcs-blog-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .lcs-category-content {
        flex-direction: column;
    }
    
    .lcs-category-sidebar {
        width: 100%;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .lcs-posts-grid,
    .lcs-blog-grid-container {
        grid-template-columns: 1fr;
    }
    
    .lcs-pagination {
        flex-wrap: wrap;
    }
}