@charset "utf-8";

/* ============================================
   텔레그램 채널 추천 베스트 5 가이드
   접두사: tg-chan- (기존 사이트 오염 방지)
   컬러 톤: 골드(Gold) + 다크 슬레이트
============================================ */

:root {
    --tgch-gold: #d97706;
    --tgch-gold-dark: #b45309;
    --tgch-gold-deep: #78350f;
    --tgch-gold-light: #fffbeb;
    --tgch-gold-border: #fcd34d;
    --tgch-amber: #f59e0b;
    --tgch-amber-light: #fef3c7;
    --tgch-slate-900: #0f172a;
    --tgch-slate-700: #334155;
    --tgch-slate-500: #64748b;
    --tgch-slate-200: #e2e8f0;
    --tgch-slate-100: #f1f5f9;
    --tgch-bg: #faf9f7;
    --tgch-white: #ffffff;
    --tgch-blue: #2563eb;
    --tgch-green: #059669;
    --tgch-purple: #7c3aed;
    --tgch-rose: #e11d48;
    --tgch-teal: #0d9488;
    --tgch-radius: 14px;
}

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

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

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

.tg-chan-wrapper mark {
    background: linear-gradient(120deg, var(--tgch-gold-light) 0%, var(--tgch-amber-light) 100%);
    color: var(--tgch-gold-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.tg-chan-wrapper code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: var(--tgch-slate-100);
    color: var(--tgch-gold-dark);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid var(--tgch-slate-200);
}

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

.tg-chan-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 55px solid rgba(217, 119, 6, 0.08);
    border-radius: 50%;
    top: -90px;
    right: -90px;
}

.tg-chan-hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 35px solid rgba(245, 158, 11, 0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -40px;
}

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

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

.tg-chan-hero__badge i {
    font-size: 16px;
    color: var(--tgch-gold-border);
}

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

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

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

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

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

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

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

.tg-chan-section__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

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

.tg-chan-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgch-slate-900);
    line-height: 1.35;
}

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

/* ─── 채널 카드 리스트 ─── */
.tg-chan-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-chan-card {
    display: flex;
    gap: 0;
    background-color: var(--tgch-slate-100);
    border-radius: 12px;
    border: 1px solid var(--tgch-slate-200);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-chan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* 랭크 넘버 바 */
.tg-chan-card__rank {
    flex-shrink: 0;
    width: 48px;
    background: linear-gradient(180deg, var(--tgch-gold) 0%, var(--tgch-gold-dark) 100%);
    color: var(--tgch-white);
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-chan-card__content {
    flex: 1;
    padding: 20px;
}

.tg-chan-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* 아바타 아이콘 */
.tg-chan-card__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--tgch-white);
}

.tg-chan-card__avatar--finance {
    background: linear-gradient(135deg, var(--tgch-blue) 0%, #3b82f6 100%);
}

.tg-chan-card__avatar--data {
    background: linear-gradient(135deg, var(--tgch-green) 0%, #34d399 100%);
}

.tg-chan-card__avatar--startup {
    background: linear-gradient(135deg, var(--tgch-rose) 0%, #f97316 100%);
}

.tg-chan-card__avatar--tech {
    background: linear-gradient(135deg, var(--tgch-purple) 0%, #a78bfa 100%);
}

.tg-chan-card__name {
    font-size: 17px;
    font-weight: 800;
    color: var(--tgch-slate-900);
}

.tg-chan-card__org {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tgch-slate-500);
    margin-top: 2px;
}

.tg-chan-card__org i {
    font-size: 10px;
    color: var(--tgch-gold);
}

.tg-chan-card__desc {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
}

/* 채널 링크 버튼 */
.tg-chan-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tgch-blue);
    text-decoration: none;
    background-color: var(--tgch-white);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--tgch-slate-200);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tg-chan-card__link:hover {
    background-color: var(--tgch-blue);
    color: var(--tgch-white);
    border-color: var(--tgch-blue);
}

.tg-chan-card__link i {
    font-size: 11px;
}

/* ─── 꿀팁 섹션 ─── */
.tg-chan-tips {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-chan-tip {
    background-color: var(--tgch-gold-light);
    border: 1px solid var(--tgch-gold-border);
    border-radius: 12px;
    padding: 22px;
}

.tg-chan-tip__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tg-chan-tip__badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--tgch-white);
    background: linear-gradient(135deg, var(--tgch-gold) 0%, var(--tgch-amber) 100%);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.tg-chan-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgch-gold-deep);
}

.tg-chan-tip__title i {
    color: var(--tgch-gold);
    margin-right: 4px;
}

.tg-chan-tip__text {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 0;
}

/* 팁 내 순서 리스트 */
.tg-chan-tip__steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    counter-reset: tip-step;
}

.tg-chan-tip__steps li {
    counter-increment: tip-step;
    position: relative;
    padding-left: 32px;
    font-size: 14px;
    color: #92400e;
}

.tg-chan-tip__steps li::before {
    content: counter(tip-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--tgch-gold) 0%, var(--tgch-amber) 100%);
    color: var(--tgch-white);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

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

.tg-chan-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #fde68a;
}

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

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

/* 체크리스트 */
.tg-chan-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-chan-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #fef3c7;
}

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

/* FontAwesome 체크마크 */
.tg-chan-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(--tgch-gold-border);
}

.tg-chan-summary__checklist strong {
    color: var(--tgch-white);
}

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

.tg-chan-summary__footer strong {
    color: var(--tgch-white);
}

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

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

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

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

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

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

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

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

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

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

/* ============================================
   스크롤 등장 애니메이션 (JS 연동)
============================================ */
.tg-chan-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-chan-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}