/* 
 * Blog Page Styles - Pongo Theme
 * High-End Minimalist Design System
 */

/* 1. Global & Layout */
.single-post {
    padding-bottom: 5rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--brand-yellow);
    width: 0;
    z-index: 2000;
}


.single-post .entry-header {
    margin-bottom: 4rem;
    padding-top: 3rem;
}

.entry-thumbnail {
    margin: 0 0 4rem;
}

.entry-thumbnail img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .entry-meta {
    margin-bottom: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.post-cat a {
    font-size: 0.875rem;
    color: var(--brand-yellow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.single-post .entry-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

/* 3. EEAT Modules Shared Styles */

/* Unified Module Titles (Minimalist Icon Style) */
.qa-section,
.reference-section,
.related-posts-section {
    margin-top: var(--spacing-xl);
    padding: 0;
    position: relative;
}

.qa-title, 
.reference-title, 
.section-title {
    font-size: 1.75rem !important;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    display: block; /* 回歸區塊樣式 */
}

.qa-title::after,
.reference-title::after,
.section-title::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--brand-yellow);
    margin-left: 6px;
    vertical-align: baseline;
}

.qa-ai-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -1.5rem 0 2.5rem;
    line-height: 1.6;
}

/* Fact Check Badge */
.fact-check-badge {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.fact-check-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.fact-check-badge .icon {
    color: #27ae60;
    font-weight: 600;
}

.fact-check-summary {
    font-size: 1rem;
    padding-left: 1.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* 4. Module Specific Details */

/* FAQ */
.qa-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.qa-item:last-child {
    border-bottom: none;
}

.qa-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
}

.qa-question::before {
    content: 'Q.';
    color: var(--brand-yellow);
    font-weight: 600;
}

.qa-answer {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    padding-left: 1.75rem;
}

/* References */
.reference-list {
    list-style-type: decimal;
    list-style-position: inside; /* 讓數字在裡面，方便兩欄排列 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
    padding: 0;
}

.reference-item {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.reference-item::marker {
    color: inherit;
    font-weight: 600;
}

.reference-item a {
    color: var(--text-muted);
    transition: 0.3s ease;
}

.reference-item a:hover {
    color: var(--brand-yellow);
}

.badge-authority {
    background: var(--brand-yellow);
    color: #000;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
}

/* 5. Entry Content Typography */
.entry-content {
    font-size: 1.125rem;
    line-height: 2;
    color: #222;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    margin: 4rem 0 2rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: var(--brand-yellow);
    text-decoration-thickness: 4px;
    text-underline-offset: 1px;
    text-decoration-skip-ink: none;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--brand-yellow);
    font-weight: 600;
    line-height: 1.4;
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
}

.entry-content figure {
    margin: 3.5rem 0;
}

.entry-content figcaption {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    font-style: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.entry-content figcaption::before {
    content: '▲';
    color: inherit;
    font-size: 15px;
}

/* 6. Related Posts Cards */
.grid-1 {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.related-post-card {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.related-post-card:last-child {
    border-bottom: none;
}

.related-title {
    font-size: 1.875rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-post-card a:hover .related-title {
    color: var(--brand-yellow);
}

.related-excerpt {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* 7. Responsive — base safety */
.entry-content img,
.blog-post-card img,
.entry-thumbnail img {
    max-width: 100%;
    height: auto;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100%;
}

.entry-content,
.blog-post-card .entry-summary,
.related-excerpt {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Tablet ≤1024px */
@media (max-width: 1024px) {
    .blog-hero {
        padding: 70px 0 56px;
        margin-bottom: 4rem;
    }
    .blog-hero .page-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    .blog-hero .page-description {
        font-size: 0.96rem;
    }
    .post-list {
        padding-top: 1rem;
    }
    .blog-post-card {
        margin-bottom: 90px;
        padding-bottom: 50px;
    }
    .blog-post-card .entry-title {
        font-size: 2.1rem;
    }
    .blog-post-card .entry-summary {
        font-size: 0.95rem;
    }
    /* Sidebar collapses below content if present */
    .site-main .container > .row,
    .blog-archive-premium .grid-sidebar,
    .single-post .has-sidebar {
        display: block !important;
    }
    .sidebar,
    .widget-area,
    aside.sidebar {
        width: 100%;
        margin-top: 3rem;
    }
    .single-post .entry-header {
        padding-top: 2rem;
        margin-bottom: 3rem;
    }
    .entry-thumbnail {
        margin: 0 0 2.5rem;
    }
    .entry-content {
        font-size: 1rem;
        line-height: 1.85;
    }
    .entry-content h2 {
        font-size: 1.7rem;
        margin: 3rem 0 1.5rem;
    }
    .entry-content h3 {
        font-size: 1.3rem;
        margin: 2.25rem 0 1.25rem;
    }
    .reference-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .related-title {
        font-size: 1.55rem;
    }
}

/* Mobile ≤767px */
@media (max-width: 767px) {
    .blog-hero {
        padding: 50px 0 40px;
        margin-bottom: 2.5rem;
    }
    .blog-hero .page-title {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }
    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
        margin-bottom: 1rem;
    }
    .blog-hero .page-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .blog-post-card {
        margin-bottom: 60px;
        padding-bottom: 36px;
    }
    .blog-post-card .entry-title {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }
    .blog-post-card .entry-title a::after {
        width: 10px;
        height: 10px;
        margin-left: 6px;
    }
    .blog-post-card .entry-summary {
        font-size: 0.92rem;
        line-height: 1.75;
    }
    .blog-post-card .entry-meta,
    .entry-meta,
    .post-meta-row {
        font-size: 0.78rem;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    .post-tag {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
    .single-post {
        padding-bottom: 3rem;
    }
    .single-post .entry-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    .single-post .entry-header {
        padding-top: 1.25rem;
        margin-bottom: 2rem;
    }
    .entry-thumbnail {
        margin: 0 0 1.75rem;
    }
    .entry-thumbnail img {
        max-height: 320px;
    }
    .entry-content {
        font-size: 1rem;
        line-height: 1.9;
    }
    .entry-content h2 {
        font-size: 1.7rem;
        margin: 2.25rem 0 1.1rem;
        padding-bottom: 0.6rem;
    }
    .entry-content h3 {
        font-size: 1.35rem;
        margin: 1.75rem 0 1rem;
        padding-left: 0.85rem;
        border-left-width: 3px;
    }
    .entry-content ul,
    .entry-content ol {
        padding-left: 1.2rem;
        margin-bottom: 1.75rem;
    }
    .entry-content figure {
        margin: 2rem 0;
    }
    .fact-check-badge {
        padding: 1rem;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    .fact-check-summary {
        padding-left: 0;
        font-size: 0.9rem;
    }
    .qa-title,
    .reference-title,
    .section-title {
        font-size: 1.35rem !important;
        margin-bottom: 1.5rem;
    }
    .qa-question {
        font-size: 1.05rem;
    }
    .qa-answer {
        font-size: 0.92rem;
        line-height: 1.75;
        padding-left: 1.25rem;
    }
    .related-title {
        font-size: 1.25rem;
    }
    .related-excerpt {
        font-size: 0.92rem;
        line-height: 1.7;
    }
    /* Comments */
    #comments,
    .comments-area {
        margin-top: 2.5rem;
    }
    .comments-area .comment-list {
        padding-left: 0;
        list-style: none;
    }
    .comments-area .children {
        padding-left: 1rem;
    }
    .comments-area .comment-body {
        font-size: 0.95rem;
    }
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* Pagination stacks */
    .pagination {
        margin-top: 3rem;
        padding: 3rem 0;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .pagination .page-numbers {
        padding: 0.55rem 0.95rem;
        font-size: 0.9rem;
    }
}

/* 8. Premium Blog Archive & Hero Section */
.blog-archive-premium {
    background: transparent;
}

.blog-hero {
    background: transparent;
    padding: 100px 0 80px;
    position: relative;
    color: var(--primary-color);
    margin-bottom: 6rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    display: none; /* 移除白底下的遮罩 */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--brand-yellow);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.blog-hero .page-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--primary-color);
}

.blog-hero .page-title .dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--brand-yellow);
    margin-left: 8px;
    vertical-align: baseline;
}

.blog-hero .page-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.8;
}

/* Blog Post List Spacing */
.post-list {
    padding-top: 2rem;
}

.blog-post-card {
    margin-bottom: 140px; 
    padding-bottom: 70px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.blog-post-card:last-of-type {
    margin-bottom: 5rem;
    border-bottom: none;
}

/* Card Specifics (Tags & Meta) */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.post-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #f5f5f5;
    color: #888;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.post-tag:hover,
.blog-post-card a.post-tag:hover {
    background: var(--brand-yellow);
    color: #000;
    border-color: var(--brand-yellow);
    transform: none;
    box-shadow: none;
}

.blog-post-card .entry-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem; /* 緊湊標籤與標題 */
}

.blog-post-card .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem; /* 緊湊標題與摘要 */
    letter-spacing: -0.02em;
}

.blog-post-card .entry-title a {
    transition: color 0.3s ease;
    display: block;
    position: relative;
}

/* 簽名像素飾點 */
.blog-post-card .entry-title a::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--brand-yellow);
    margin-left: 10px;
    vertical-align: baseline;
}

.blog-post-card a:hover {
    color: var(--brand-yellow);
}

.blog-post-card .entry-summary {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
    max-width: 750px;
}

/* Pagination Style */
.pagination {
    margin-top: 6rem;
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.pagination .page-numbers {
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #000;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
