/* Homepage Styles */

/* Featured Article */
.featured-section {
    margin-bottom: 48px;
}

.featured-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-content {
    padding: 24px;
}

.featured-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
}

.category-tag {
    color: var(--accent-color);
    font-weight: 500;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.featured-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--accent-color);
}

.featured-excerpt {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: var(--grid-template);
    gap: 24px;
    margin-bottom: 48px;
}

.articles-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 2px;
    margin-top: 8px;
    align-items: center;
}

.star {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

.star.empty {
    fill: #e5e7eb;
}

.rating-count {
    margin-left: 8px;
    font-size: 14px;
    color: #6b7280;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}

.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) {
    .featured-title {
        font-size: 24px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
} 