/* ===== Author List Page CSS ===== */
/* 功能二 Phase 2：醫師專家區 + 小編 carousel */
/* 設計稿：Figma AI v2 */

/* ===== Main Container ===== */
.author-list-page {
    background: #FFFFFF;
    min-height: 100vh;
}

/* ===== Hero Banner ===== */
.author-hero {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.author-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.author-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.author-hero__content {
    position: relative;
    text-align: center;
    padding: 0 16px;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}

.author-hero__title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.author-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Page Header ===== */
/* 設計稿：標題 mb-4=16px，breadcrumb mb-12=48px */
.page-header {
    text-align: center;
}

.page-title {
    color: #33B6B0;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 16px;
}

/* ===== Breadcrumb ===== */
.author-list-page .breadcrumb-section {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C1C1C1;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 48px;
}

.author-list-page .breadcrumb-section a {
    color: #C1C1C1;
    text-decoration: none;
    transition: color 0.2s;
}

.author-list-page .breadcrumb-section a:hover {
    color: #0EC8BF;
}

.author-list-page .breadcrumb-section span {
    color: #C1C1C1;
}

/* ===== Main Content ===== */
.author-list-page .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section Header ===== */
.author-list-page .section-header {
    text-align: center;
    margin-bottom: 12px;
}

.author-list-page .section-title {
    font-size: 30px;
    font-weight: 700;
    color: #33B6B0;
    margin-bottom: 12px;
}

.author-list-page .section-subtitle {
    font-size: 16px;
    color: #707070;
    margin: 0;
}

/* ===== Experts Section (醫師區) ===== */
.author-list-page .experts-section {
    /* 間距由分頁器的 margin-top 控制，避免沒有分頁器時產生多餘空白 */
}

.author-list-page .experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ===== Expert Card (醫師卡片) ===== */
.author-list-page .expert-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.author-list-page .expert-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-list-page .expert-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.author-list-page .expert-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.author-list-page .expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-list-page .expert-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f7f6 0%, #b2ebf2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-list-page .expert-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-list-page .expert-name {
    font-size: 24px;
    font-weight: 700;
    color: #33B6B0;
    line-height: 1.3;
    margin: 0;
}

.author-list-page .expert-name a {
    color: inherit;
    text-decoration: none;
}

.author-list-page .expert-name a:hover {
    text-decoration: underline;
}

.author-list-page .expert-title {
    font-size: 16px;
    color: #707070;
}

.author-list-page .expert-contribution {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #33B6B0;
    color: #33B6B0;
    font-size: 16px;
    font-weight: 500;
    width: fit-content;
    background: rgba(14, 200, 191, 0.08);
}

.author-list-page .expert-contribution svg {
    width: 16px;
    height: 16px;
    fill: #33B6B0;
}

/* Dashed Divider */
.author-list-page .expert-card-divider {
    width: 100%;
    border-top: 1px dashed #e0e0e0;
    margin-bottom: 24px;
}

.author-list-page .expert-bio {
    font-size: 16px;
    color: #707070;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.author-list-page .expert-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background: #1AC1BC;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
    margin-top: auto;
}

.author-list-page .expert-card-btn:hover {
    background: #159c98;
    color: white;
}

.author-list-page .empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #707070;
    padding: 60px 20px;
    font-size: 16px;
}

/* ===== Section Divider ===== */
.author-list-page .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #f0f0f0 50%, transparent 100%);
    margin: 20px 0 40px;
}

/* ===== Editors Section (小編區) ===== */
.author-list-page .editors-section {
    background: #FAFAFA;
    padding: 64px 0;
    margin-top: 80px;
}

.author-list-page .editors-section .section-header {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 16px;
}

.author-list-page .editors-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.author-list-page .editors-carousel-inner {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.author-list-page .editors-carousel-inner::-webkit-scrollbar {
    display: none;
}

/* ===== Editor Card (小編卡片) ===== */
.author-list-page .editor-card {
    flex: 0 0 auto;
    width: 320px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: auto;
}

.author-list-page .editor-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: inherit;
}

.author-list-page .editor-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.author-list-page .editor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-list-page .editor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-list-page .editor-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f7f6 0%, #b2ebf2 100%);
}

.author-list-page .editor-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 4px 0;
}

.author-list-page .editor-info p {
    font-size: 16px;
    color: #707070;
    margin: 0;
}

.author-list-page .editor-bio {
    font-size: 16px;
    color: #707070;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.author-list-page .editor-contribution-link {
    font-size: 16px;
    color: #0EC8BF;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.author-list-page .editor-card:hover .editor-contribution-link {
    text-decoration: underline;
}

/* ===== Carousel Navigation ===== */
.author-list-page .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.author-list-page .carousel-nav:hover {
    background: #0EC8BF;
    color: white;
    border-color: #0EC8BF;
}

.author-list-page .carousel-nav.prev {
    left: 10px;
}

.author-list-page .carousel-nav.next {
    right: 10px;
}

.author-list-page .carousel-nav svg {
    width: 20px;
    height: 20px;
}

/* ===== Pagination ===== */
.author-list-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 64px;
}

.author-list-page .pagination a {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    color: #707070;
    background: transparent;
    border: none;
}

.author-list-page .pagination a:hover {
    color: #0EC8BF;
}

.author-list-page .pagination a.active {
    background: #D1F2F1;
    color: #0EC8BF;
    font-weight: 500;
}

.author-list-page .pagination a.nav-arrow {
    color: #0EC8BF;
}

.author-list-page .pagination a.nav-arrow svg {
    width: 20px;
    height: 20px;
}

.author-list-page .pagination .ellipsis {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #707070;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .author-list-page .experts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .author-list-page .editor-card {
        width: 280px;
    }

    .author-list-page .editors-carousel {
        padding: 0 48px;
    }

    .author-list-page .carousel-nav.prev {
        left: 4px;
    }

    .author-list-page .carousel-nav.next {
        right: 4px;
    }
}

@media (max-width: 768px) {
    .author-hero {
        height: 240px;
    }

    .author-hero__title {
        font-size: 24px;
    }

    .author-hero__subtitle {
        font-size: 16px;
    }

    .page-title,
    .author-list-page .section-title {
        font-size: 26px;
    }

    .author-list-page .main-content {
        padding: 0 16px;
    }

    .author-list-page .breadcrumb-section {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .author-list-page .experts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .author-list-page .expert-card {
        padding: 20px;
    }

    .author-list-page .expert-card-header {
        flex-direction: column;
        text-align: center;
    }

    .author-list-page .expert-info {
        align-items: center;
    }

    .author-list-page .expert-avatar {
        width: 80px;
        height: 80px;
    }

    .author-list-page .expert-name {
        font-size: 20px;
    }

    .author-list-page .editors-section {
        padding: 48px 0;
        margin-top: 60px;
    }

    .author-list-page .editors-carousel {
        padding: 0 48px;
    }

    .author-list-page .editor-card {
        width: 260px;
        padding: 24px;
    }

    .author-list-page .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .author-list-page .pagination {
        margin-top: 40px;
    }

    .author-list-page .pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .author-list-page .main-content {
        padding: 0 12px;
    }

    .author-list-page .editors-carousel {
        padding: 0 40px;
    }

    .author-list-page .carousel-nav.prev {
        left: 4px;
    }

    .author-list-page .carousel-nav.next {
        right: 4px;
    }
}
