/* ===== 會員文章列表頁面樣式 ===== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0 2rem;
    color: #fff;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-4px);
}

.back-icon {
    font-size: 1.2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Articles Content */
.articles-content {
    padding: 3rem 0;
    background: #f7fafc;
    min-height: 100vh;
}

.articles-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Article Card */
.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 草稿文章樣式 */
.article-card.article-draft {
    background: #fef3e7;
    border-left: 4px solid #f39c12;
}

.article-card.article-draft:hover {
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.2);
}

/* 排程文章樣式 */
.article-card.article-scheduled {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
}

.article-card.article-scheduled:hover {
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.article-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: wrap;
}

.article-title-link {
    text-decoration: none;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-title-link:hover .article-title {
    color: #667eea;
}

/* 狀態徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.draft-badge {
    background: #f39c12;
    color: #fff;
}

.scheduled-badge {
    background: #3498db;
    color: #fff;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.date-icon {
    font-size: 1rem;
}

.article-excerpt {
    margin: 1rem 0;
    color: #4a5568;
    line-height: 1.6;
}

.article-excerpt p {
    margin: 0;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f0f4ff;
    color: #667eea;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: #fff;
}

/* Article Footer */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.empty-text {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-link,
.page-current {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link {
    background: #fff;
    color: #667eea;
    border: 2px solid #e2e8f0;
}

.page-link:hover {
    background: #f7f9ff;
    border-color: #667eea;
}

.page-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 2px solid transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .article-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .article-stats {
        gap: 1rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}
