/* ============================================
   News Detail Page — Specific Styles
   ============================================ */

/* ── Page Container ── */
.news-detail-container {
    padding: 40px 0 80px;
    background: #fff;
}

/* ── Breadcrumb Override (add back btn) ── */
.btn-back-list {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 4px 14px;
    border-radius: 20px;
    transition: var(--transition-base);
}

.btn-back-list:hover {
    background: var(--dark-blue);
    color: #fff;
    border-color: var(--dark-blue);
}

/* ── Article Header ── */
.article-header {
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-title {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--dark-blue);
    margin: 0;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }
}

/* ── Hero Image ── */
.article-hero {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 36px;
    background: var(--light-gray);
}

.article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.hero-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

@media (max-width: 768px) {
    .article-hero img {
        height: 220px;
    }
}

/* ── Article Body ── */
.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-main);
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.article-body h2 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin: 36px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-orange);
}

.article-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body ul li {
    margin-bottom: 8px;
}

/* ── Info Box ── */
.info-box {
    background: #faf8ff;
    border: 1px solid #e8e0f5;
    border-left: 4px solid var(--dark-blue);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
}

.info-row i {
    color: var(--dark-blue);
    width: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ── Share Bar ── */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    position: relative;
}

.share-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-base);
    text-decoration: none;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.facebook:hover { background: #125fc4; transform: scale(1.1); }

.share-btn.line { background: #06c755; }
.share-btn.line:hover { background: #05a447; transform: scale(1.1); }

.share-btn.copy-link { background: #888; }
.share-btn.copy-link:hover { background: var(--dark-blue); transform: scale(1.1); }

.copy-tooltip {
    font-size: 0.8rem;
    background: var(--dark-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
}

/* ── Prev / Next Navigation ── */
.article-nav {
    display: flex;
    gap: 0;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.article-nav-divider {
    width: 1px;
    background: #eee;
    flex-shrink: 0;
}

.article-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    flex: 1;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-base);
    background: #fafafa;
    min-width: 0;
}

.article-nav-item:hover {
    background: #f0ecf9;
    color: var(--dark-blue);
}

.article-nav-item.next {
    justify-content: flex-end;
    border-left: 1px solid #eee;
}

.nav-direction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-direction i {
    font-size: 1.1rem;
    color: var(--dark-blue);
    transition: var(--transition-base);
}

.article-nav-item.prev:hover .nav-direction i {
    transform: translateX(-4px);
}

.article-nav-item.next:hover .nav-direction i {
    transform: translateX(4px);
}

.nav-info {
    min-width: 0;
    flex: 1;
}

.nav-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 4px;
    background: #FFF5E6;
    color: #D48806;
    font-weight: 700;
    border: 1px solid rgba(212, 136, 6, 0.2);
    margin-bottom: 6px;
}

.nav-title {
    font-size: 0.95rem;
    color: var(--dark-blue);
    margin: 0 0 4px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Noto Serif TC', serif;
}

.article-nav-item:hover .nav-title {
    color: var(--primary-orange);
}

.nav-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .article-nav {
        flex-direction: column;
    }

    .article-nav-item.next {
        border-left: none;
        border-top: 1px solid #eee;
        justify-content: flex-start;
    }

    .nav-info.text-end {
        text-align: left !important;
    }
}

/* ── Back to List Button ── */
.btn-back-all {
    display: inline-flex;
    align-items: center;
    padding: 12px 36px;
    background: var(--dark-blue);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-back-all:hover {
    background: #3d2266;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 46, 129, 0.3);
}
