/* ============================================================
   RoozBook - Category Page Styles
   ============================================================ */

.category-page {
    max-width: 900px;
    margin: 0 auto;
}

.category-header {
    margin-bottom: 24px;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.category-desc {
    font-size: 0.9rem;
    color: #777;
}

/* Post List */
.category-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.cat-post {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.cat-post:hover {
    border-color: #e67e22;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cat-post.featured {
    flex-direction: column;
}

.cat-post.featured .cat-post-image {
    width: 100%;
    height: 300px;
}

.cat-post-image {
    width: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.cat-post-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.cat-post.featured .cat-post-image img {
    height: 300px;
}

.cat-post-body {
    flex: 1;
}

.cat-post-date {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 4px;
}

.cat-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
}

.cat-post.featured .cat-post-title {
    font-size: 1.4rem;
}

.cat-post-title a {
    color: #1a1a1a;
}

.cat-post-title a:hover {
    color: #e67e22;
}

.cat-post-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 6px;
}

.cat-post-meta {
    font-size: 0.78rem;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn.active,
.page-btn:hover {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

/* Empty State */
.category-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.category-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .cat-post {
        flex-direction: column;
    }
    
    .cat-post-image {
        width: 100%;
    }
    
    .cat-post.featured .cat-post-image {
        height: 200px;
    }
    
    .cat-post-title {
        font-size: 0.95rem;
    }
    
    .cat-post.featured .cat-post-title {
        font-size: 1.2rem;
    }
}