/**
 * Cight Content System Styles
 * 테마의 CSS 변수(--blue, --text 등)를 활용
 */

/* ===== 포스트 메타 정보 (상단) ===== */
.cight-post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg2, #F5F8FA);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text2, #555);
}

.cight-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ===== 핵심 요약 ===== */
.cight-summary {
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--blue-light, #E8F7FF);
    border-left: 4px solid var(--blue, #00AEFF);
    border-radius: 0 12px 12px 0;
}

.cight-summary-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue, #00AEFF);
    margin-bottom: 8px;
}

.cight-summary p:last-child {
    font-size: 15px;
    color: var(--text, #1A1A1A);
    line-height: 1.7;
    margin: 0;
}

/* ===== 목차 (TOC) ===== */
.cight-toc {
    margin-bottom: 36px;
    padding: 24px 28px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #E8ECF0);
    border-radius: 16px;
}

.cight-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    margin-bottom: 12px;
}

.cight-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cight-toc li {
    margin-bottom: 6px;
}

.cight-toc li a {
    font-size: 15px;
    color: var(--text2, #555);
    text-decoration: none;
    transition: color .2s;
    display: inline-block;
    padding: 4px 0;
}

.cight-toc li a:hover {
    color: var(--blue, #00AEFF);
}

.cight-toc li.toc-sub {
    padding-left: 20px;
}

.cight-toc li.toc-sub a {
    font-size: 14px;
    color: var(--text3, #888);
}

.cight-toc li.toc-sub a::before {
    content: '└ ';
    color: var(--border, #E8ECF0);
}

/* ===== 포스트 CTA ===== */
.cight-post-cta {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, #001824, #002f47);
    border-radius: 16px;
    text-align: center;
}

.cight-post-cta .btn1 {
    display: inline-flex;
    font-size: 17px;
}

/* ===== 관련 글 ===== */
.cight-related {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border, #E8ECF0);
}

.cight-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    margin-bottom: 24px;
}

.cight-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cight-related-card {
    display: block;
    text-decoration: none;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #E8ECF0);
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s;
}

.cight-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    border-color: var(--blue, #00AEFF);
}

.cight-related-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.cight-related-body {
    padding: 16px;
}

.cight-related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #1A1A1A);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cight-related-meta {
    font-size: 13px;
    color: var(--text3, #888);
}

/* ===== 시리즈 네비게이션 ===== */
.cight-series-nav {
    margin-top: 40px;
    padding: 24px 28px;
    background: var(--bg2, #F5F8FA);
    border-radius: 16px;
    border: 1px solid var(--border, #E8ECF0);
}

.cight-series-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    margin-bottom: 16px;
}

.cight-series-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: series;
}

.cight-series-nav li {
    counter-increment: series;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #E8ECF0);
    font-size: 15px;
    color: var(--text2, #555);
}

.cight-series-nav li:last-child {
    border-bottom: none;
}

.cight-series-nav li::before {
    content: counter(series) '. ';
    font-weight: 600;
    color: var(--blue, #00AEFF);
    margin-right: 4px;
}

.cight-series-nav li.current {
    background: var(--blue-light, #E8F7FF);
    margin: 0 -28px;
    padding: 10px 28px;
    border-radius: 8px;
}

.cight-series-nav li a {
    color: var(--text2, #555);
    text-decoration: none;
    transition: color .2s;
}

.cight-series-nav li a:hover {
    color: var(--blue, #00AEFF);
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .cight-related-grid {
        grid-template-columns: 1fr;
    }

    .cight-post-info {
        gap: 10px;
    }

    .cight-series-nav li.current {
        margin: 0 -16px;
        padding: 10px 16px;
    }
}
