/* ============================================
   News Page - Additional Styles
   最新消息頁面專用樣式
   ============================================ */

/* ── Hidden utility ─────────────────────────────── */
.news-hidden {
    display: none !important;
}

/* ── Empty State ────────────────────────────────── */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    margin-top: 2rem;
}

.news-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.news-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.news-empty p {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.news-empty code {
    background: rgba(139, 115, 85, 0.1);
    color: var(--gold-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-all;
}

/* ── News Item Meta (Tag) ───────────────────────── */
.news-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 8px;
}

.news-item-tag {
    display: inline-block;
    background: var(--gold-dark);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── News Item Title Link ───────────────────────── */
.news-item-title-link {
    text-decoration: none;
    color: inherit;
}

.news-item-title-link h3 {
    transition: color 0.3s ease;
}

.news-item-title-link:hover h3,
.news-item-title-link:focus-visible h3 {
    color: var(--gold-dark);
}

/* ── News Item Read More ────────────────────────── */
.news-item-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-dark);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.news-item-read-more:hover,
.news-item-read-more:focus-visible {
    gap: 10px;
    color: var(--gold-primary);
}

/* ── News Detail Page ───────────────────────────── */
.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail {
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Link */
.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold-dark);
    text-decoration: none;
    margin-bottom: 2rem;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.news-back-link:hover,
.news-back-link:focus-visible {
    color: var(--gold-primary);
}

/* Detail Header */
.news-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-detail-date {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-variant-numeric: tabular-nums;
}

.news-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    text-wrap: balance;
}

/* Detail Body */
.news-detail-body {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 2;
}

.news-detail-body p {
    margin-bottom: 1.5rem;
}

.news-detail-body p:last-child {
    margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-detail-container {
        margin: 0;
    }
}
