@charset "utf-8";

/* ============================================
   텔레그램 IT 채널 추천 TOP 3 가이드
   접두사: tg-it- (기존 사이트 오염 방지)
   컬러 톤: 일렉트릭 블루(Electric Blue) + 다크
============================================ */

:root {
    --tgi-blue: #2563eb;
    --tgi-blue-dark: #1d4ed8;
    --tgi-blue-deep: #1e3a5f;
    --tgi-blue-light: #eff6ff;
    --tgi-blue-border: #93c5fd;
    --tgi-indigo: #4f46e5;
    --tgi-cyan: #06b6d4;
    --tgi-slate-900: #0f172a;
    --tgi-slate-700: #334155;
    --tgi-slate-500: #64748b;
    --tgi-slate-200: #e2e8f0;
    --tgi-slate-100: #f1f5f9;
    --tgi-bg: #f8f9fd;
    --tgi-white: #ffffff;
    --tgi-amber: #f59e0b;
    --tgi-amber-light: #fffbeb;
    --tgi-amber-border: #fde68a;
    --tgi-green: #059669;
    --tgi-rose: #e11d48;
    --tgi-purple: #7c3aed;
    --tgi-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-it-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 35%, #2563eb 75%, #60a5fa 100%);
    color: var(--tgi-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-it-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

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

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

.tg-it-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tgi-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-it-hero__badge i {
    font-size: 16px;
    color: var(--tgi-cyan);
}

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

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

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

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

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

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

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

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

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

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

.tg-it-section__icon--amber {
    background: linear-gradient(135deg, var(--tgi-amber) 0%, #fbbf24 100%);
}

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

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

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

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

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

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

.tg-it-card__content {
    flex: 1;
    padding: 22px;
}

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

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

.tg-it-card__avatar--official {
    background: linear-gradient(135deg, #0088cc 0%, #0ea5e9 100%);
}

.tg-it-card__avatar--geek {
    background: linear-gradient(135deg, var(--tgi-purple) 0%, #a78bfa 100%);
}

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

.tg-it-card__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--tgi-slate-900);
}

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

.tg-it-card__org i {
    font-size: 10px;
    color: var(--tgi-blue);
}

/* 서브타이틀 (카테고리) */
.tg-it-card__subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--tgi-blue);
    background-color: var(--tgi-blue-light);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

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

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

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

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

/* ─── 스텝 리스트 (꿀팁) ─── */
.tg-it-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-it-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--tgi-white);
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--tgi-amber-border);
    transition: border-left-color 0.2s ease;
}

.tg-it-step:hover {
    border-left-color: var(--tgi-amber);
}

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

.tg-it-step__text {
    font-size: 15px;
    padding-top: 3px;
    color: #92400e;
}

.tg-it-section--tip .tg-it-section__desc {
    color: #92400e;
}

.tg-it-section--tip strong {
    color: #78350f;
}

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

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

.tg-it-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #93c5fd;
}

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

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

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

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

/* FontAwesome 체크마크 */
.tg-it-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(--tgi-cyan);
}

.tg-it-summary__checklist strong {
    color: var(--tgi-white);
}

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

.tg-it-summary__footer strong {
    color: var(--tgi-white);
}

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

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

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

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

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

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

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

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

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

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