/* Category Page Styles */

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.page-description {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Articles List */
.articles-list {
    display: grid;
    gap: 24px;
    margin-bottom: 48px;
}

.article-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.2s;
}

.article-item:hover {
    transform: translateY(-2px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.category-tag {
    color: var(--accent-color);
    font-weight: 500;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

.star.empty {
    fill: #e5e7eb;
}

.rating-count {
    margin-left: 8px;
    font-size: 14px;
    color: #6b7280;
}

/* AJAX Pagination */
.ajax-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}

.ajax-pagination.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pagination-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .article-item {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 250px;
    }

    .article-title {
        font-size: 20px;
    }
} 