/* static/css/translator/zone.css */

.translator-zone-container {
    background: #f5f7fa;
    padding-bottom: 40px;
}

/* ========== 頂部橫幅 ========== */
.translator-hero {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 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: #11998e;
    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: #0d7a6e;
}

/* ========== 三欄佈局 ========== */
.translator-row {
    display: flex;
    gap: 24px;
}

.translator-col-left {
    width: 260px;
    flex-shrink: 0;
}

.translator-col-middle {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.translator-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);
    margin-bottom: 20px;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    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: #11998e;
}

.guide-link i {
    width: 20px;
    color: #11998e;
}

/* ========== 排行榜 ========== */
.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, #0d7a6e, #11998e);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.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: #11998e;
}

.empty-rank {
    padding: 40px;
    text-align: center;
    color: #999;
}

/* ========== 最新作品 ========== */
.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: #11998e;
}

.more-link {
    margin-left: auto;
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.more-link:hover {
    color: #11998e;
}

.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: #11998e;
    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;
}

.lang-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.chapters {
    color: #999;
    font-size: 0.75rem;
}

.empty-recent {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-recent i {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* ========== 章節列表 ========== */
.chapter-list-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-item-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.chapter-item-mini:last-child {
    border-bottom: none;
}

.chapter-info {
    flex: 1;
    min-width: 0;
}

.novel-title {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.novel-title:hover {
    color: #11998e;
}

.chapter-label {
    color: #999;
    font-size: 0.8rem;
}

.chapter-langs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.lang-needed {
    background: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
}

.btn-translate-sm {
    background: #11998e;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.btn-translate-sm:hover {
    background: #0d7a6e;
    color: white;
}

/* ========== 我的統計 ========== */
.my-stats-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #11998e;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.stat-item {
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #11998e;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
}

/* ========== 激勵卡 ========== */
.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;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    padding: 8px 0;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}

.benefit-list li:last-child {
    border-bottom: none;
}

.benefit-list i {
    color: #27ae60;
    margin-right: 8px;
}

/* ========== 公告卡 ========== */
.notice-card {
    background: #fff8e1;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #ffecb3;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #f57c00;
    font-weight: 600;
}

.notice-text {
    color: #795548;
    font-size: 0.85rem;
    margin: 0;
}

/* ========== 譯者徽章 ========== */
.translator-badge-small {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #e0f7fa;
    color: #00695c;
}

/* ========== 響應式 ========== */
@media (max-width: 1200px) {
    .translator-row {
        flex-wrap: wrap;
    }
    .translator-col-right {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .translator-col-left {
        width: 100%;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .translator-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;
    }
}