/* ===== Author Detail Page CSS ===== */
/* 功能一 Phase 3：作者詳細頁 UI v2 */
/* 設計稿：Figma AI author_detail_v2 */

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

/* ===== Breadcrumb ===== */
.author-detail-page .breadcrumb-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
}

.author-detail-page .breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #707070;
}

.author-detail-page .breadcrumb-container a {
    color: #707070;
    text-decoration: none;
    transition: color 0.2s;
}

.author-detail-page .breadcrumb-container a:hover {
    color: #0EC8BF;
}

.author-detail-page .breadcrumb-container .separator {
    color: #C1C1C1;
}

.author-detail-page .breadcrumb-container .current {
    color: #0EC8BF;
    font-weight: 500;
}

/* ===== Hero Section ===== */
.author-detail-page .author-hero {
    background: rgba(51, 182, 176, 0.08);
    padding: 64px 0;
}

.author-detail-page .author-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 64px;
}

/* Avatar */
.author-detail-page .author-hero__avatar {
    flex-shrink: 0;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.author-detail-page .author-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Info */
.author-detail-page .author-hero__info {
    flex: 1;
}

.author-detail-page .author-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid #33B6B0;
    background: rgba(51, 182, 176, 0.08);
    color: #33B6B0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.author-detail-page .author-hero__badge svg {
    width: 16px;
    height: 16px;
}

.author-detail-page .author-hero__name {
    font-size: 30px;
    font-weight: 700;
    color: #0EC8BF;
    margin: 8px 0 16px;
    line-height: 1.3;
}

.author-detail-page .author-hero__subtitle {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.7);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Social Links */
.author-detail-page .author-hero__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-detail-page .author-hero__social .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.author-detail-page .author-hero__social .social-link:hover {
    transform: scale(1.1);
}

.author-detail-page .author-hero__social .social-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Body Section (Two-column) ===== */
.author-detail-page .author-body {
    padding: 48px 0;
}

.author-detail-page .author-body__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
}

.author-detail-page .author-body__main {
    min-width: 0;
}

.author-detail-page .author-body__sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* ===== Section Title with Accent ===== */
.author-detail-page .section-title-accent {
    font-size: 24px;
    font-weight: 700;
    color: #0EC8BF;
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 6px solid #0EC8BF;
}

/* ===== Bio Section ===== */
.author-detail-page .bio-section {
    margin-bottom: 48px;
}

.author-detail-page .bio-content {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.8;
}

.author-detail-page .bio-content p {
    margin: 0;
}

/* ===== Credentials Section ===== */
.author-detail-page .credentials-section {
    background: #F9F9F9;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 32px;
    margin-bottom: 48px;
}

.author-detail-page .credentials-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 24px;
}

.author-detail-page .credentials-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.author-detail-page .credentials-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.author-detail-page .credentials-item:last-child {
    border-bottom: none;
}

.author-detail-page .credentials-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(51, 182, 176, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #33B6B0;
}

.author-detail-page .credentials-icon svg {
    width: 16px;
    height: 16px;
}

.author-detail-page .credentials-item span {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* ===== Articles Section ===== */
.author-detail-page .articles-section {
    margin-bottom: 48px;
}

.author-detail-page .articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 32px;
    gap: 16px;
}

.author-detail-page .articles-count {
    background: rgba(14, 200, 191, 0.1);
    color: #0EC8BF;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.author-detail-page .empty-message {
    text-align: center;
    color: #707070;
    padding: 60px 20px;
    font-size: 16px;
}

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

.author-detail-page .pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #0EC8BF;
    text-decoration: none;
}

.author-detail-page .pagination__arrow svg {
    width: 20px;
    height: 20px;
}

.author-detail-page .pagination__item {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.2s;
}

.author-detail-page .pagination__item:hover {
    color: #0EC8BF;
}

.author-detail-page .pagination__item.active {
    background: rgba(51, 182, 176, 0.15);
    color: #1A1A1A;
}

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

/* ===== Sidebar CTA ===== */
.author-detail-page .sidebar-cta {
    background: #33B6B0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.author-detail-page .sidebar-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px;
}

.author-detail-page .sidebar-cta__desc {
    font-size: 16px;
    color: #FFFFFF;
    margin: 0 0 24px;
}

.author-detail-page .sidebar-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    color: #33B6B0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.author-detail-page .sidebar-cta__btn:hover {
    background: #E6F7F6;
    color: #33B6B0;
}

/* ===== Clinic Card ===== */
.author-detail-page .clinic-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.author-detail-page .clinic-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.author-detail-page .clinic-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.author-detail-page .clinic-item {
    padding-top: 24px;
}

.author-detail-page .clinic-item:first-child {
    padding-top: 16px;
}

.author-detail-page .clinic-item.has-border {
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.author-detail-page .clinic-item__name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px;
}

.author-detail-page .clinic-item__address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    color: #707070;
    margin-bottom: 16px;
}

.author-detail-page .clinic-item__address svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.author-detail-page .clinic-item__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background: #33B6B0;
    color: #FFFFFF;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.author-detail-page .clinic-item__btn:hover {
    background: #2da39e;
    color: #FFFFFF;
}

/* ===== Team Sidebar ===== */
.author-detail-page .team-sidebar {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.author-detail-page .team-sidebar__title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.author-detail-page .team-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-detail-page .team-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #FAFAFA;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.author-detail-page .team-item:hover {
    background: #FFFFFF;
    border-color: #0EC8BF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-detail-page .team-item__avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.author-detail-page .team-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.author-detail-page .team-item:hover .team-item__avatar img {
    transform: scale(1.05);
}

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

.author-detail-page .team-item__info {
    flex: 1;
    min-width: 0;
}

.author-detail-page .team-item__name {
    font-size: 18px;
    font-weight: 700;
    color: #0EC8BF;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-detail-page .team-item__subtitle {
    font-size: 16px;
    color: #6A7282;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-detail-page .team-item__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(14, 200, 191, 0.1);
    color: #0EC8BF;
    font-size: 14px;
    border-radius: 50px;
    margin-top: 4px;
}

.author-detail-page .team-item__badge svg {
    width: 14px;
    height: 14px;
}

.author-detail-page .team-sidebar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: #0EC8BF;
    color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    transition: background 0.2s;
}

.author-detail-page .team-sidebar__btn:hover {
    background: #0db3ab;
    color: #FFFFFF;
}

.author-detail-page .team-sidebar__btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .author-detail-page .author-body__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .author-detail-page .author-body__sidebar {
        position: static;
    }

    .author-detail-page .author-hero__container {
        gap: 48px;
    }

    .author-detail-page .author-hero__avatar {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .author-detail-page .breadcrumb-container {
        font-size: 14px;
        padding: 0 16px;
    }

    .author-detail-page .author-hero {
        padding: 48px 0;
    }

    .author-detail-page .author-hero__container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 0 16px;
    }

    .author-detail-page .author-hero__avatar {
        width: 192px;
        height: 192px;
    }

    .author-detail-page .author-hero__info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .author-detail-page .author-hero__name {
        font-size: 24px;
    }

    .author-detail-page .author-hero__subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .author-detail-page .author-body {
        padding: 32px 0;
    }

    .author-detail-page .author-body__container {
        padding: 0 16px;
    }

    .author-detail-page .section-title-accent {
        font-size: 20px;
    }

    .author-detail-page .credentials-section {
        padding: 24px;
    }

    .author-detail-page .credentials-title {
        font-size: 18px;
    }

    .author-detail-page .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .author-detail-page .author-hero__avatar {
        width: 160px;
        height: 160px;
    }

    .author-detail-page .author-hero__social {
        gap: 12px;
    }

    .author-detail-page .author-hero__social .social-link {
        width: 36px;
        height: 36px;
    }
}
