/*
 * Medium Style Theme - Category Page Styles
 */

/* Category Header */
.category-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--border);
}

.category-header h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.15;
    color: var(--text-primary);
}

.category-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 680px;
}

.category-stats {
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Posts Section */
.posts-section {
    padding: 48px 0;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.post-card {
    text-decoration: none;
    display: flex;
    gap: 24px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card-image-wrapper {
    flex-shrink: 0;
    width: 200px;
}

.post-card-image {
    width: 100%;
    height: 134px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.post-card:hover .post-card-image {
    opacity: 0.85;
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-card-content h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.2s;
}

.post-card:hover h2 {
    color: var(--text-secondary);
}

.post-card-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: auto;
}

.post-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.pagination span.current {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 2rem;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-card-image-wrapper {
        width: 100%;
    }
    
    .post-card-image {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .category-header h1 {
        font-size: 1.75rem;
    }
    
    .category-header p {
        font-size: 1rem;
    }
}
