/* static/css/author/zone.css */

.author-zone-container {
    background: #f5f7fa;
    padding-bottom: 40px;
}

/* ========== 頂部橫幅 ========== */
.author-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    margin-bottom: 30px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.hero-text h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #667eea;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #764ba2;
}

/* ========== 三欄佈局 ========== */
.author-row {
    display: flex;
    gap: 24px;
}

.author-col-left {
    width: 260px;
    flex-shrink: 0;
}

.author-col-middle {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.author-col-right {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== 作者指南 ========== */
.guide-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.guide-list {
    padding: 8px 0;
}

.guide-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.guide-link:last-child {
    border-bottom: none;
}

.guide-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

.guide-link i {
    width: 20px;
    color: #667eea;
}

/* ========== 作者討論區 ========== */
.discussion-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.discussion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.discussion-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.discussion-header span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.coming-tag {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 12px;
}

.discussion-body {
    text-align: center;
    padding: 20px 0;
}

.discussion-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #667eea;
}

.discussion-body p {
    color: #666;
    margin-bottom: 20px;
}

.discussion-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.discussion-features span {
    color: #555;
    font-size: 0.9rem;
}

.discussion-features i {
    color: #27ae60;
    margin-right: 4px;
}

/* ========== 最新作品 ========== */
.recent-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.recent-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.recent-header i {
    color: #667eea;
}

.more-link {
    margin-left: auto;
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.more-link:hover {
    color: #667eea;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s;
}

.recent-item:hover {
    background: #f8f9fa;
}

.recent-cover {
    width: 50px;
    height: 65px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-info .author {
    color: #667eea;
    font-size: 0.8rem;
    margin-right: 8px;
}

.recent-info .category {
    color: #999;
    font-size: 0.75rem;
}

.recent-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.recent-meta .time {
    color: #999;
    font-size: 0.75rem;
}

.recent-meta .status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.recent-meta .status.ongoing {
    background: #e3f2fd;
    color: #1976d2;
}

.recent-meta .status.finished {
    background: #e8f5e9;
    color: #388e3c;
}

.empty-recent {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-recent i {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* ========== 作者積分榜 ========== */
.rank-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rank-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.badge-month {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: auto;
}

.rank-list {
    padding: 8px 0;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: #f8f9fa;
}

.rank-num {
    width: 28px;
    font-weight: 700;
    color: #999;
    text-align: center;
}

.rank-num.gold { color: #FFD700; }
.rank-num.silver { color: #C0C0C0; }
.rank-num.bronze { color: #CD7F32; }

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-points {
    font-weight: 700;
    color: #764ba2;
}

.rank-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

.empty-rank {
    padding: 40px;
    text-align: center;
    color: #999;
}

/* ========== 創作靈感 ========== */
.inspire-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.inspire-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #f39c12;
    font-weight: 600;
}

.inspire-quote {
    color: #555;
    font-style: italic;
    margin-bottom: 8px;
}

.inspire-author {
    text-align: right;
    color: #999;
    font-size: 0.85rem;
}

/* ========== 等級徽章小尺寸 ========== */
.author-badge-small {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #e0e0e0;
    color: #666;
}

/* ========== 響應式 ========== */
@media (max-width: 1200px) {
    .author-row {
        flex-wrap: wrap;
    }
    
    .author-col-right {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .author-col-left {
        width: 100%;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .author-hero {
        padding: 30px 0;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .btn-hero {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .recent-item {
        flex-wrap: wrap;
    }
    
    .recent-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 8px;
    }
}