/* Path: /wp-content/plugins/jct-unstructured-data-converter/assets/css/timeline-v2.css */
/* Version: 1.0.0 */

/* =========================================================================
   JCT 時間軸 V2 前台樣式
   RWD 設計：手機優先，圖片垂直排列
   ========================================================================= */

/* ---- 外層容器 ---- */
.jct-timeline-v2-wrapper {
    position: relative;
    padding-left: 28px;
    margin: 24px 0;
}

/* 左側垂直連接線 */
.jct-timeline-v2-wrapper::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    bottom: 8px;
    width: 2px;
    background: #e0e0e0;
}

/* ---- 單一節點 ---- */
.jct-v2-item {
    position: relative;
    margin-bottom: 28px;
}

/* ---- 時間圓點 ---- */
.jct-v2-dot {
    position: absolute;
    left: -24px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #0073aa;
    z-index: 2;
    box-shadow: 0 0 0 3px #fff;
}

/* 最新一筆：實心紅圈 */
.jct-v2-item--latest .jct-v2-dot {
    border-color: #d63638;
    background: #d63638;
}

/* 重大更新：實心橘紅圈 */
.jct-v2-item--highlight .jct-v2-dot {
    border-color: #d63638;
    background: #ff6b35;
}

/* ---- 卡片主體 ---- */
.jct-v2-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    transition: box-shadow 0.2s ease;
}

.jct-v2-item--highlight .jct-v2-card {
    border-color: #d63638;
    background: #fff9f9;
}

/* ---- 日期列 ---- */
.jct-v2-date-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

/* 重大更新 badge */
.jct-v2-highlight-badge {
    display: inline-block;
    background: #d63638;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

/* 時間文字 */
.jct-v2-date {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.3px;
}

/* ---- 標題 ---- */
.jct-v2-title {
    margin: 0 0 8px 0 !important;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

/* ---- 內容（清單、段落） ---- */
.jct-v2-content {
    font-size: 0.9em;
    line-height: 1.7;
    color: #444;
}

.jct-v2-content p {
    margin: 0 0 0.6em 0;
}

.jct-v2-content p:last-child {
    margin-bottom: 0;
}

.jct-v2-content ul,
.jct-v2-content ol {
    margin: 0.4em 0 0.6em 1.4em;
    padding: 0;
}

.jct-v2-content li {
    margin-bottom: 0.3em;
}

/* ---- 文章資訊卡容器 ---- */
.jct-v2-post-cards {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- 圖片（垂直排列，手機全寬） ---- */
.jct-v2-images {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jct-v2-images img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

/* ---- RWD 桌機：限制圖片最大寬度 ---- */
@media (min-width: 768px) {
    .jct-timeline-v2-wrapper {
        padding-left: 36px;
    }

    .jct-v2-dot {
        left: -30px;
        width: 16px;
        height: 16px;
    }

    .jct-v2-images img {
        max-width: 680px;
    }

    .jct-v2-card {
        padding: 16px 22px;
    }

    .jct-v2-title {
        font-size: 1.05em;
    }

    .jct-v2-content {
        font-size: 0.95em;
    }
}

/* ---- 手機版微調 ---- */
@media (max-width: 600px) {
    .jct-timeline-v2-wrapper {
        padding-left: 22px;
    }

    .jct-v2-dot {
        left: -18px;
    }

    .jct-v2-card {
        padding: 12px 14px;
    }
}
