@charset "utf-8";

/* ============================================
   텔레그램 채널 만들기 가이드
   접두사: tg-mgr- (기존 사이트 오염 방지)
   컬러 톤: 틸(Teal) + 슬레이트
============================================ */

:root {
    --tgm-teal: #0d9488;
    --tgm-teal-dark: #0f766e;
    --tgm-teal-deep: #134e4a;
    --tgm-teal-light: #f0fdfa;
    --tgm-teal-border: #5eead4;
    --tgm-cyan: #06b6d4;
    --tgm-slate-900: #0f172a;
    --tgm-slate-700: #334155;
    --tgm-slate-500: #64748b;
    --tgm-slate-200: #e2e8f0;
    --tgm-slate-100: #f1f5f9;
    --tgm-bg: #f8fafa;
    --tgm-white: #ffffff;
    --tgm-amber: #f59e0b;
    --tgm-amber-light: #fffbeb;
    --tgm-amber-border: #fde68a;
    --tgm-blue: #2563eb;
    --tgm-rose: #e11d48;
    --tgm-radius: 14px;
}

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

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

.tg-mgr-wrapper strong {
    font-weight: 700;
    color: var(--tgm-slate-900);
}

.tg-mgr-wrapper mark {
    background: linear-gradient(120deg, var(--tgm-teal-light) 0%, #ccfbf1 100%);
    color: var(--tgm-teal-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 히어로 헤더 ─── */
.tg-mgr-hero {
    background: linear-gradient(145deg, #0f172a 0%, #134e4a 40%, #0d9488 100%);
    color: var(--tgm-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-mgr-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 55px solid rgba(13, 148, 136, 0.08);
    border-radius: 50%;
    top: -90px;
    right: -90px;
}

.tg-mgr-hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 35px solid rgba(6, 182, 212, 0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -40px;
}

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

.tg-mgr-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tgm-white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.tg-mgr-hero__badge i {
    font-size: 16px;
    color: var(--tgm-teal-border);
}

.tg-mgr-hero__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 18px;
    color: var(--tgm-white);
}

.tg-mgr-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── 메인 ─── */
.tg-mgr-main {
    padding: 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─── 도입부 ─── */
.tg-mgr-intro {
    background-color: var(--tgm-white);
    padding: 28px 24px;
    border-radius: var(--tgm-radius);
    border-left: 4px solid var(--tgm-teal);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.tg-mgr-intro p {
    font-size: 16px;
    margin-bottom: 14px;
}

.tg-mgr-intro p:last-child {
    margin-bottom: 0;
}

/* ─── 섹션 공통 ─── */
.tg-mgr-section {
    background-color: var(--tgm-white);
    padding: 34px 24px;
    border-radius: var(--tgm-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--tgm-slate-200);
}

.tg-mgr-section--tip {
    background-color: var(--tgm-amber-light);
    border-color: var(--tgm-amber-border);
}

.tg-mgr-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.tg-mgr-section__num {
    font-size: 38px;
    font-weight: 900;
    color: var(--tgm-teal);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.tg-mgr-section__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tgm-amber) 0%, #fbbf24 100%);
    color: var(--tgm-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-mgr-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgm-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

.tg-mgr-section__desc {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ─── 특징 카드 (01) ─── */
.tg-mgr-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tg-mgr-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--tgm-slate-100);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-mgr-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.tg-mgr-feature__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgm-teal) 0%, var(--tgm-cyan) 100%);
    color: var(--tgm-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-mgr-feature__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgm-slate-900);
    margin-bottom: 4px;
}

.tg-mgr-feature__text {
    font-size: 14px;
}

/* ─── 스텝 리스트 (02) ─── */
.tg-mgr-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-mgr-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--tgm-slate-100);
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--tgm-teal-border);
    transition: border-left-color 0.2s ease;
}

.tg-mgr-step:hover {
    border-left-color: var(--tgm-teal);
}

.tg-mgr-step__marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgm-teal) 0%, var(--tgm-teal-dark) 100%);
    color: var(--tgm-white);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
}

.tg-mgr-step__text {
    font-size: 15px;
    padding-top: 3px;
}

.tg-mgr-step__text p {
    margin-bottom: 0;
}

/* ─── 공개/비공개 선택 UI ─── */
.tg-mgr-choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.tg-mgr-choice__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--tgm-slate-200);
}

.tg-mgr-choice__item--public {
    background-color: var(--tgm-teal-light);
    border-color: var(--tgm-teal-border);
}

.tg-mgr-choice__item--public>i {
    color: var(--tgm-teal);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tg-mgr-choice__item--private {
    background-color: #fef2f2;
    border-color: #fca5a5;
}

.tg-mgr-choice__item--private>i {
    color: var(--tgm-rose);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tg-mgr-choice__label {
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.tg-mgr-choice__desc {
    font-size: 13px;
    line-height: 1.5;
}

/* ─── 서브 섹션 (03) ─── */
.tg-mgr-subsection {
    background-color: var(--tgm-slate-100);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.tg-mgr-subsection:last-child {
    margin-bottom: 0;
}

.tg-mgr-subsection__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tgm-slate-900);
    margin-bottom: 10px;
}

.tg-mgr-subsection__title i {
    color: var(--tgm-teal);
    margin-right: 6px;
}

.tg-mgr-subsection__text {
    font-size: 15px;
    margin-bottom: 8px;
}

.tg-mgr-subsection__text:last-child {
    margin-bottom: 0;
}

/* ─── 꿀팁 카드 ─── */
.tg-mgr-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-mgr-tip {
    background-color: var(--tgm-white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--tgm-amber-border);
}

.tg-mgr-tip__icon {
    font-size: 24px;
    color: var(--tgm-amber);
    margin-bottom: 10px;
}

.tg-mgr-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.tg-mgr-tip__text {
    font-size: 14px;
    color: #a16207;
}

/* ─── 결론 및 요약 ─── */
.tg-mgr-summary {
    background: linear-gradient(135deg, #0f172a 0%, var(--tgm-teal-deep) 50%, var(--tgm-teal-dark) 100%);
    color: var(--tgm-white);
    padding: 44px 28px;
    border-radius: var(--tgm-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(19, 78, 74, 0.3);
}

.tg-mgr-summary__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--tgm-white);
    margin-bottom: 20px;
}

.tg-mgr-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #99f6e4;
}

.tg-mgr-summary__body p:last-child {
    margin-bottom: 0;
}

.tg-mgr-summary strong,
.tg-mgr-summary__body strong {
    color: var(--tgm-white);
}

/* 체크리스트 */
.tg-mgr-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.07);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 24px 0;
}

.tg-mgr-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #ccfbf1;
}

.tg-mgr-summary__checklist li:last-child {
    margin-bottom: 0;
}

/* FontAwesome 체크마크 */
.tg-mgr-summary__checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 13px;
    color: var(--tgm-teal-border);
}

.tg-mgr-summary__checklist strong {
    color: var(--tgm-white);
}

.tg-mgr-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #5eead4;
    line-height: 1.8;
}

.tg-mgr-summary__footer strong {
    color: var(--tgm-white);
}

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

    .tg-mgr-hero__title {
        font-size: 38px;
    }

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

    .tg-mgr-intro {
        padding: 36px 32px;
    }

    .tg-mgr-section {
        padding: 40px 36px;
    }

    .tg-mgr-section__title {
        font-size: 24px;
    }

    .tg-mgr-section__num {
        font-size: 44px;
    }

    /* 특징 3열 */
    .tg-mgr-features {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 공개/비공개 2열 */
    .tg-mgr-choice {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 꿀팁 2열 */
    .tg-mgr-tips {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-mgr-summary {
        padding: 56px 44px;
    }
}

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

    .tg-mgr-main {
        gap: 46px;
    }
}

/* ============================================
   스크롤 등장 애니메이션 (JS 연동)
============================================ */
.tg-mgr-motion {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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