@charset "utf-8";

/* ============================================
   텔레그램 폴더 가이드 - 매거진/에디토리얼 스타일
   접두사: tg-chat- (기존 사이트 오염 방지)
============================================ */

:root {
    /* 인디고-바이올렛 컬러 팔레트 */
    --tgc-primary: #6366f1;
    --tgc-primary-light: #818cf8;
    --tgc-primary-dark: #4f46e5;
    --tgc-accent: #f59e0b;
    --tgc-accent-light: #fef3c7;

    /* 중성 - 어둡고 세련된 톤 */
    --tgc-bg: #fafafa;
    --tgc-surface: #ffffff;
    --tgc-text: #18181b;
    --tgc-text-sub: #52525b;
    --tgc-border: #e4e4e7;
    --tgc-muted: #a1a1aa;

    --tgc-radius-sm: 8px;
    --tgc-radius-md: 14px;
    --tgc-radius-lg: 20px;
}

/* ─── 래퍼 초기화 ─── */
.tg-chat-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--tgc-text-sub);
    background-color: var(--tgc-bg);
    box-sizing: border-box;
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
}

.tg-chat-wrapper *,
.tg-chat-wrapper *::before,
.tg-chat-wrapper *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.tg-chat-wrapper strong {
    font-weight: 700;
    color: var(--tgc-text);
}

.tg-chat-wrapper mark {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.15) 0%, rgba(129, 140, 248, 0.2) 100%);
    color: var(--tgc-primary-dark);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 히어로 헤더 ─── */
.tg-chat-hero {
    background: linear-gradient(145deg, #312e81 0%, #4338ca 40%, #6366f1 100%);
    color: #fff;
    padding: 70px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 장식 파티클(CSS-only Decoration) */
.tg-chat-hero::before,
.tg-chat-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background-color: #fff;
}

.tg-chat-hero::before {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
}

.tg-chat-hero::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -40px;
}

.tg-chat-hero__inner {
    position: relative;
    z-index: 1;
}

.tg-chat-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
}

.tg-chat-hero__title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: -0.5px;
}

.tg-chat-hero__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 24px;
}

.tg-chat-hero__tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tg-chat-hero__tag {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

/* ─── 메인 영역 ─── */
.tg-chat-main {
    padding: 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ─── 도입부 리드(Lead) ─── */
.tg-chat-lead {
    background-color: var(--tgc-surface);
    padding: 28px 24px;
    border-radius: var(--tgc-radius-md);
    border-left: 4px solid var(--tgc-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tg-chat-lead__text {
    font-size: 16px;
    margin-bottom: 14px;
}

.tg-chat-lead__text:last-child {
    margin-bottom: 0;
}

/* ─── 섹션 공통 ─── */
.tg-chat-section {
    background-color: var(--tgc-surface);
    border-radius: var(--tgc-radius-lg);
    padding: 36px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--tgc-border);
}

.tg-chat-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tg-chat-section__number {
    font-size: 36px;
    font-weight: 900;
    color: var(--tgc-primary-light);
    line-height: 1;
    opacity: 0.5;
    font-family: 'Pretendard', monospace;
}

.tg-chat-section__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--tgc-text);
    line-height: 1.3;
}

.tg-chat-section__desc {
    font-size: 16px;
    margin-bottom: 28px;
}

/* ─── 01. 이점 설명 카드(Feature Cards) ─── */
.tg-chat-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-chat-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--tgc-bg);
    border-radius: var(--tgc-radius-sm);
    padding: 18px;
    transition: background-color 0.25s ease;
}

.tg-chat-feature:hover {
    background-color: #f0f0f5;
}

.tg-chat-feature__emoji {
    font-size: 30px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.tg-chat-feature__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--tgc-text);
    margin-bottom: 4px;
}

.tg-chat-feature__text {
    font-size: 15px;
}

/* ─── 02. 타임라인 스텝(Timeline) ─── */
.tg-chat-timeline {
    position: relative;
    padding-left: 28px;
}

/* 타임라인 수직 선 */
.tg-chat-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--tgc-primary-light), var(--tgc-border));
    border-radius: 2px;
}

.tg-chat-timeline__item {
    position: relative;
    margin-bottom: 20px;
}

.tg-chat-timeline__item:last-child {
    margin-bottom: 0;
}

/* 타임라인 도트(원형 장식) */
.tg-chat-timeline__dot {
    position: absolute;
    left: -24px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--tgc-primary);
    border: 3px solid var(--tgc-surface);
    box-shadow: 0 0 0 2px var(--tgc-primary-light);
}

.tg-chat-timeline__card {
    background-color: var(--tgc-bg);
    padding: 18px 20px;
    border-radius: var(--tgc-radius-sm);
    border: 1px solid var(--tgc-border);
}

.tg-chat-timeline__step {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--tgc-primary);
    background-color: rgba(99, 102, 241, 0.08);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tg-chat-timeline__text {
    font-size: 15px;
}

.tg-chat-timeline__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
    margin-top: 6px;
}

.tg-chat-timeline__label--add {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.tg-chat-timeline__label--remove {
    background-color: #fce7f3;
    color: #be185d;
}

/* ─── 03. 꿀팁 그리드(Tip Cards) ─── */
.tg-chat-tip-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-chat-tip-card {
    background-color: var(--tgc-bg);
    padding: 24px;
    border-radius: var(--tgc-radius-md);
    border: 1px solid var(--tgc-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-chat-tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.tg-chat-tip-card__icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.tg-chat-tip-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tgc-text);
    margin-bottom: 10px;
}

.tg-chat-tip-card__text {
    font-size: 15px;
    margin-bottom: 0;
}

/* 단축키 영역 */
.tg-chat-tip-card__keys {
    margin-top: 16px;
    background-color: var(--tgc-surface);
    padding: 18px;
    border-radius: var(--tgc-radius-sm);
    border: 1px dashed var(--tgc-border);
}

.tg-chat-key {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tg-chat-key__plus {
    font-weight: 700;
    color: var(--tgc-muted);
}

.tg-chat-key__dots {
    color: var(--tgc-muted);
    font-weight: 700;
}

.tg-chat-key__desc {
    font-size: 14px;
    color: var(--tgc-text-sub);
}

/* kbd 스타일 */
.tg-chat-kbd {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pretendard', monospace;
    color: var(--tgc-text);
    background-color: var(--tgc-surface);
    border: 1px solid #d1d5db;
    border-bottom: 3px solid #c1c5cb;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tg-chat-kbd--sm {
    padding: 2px 6px;
    font-size: 12px;
}

/* ─── 결론 영역 ─── */
.tg-chat-conclusion {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #fff;
    padding: 44px 28px;
    border-radius: var(--tgc-radius-lg);
    text-align: center;
    box-shadow: 0 10px 30px rgba(49, 46, 129, 0.25);
}

.tg-chat-conclusion__title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.tg-chat-conclusion__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #c7d2fe;
}

.tg-chat-conclusion__body p:last-child {
    margin-bottom: 0;
}

/* 결론 내부 강조 텍스트 가시성 보장 */
.tg-chat-conclusion strong,
.tg-chat-conclusion__body strong {
    color: #a5b4fc;
}

.tg-chat-conclusion__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.8;
}

.tg-chat-conclusion__footer strong {
    color: #fff;
}

/* ============================================
   반응형 미디어 쿼리 (모바일 퍼스트)
============================================ */
@media (min-width: 768px) {
    .tg-chat-hero {
        padding: 90px 40px 80px;
    }

    .tg-chat-hero__title {
        font-size: 40px;
    }

    .tg-chat-main {
        padding: 40px 36px 0;
        gap: 44px;
    }

    .tg-chat-lead {
        padding: 36px 32px;
    }

    .tg-chat-section {
        padding: 44px 36px;
    }

    .tg-chat-section__title {
        font-size: 26px;
    }

    /* 이점 카드 그리드 */
    .tg-chat-features {
        flex-direction: row;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .tg-chat-feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* 팁 카드 2열 그리드(마지막 가로 100%) */
    .tg-chat-tip-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-chat-tip-card--wide {
        grid-column: 1 / -1;
    }

    .tg-chat-conclusion {
        padding: 56px 44px;
    }
}

@media (min-width: 1024px) {
    .tg-chat-hero__title {
        font-size: 46px;
    }

    .tg-chat-main {
        gap: 50px;
    }

    .tg-chat-section__number {
        font-size: 44px;
    }
}

/* ============================================
   스크롤 트리거 애니메이션(JS 연동)
============================================ */
.tg-chat-motion {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-chat-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}