/*
 * tips252/style.css  v1.0.1
 * 텔레그램 봇 대화선택 가이드 전용 스타일
 * 그누보드5 CSS 완전 격리 | BEM 네이밍 | 모바일 퍼스트
 */

/* ==============================================
   그누보드5 기존 CSS 충돌 방지 - 완전 리셋
   ============================================== */
#tg-252-wrapper,
#tg-252-wrapper *,
#tg-252-wrapper *::before,
#tg-252-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
    background: none;
    font-style: normal;
}

#tg-252-wrapper h1,
#tg-252-wrapper h2,
#tg-252-wrapper h3,
#tg-252-wrapper h4,
#tg-252-wrapper h5,
#tg-252-wrapper h6 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.3;
}

#tg-252-wrapper p {
    margin-bottom: 14px !important;
    line-height: 1.75 !important;
}
#tg-252-wrapper p:last-child {
    margin-bottom: 0 !important;
}

/* ==============================================
   CSS 변수 (Design Tokens)
   ============================================== */
#tg-252-wrapper {
    --blue-600:  #2283dd;
    --blue-700:  #1a6dc0;
    --blue-900:  #0c3461;
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --green-500: #22c55e;
    --text-main: #1e293b;
    --text-sub:  #475569;
    --border-r:  14px;
    --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 40px rgba(34,131,221,0.13);
}

/* ==============================================
   최상위 래퍼 (와이드 레이아웃)
   ============================================== */
#tg-252-wrapper.tg-252-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--text-main);
    line-height: 1.75;
    background-color: var(--slate-50);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ==============================================
   히어로 헤더
   ============================================== */
#tg-252-wrapper .tg-252-hero {
    position: relative;
    background: linear-gradient(135deg, #1a6dc0 0%, #0c3461 100%);
    padding: 52px 24px 48px;
    text-align: center;
    overflow: hidden;
}

#tg-252-wrapper .tg-252-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(34,131,221,0.3) 0%, transparent 50%);
    pointer-events: none;
}

#tg-252-wrapper .tg-252-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#tg-252-wrapper .tg-252-hero__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}

#tg-252-wrapper .tg-252-hero__icon-flow {
    display: flex;
    align-items: center;
    gap: 14px;
}

#tg-252-wrapper .tg-252-hero__icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 14px;
}

#tg-252-wrapper .tg-252-hero__icon-box--mid {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
}

#tg-252-wrapper .tg-252-hero__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff !important;
    line-height: 1.35;
    word-break: keep-all;
}

#tg-252-wrapper .tg-252-hero__subtitle {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.88) !important;
    font-weight: 400;
    word-break: keep-all;
    max-width: 700px;
}

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

#tg-252-wrapper .tg-252-hero__tag {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==============================================
   메인 콘텐츠 영역
   ============================================== */
#tg-252-wrapper .tg-252-main {
    background: #fff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ==============================================
   도입부
   ============================================== */
#tg-252-wrapper .tg-252-intro {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 28px 24px;
    text-align: center;
}

#tg-252-wrapper .tg-252-intro__icon {
    margin-bottom: 12px;
}

#tg-252-wrapper .tg-252-intro__heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--amber-500) !important;
    margin-bottom: 14px;
}

#tg-252-wrapper .tg-252-intro p {
    color: var(--text-sub) !important;
    font-size: 0.97rem;
    word-break: keep-all;
    text-align: left;
}

/* ==============================================
   일반 섹션
   ============================================== */
#tg-252-wrapper .tg-252-section {
    background: #fff;
}

#tg-252-wrapper .tg-252-section__label {
    display: inline-flex;
    align-items: center;
    background: var(--blue-600);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

#tg-252-wrapper .tg-252-section__title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--slate-800) !important;
    border-left: 4px solid var(--blue-600);
    padding-left: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
    word-break: keep-all;
}

#tg-252-wrapper .tg-252-section p {
    color: var(--text-sub) !important;
    font-size: 0.97rem;
    word-break: keep-all;
}

/* ==============================================
   체크 리스트
   ============================================== */
#tg-252-wrapper .tg-252-check-list {
    background: #f1f8ff;
    border: 1px solid #d0e8ff;
    border-radius: 12px;
    padding: 20px 22px;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#tg-252-wrapper .tg-252-check-list__item {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-main) !important;
    line-height: 1.5;
}

/* ==============================================
   기기별 카드 그리드
   ============================================== */
#tg-252-wrapper .tg-252-device-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}

#tg-252-wrapper .tg-252-device-card {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 22px 20px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#tg-252-wrapper .tg-252-device-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-600);
}

#tg-252-wrapper .tg-252-device-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

#tg-252-wrapper .tg-252-device-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
}

#tg-252-wrapper .tg-252-device-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    line-height: 1.4;
}

#tg-252-wrapper .tg-252-device-card__title small {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-sub) !important;
    margin-top: 2px;
}

/* ==============================================
   단계 목록
   ============================================== */
#tg-252-wrapper .tg-252-steps {
    counter-reset: step252;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#tg-252-wrapper .tg-252-steps__item {
    counter-increment: step252;
    position: relative;
    padding-left: 32px;
    font-size: 0.9rem;
    color: var(--text-sub) !important;
    line-height: 1.55;
}

#tg-252-wrapper .tg-252-steps__item::before {
    content: counter(step252);
    position: absolute;
    left: 0;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--blue-600) !important;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 50%;
}

#tg-252-wrapper .tg-252-steps__item strong {
    color: var(--blue-700) !important;
    font-weight: 700;
}

/* ==============================================
   활용 팁 카드 그리드
   ============================================== */
#tg-252-wrapper .tg-252-tip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

#tg-252-wrapper .tg-252-tip-card {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 22px 20px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

#tg-252-wrapper .tg-252-tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

#tg-252-wrapper .tg-252-tip-card__icon {
    margin-bottom: 10px;
}

#tg-252-wrapper .tg-252-tip-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    margin-bottom: 10px;
}

#tg-252-wrapper .tg-252-tip-card p {
    font-size: 0.92rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
}

/* ==============================================
   결론 및 요약 (다크 섹션)
   ============================================== */
#tg-252-wrapper .tg-252-summary {
    background: linear-gradient(150deg, var(--slate-900) 0%, var(--blue-900) 100%) !important;
    border-radius: var(--border-r);
    padding: 44px 24px;
    text-align: center;
}

#tg-252-wrapper .tg-252-summary__title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff !important;
    margin-bottom: 30px;
}

/* 요약 프로세스 플로우 */
#tg-252-wrapper .tg-252-summary__flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

#tg-252-wrapper .tg-252-summary__flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#tg-252-wrapper .tg-252-summary__flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 1.4rem;
    color: #fff !important;
}

#tg-252-wrapper .tg-252-summary__flow-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-300) !important;
}

#tg-252-wrapper .tg-252-summary__flow-arrow {
    color: rgba(255,255,255,0.35) !important;
    font-size: 1rem;
}

/* 체크리스트 */
#tg-252-wrapper .tg-252-summary__checklist {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#tg-252-wrapper .tg-252-summary__checklist li {
    font-size: 0.93rem;
    color: var(--slate-300) !important;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

#tg-252-wrapper .tg-252-summary__checklist li strong {
    color: #fff !important;
    font-weight: 700;
}

#tg-252-wrapper .tg-252-summary__desc {
    font-size: 0.93rem;
    color: var(--slate-300) !important;
    word-break: keep-all;
    max-width: 700px;
    margin: 0 auto;
}

/* 푸터 버튼 */
#tg-252-wrapper .tg-252-footer {
    margin-top: 30px;
}

#tg-252-wrapper .tg-252-footer__btn {
    display: inline-flex;
    align-items: center;
    background: #fff !important;
    color: var(--blue-700) !important;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 13px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#tg-252-wrapper .tg-252-footer__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

/* ==============================================
   스크롤 등장 애니메이션
   ============================================== */
#tg-252-wrapper .tg-252-motion {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

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

/* ==============================================
   반응형: 태블릿 (640px 이상)
   ============================================== */
@media (min-width: 640px) {
    #tg-252-wrapper .tg-252-hero {
        padding: 64px 40px 56px;
    }

    #tg-252-wrapper .tg-252-hero__title {
        font-size: 2rem;
    }

    #tg-252-wrapper .tg-252-main {
        padding: 50px 36px;
        gap: 50px;
    }

    #tg-252-wrapper .tg-252-device-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #tg-252-wrapper .tg-252-tip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #tg-252-wrapper .tg-252-summary {
        padding: 56px 40px;
    }
}

/* ==============================================
   반응형: 데스크톱 (900px 이상)
   ============================================== */
@media (min-width: 900px) {
    #tg-252-wrapper .tg-252-hero__title {
        font-size: 2.3rem;
    }

    #tg-252-wrapper .tg-252-device-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #tg-252-wrapper .tg-252-section__title {
        font-size: 1.4rem;
    }
}
