@charset "utf-8";

/* ============================================
   텔레그램 폴더 아이콘 가이드
   접두사: tg-fld- (기존 사이트 오염 방지)
   CSS 변수 접두사: --tgfl-
   컬러 톤: 에메랄드(Emerald) + 골드(Gold) + 딥 그린(Deep Green)
============================================ */

:root {
    --tgfl-emerald: #059669;
    --tgfl-emerald-dark: #047857;
    --tgfl-emerald-deep: #022c22;
    --tgfl-emerald-light: #ecfdf5;
    --tgfl-emerald-border: #6ee7b7;
    --tgfl-gold: #d97706;
    --tgfl-gold-light: #fffbeb;
    --tgfl-gold-border: #fde68a;
    --tgfl-gold-bright: #fbbf24;
    --tgfl-slate-900: #0f172a;
    --tgfl-slate-700: #334155;
    --tgfl-slate-500: #64748b;
    --tgfl-slate-300: #cbd5e1;
    --tgfl-slate-200: #e2e8f0;
    --tgfl-slate-100: #f1f5f9;
    --tgfl-bg: #f0faf5;
    --tgfl-white: #ffffff;
    --tgfl-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-fld-hero {
    background: linear-gradient(145deg, #020617 0%, #022c22 30%, #059669 65%, #34d399 100%);
    color: var(--tgfl-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-fld-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(5, 150, 105, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-fld-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(110, 231, 183, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

/* 플로팅 아이콘 장식 */
.tg-fld-hero__floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.tg-fld-hero__float-icon {
    position: absolute;
    font-size: 28px;
    opacity: 0.18;
    animation: tg-fld-float 6s ease-in-out infinite;
}

.tg-fld-hero__float-icon--1 {
    top: 14%;
    left: 8%;
    animation-delay: 0s;
}

.tg-fld-hero__float-icon--2 {
    top: 20%;
    right: 12%;
    animation-delay: 1s;
    font-size: 24px;
}

.tg-fld-hero__float-icon--3 {
    bottom: 22%;
    left: 15%;
    animation-delay: 2s;
}

.tg-fld-hero__float-icon--4 {
    bottom: 16%;
    right: 8%;
    animation-delay: 3s;
    font-size: 22px;
}

.tg-fld-hero__float-icon--5 {
    top: 55%;
    left: 4%;
    animation-delay: 4s;
    font-size: 20px;
}

.tg-fld-hero__float-icon--6 {
    top: 10%;
    right: 30%;
    animation-delay: 5s;
    font-size: 18px;
}

@keyframes tg-fld-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

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

.tg-fld-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(5, 150, 105, 0.15);
    color: var(--tgfl-emerald-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(110, 231, 183, 0.15);
    backdrop-filter: blur(4px);
}

.tg-fld-hero__badge i {
    font-size: 16px;
}

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

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

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

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

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

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

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

.tg-fld-section--accent {
    background: linear-gradient(135deg, var(--tgfl-emerald-light) 0%, #d1fae540 100%);
    border-color: var(--tgfl-emerald-border);
}

.tg-fld-section--dark {
    background: linear-gradient(135deg, var(--tgfl-slate-900) 0%, #1e293b 100%);
    border-color: var(--tgfl-slate-700);
    color: var(--tgfl-slate-300);
}

.tg-fld-section--demo {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    border-color: var(--tgfl-emerald-border);
}

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

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

.tg-fld-section__num--accent {
    color: var(--tgfl-emerald);
    opacity: 0.25;
}

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

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

.tg-fld-section__title--light {
    color: var(--tgfl-white);
}

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

/* ─── 5단계 스텝 카드 ─── */
.tg-fld-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-fld-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--tgfl-white);
    border: 1px solid var(--tgfl-emerald-border);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-fld-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.1);
}

.tg-fld-step__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgfl-emerald) 0%, var(--tgfl-emerald-dark) 100%);
    color: var(--tgfl-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tg-fld-step__body {
    flex: 1;
}

.tg-fld-step__num {
    font-size: 11px;
    font-weight: 800;
    color: var(--tgfl-emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.tg-fld-step__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgfl-slate-900);
    margin-bottom: 4px;
}

.tg-fld-step__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 아이콘 추천 카드 4열 ─── */
.tg-fld-icon-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-fld-icon-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid var(--tgfl-slate-200);
    background-color: var(--tgfl-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-fld-icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.1);
}

.tg-fld-icon-card__emoji {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* 카테고리별 아이콘 배경 및 색상 */
.tg-fld-icon-card--work .tg-fld-icon-card__emoji {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid var(--tgfl-emerald-border);
    color: var(--tgfl-emerald);
}

.tg-fld-icon-card--news .tg-fld-icon-card__emoji {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    color: #2563eb;
}

.tg-fld-icon-card--travel .tg-fld-icon-card__emoji {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid var(--tgfl-gold-border);
    color: var(--tgfl-gold);
}

.tg-fld-icon-card--private .tg-fld-icon-card__emoji {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border: 1px solid #c4b5fd;
    color: #7c3aed;
}

/* 아이콘 추천 카드 내 FA 아이콘 인라인 스타일 보정 */
.tg-fld-icon-card__icons i {
    margin-right: 2px;
    font-size: 13px;
    vertical-align: middle;
}

/* 사이드바 아이콘 기본 색상 */
.tg-fld-sidebar__icon i {
    color: var(--tgfl-slate-500);
    font-size: 18px;
}

/* 히어로 플로팅 아이콘 색상 (FA 전환) */
.tg-fld-hero__float-icon i {
    color: rgba(255, 255, 255, 0.9);
}

.tg-fld-icon-card__body {
    flex: 1;
}

.tg-fld-icon-card__category {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgfl-slate-900);
    margin-bottom: 4px;
}

.tg-fld-icon-card__icons {
    font-size: 14px;
    color: var(--tgfl-slate-500);
    margin-bottom: 8px;
}

.tg-fld-icon-card__effect {
    font-size: 13px;
    color: var(--tgfl-emerald-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-fld-icon-card__effect i {
    color: var(--tgfl-emerald);
    font-size: 12px;
}

/* ─── 사이드바 인터랙티브 데모 ─── */
.tg-fld-sidebar-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-fld-sidebar-demo__toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.tg-fld-sidebar-demo__mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--tgfl-slate-200);
    border-radius: 100px;
    background-color: var(--tgfl-white);
    color: var(--tgfl-slate-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tg-fld-sidebar-demo__mode-btn:hover {
    border-color: var(--tgfl-emerald-border);
    color: var(--tgfl-emerald);
}

.tg-fld-sidebar-demo__mode-btn--active {
    background-color: var(--tgfl-emerald);
    color: var(--tgfl-white);
    border-color: var(--tgfl-emerald);
}

.tg-fld-sidebar-demo__layout {
    display: flex;
    border: 1px solid var(--tgfl-slate-200);
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
    background-color: var(--tgfl-white);
}

/* 사이드바 */
.tg-fld-sidebar {
    display: flex;
    flex-direction: column;
    background-color: #f8fafb;
    border-right: 1px solid var(--tgfl-slate-200);
    width: 80px;
    flex-shrink: 0;
    transition: width 0.3s ease;
}

.tg-fld-sidebar--text-mode {
    width: 120px;
}

.tg-fld-sidebar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.tg-fld-sidebar__item:hover {
    background-color: #ecfdf5;
}

.tg-fld-sidebar__item--active {
    background-color: var(--tgfl-emerald-light);
    border-left-color: var(--tgfl-emerald);
}

.tg-fld-sidebar__icon {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.tg-fld-sidebar__item--active .tg-fld-sidebar__icon i {
    color: var(--tgfl-emerald);
}

.tg-fld-sidebar__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--tgfl-slate-500);
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 16px;
}

.tg-fld-sidebar__item--active .tg-fld-sidebar__label {
    color: var(--tgfl-emerald-dark);
}

/* 아이콘 전용 모드: 라벨 숨기기 */
.tg-fld-sidebar--icon-only .tg-fld-sidebar__label {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

/* 대화 미리보기 패널 */
.tg-fld-sidebar-demo__panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tg-fld-sidebar-demo__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tgfl-slate-200);
    background-color: #f8fafb;
}

.tg-fld-sidebar-demo__panel-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--tgfl-slate-900);
}

.tg-fld-sidebar-demo__panel-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--tgfl-white);
    background-color: var(--tgfl-emerald);
    padding: 2px 8px;
    border-radius: 100px;
}

.tg-fld-sidebar-demo__chat-list {
    flex: 1;
    overflow-y: auto;
}

/* 채팅 아이템 (JS 동적 생성) */
.tg-fld-chat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tgfl-slate-100);
    transition: background-color 0.15s ease;
    animation: tg-fld-chat-fadein 0.3s ease;
}

@keyframes tg-fld-chat-fadein {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tg-fld-chat-item:hover {
    background-color: #f0fdf4;
}

.tg-fld-chat-item__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--tgfl-white);
}

.tg-fld-chat-item__info {
    flex: 1;
    min-width: 0;
}

.tg-fld-chat-item__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tgfl-slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-fld-chat-item__msg {
    font-size: 12px;
    color: var(--tgfl-slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-fld-chat-item__time {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--tgfl-slate-300);
    font-weight: 600;
}

/* ─── 직장인 팁 2열 ─── */
.tg-fld-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-fld-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

.tg-fld-tip__number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgfl-gold) 0%, var(--tgfl-gold-bright) 100%);
    color: var(--tgfl-white);
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tg-fld-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgfl-white);
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-fld-tip__title i {
    color: var(--tgfl-emerald-border);
    margin-right: 4px;
}

.tg-fld-tip__text {
    font-size: 14px;
    color: var(--tgfl-slate-300);
}

.tg-fld-tip__text strong {
    color: var(--tgfl-white);
}

/* ─── 결론 및 요약 ─── */
.tg-fld-summary {
    background: linear-gradient(135deg, #020617 0%, var(--tgfl-emerald-deep) 50%, var(--tgfl-emerald-dark) 100%);
    color: var(--tgfl-white);
    padding: 44px 28px;
    border-radius: var(--tgfl-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(2, 44, 34, 0.4);
}

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

.tg-fld-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgfl-emerald-border);
}

.tg-fld-summary strong {
    color: var(--tgfl-white);
}

/* 하이라이트 3열 */
.tg-fld-summary__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
}

.tg-fld-summary__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.12);
    border-radius: 10px;
}

.tg-fld-summary__highlight-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tgfl-emerald) 0%, #34d399 100%);
    color: var(--tgfl-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-fld-summary__highlight strong {
    font-size: 13px;
    color: var(--tgfl-white);
}

.tg-fld-summary__highlight span {
    font-size: 11px;
    color: var(--tgfl-emerald-border);
    text-align: center;
}

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

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

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

.tg-fld-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(--tgfl-emerald-border);
}

.tg-fld-summary__checklist strong {
    color: var(--tgfl-white);
}

.tg-fld-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--tgfl-emerald-border);
    line-height: 1.8;
}

.tg-fld-summary__footer strong {
    color: var(--tgfl-white);
}

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

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

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

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

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

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

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

    /* 아이콘 추천 카드 2열 */
    .tg-fld-icon-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* 하이라이트 3열 */
    .tg-fld-summary__highlights {
        grid-template-columns: repeat(3, 1fr);
    }

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

    /* 사이드바 데모 더 넓게 */
    .tg-fld-sidebar-demo__layout {
        min-height: 380px;
    }
}

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

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

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