/*
 * tips355/style.css  v1.0.0
 * 텔레그램 서비스 메시지 리액션 가이드
 * 테마: 에메랄드/틸 + 딥 다크 (채팅·리액션·소통)
 * 그누보드5 격리 | BEM | 모바일 퍼스트
 */

/* ─── 전체 리셋 ─── */
#tg-355-wrapper,
#tg-355-wrapper * {
    box-sizing: border-box; margin: 0; padding: 0; border: none;
    outline: none; text-decoration: none; list-style: none; background: none; font-style: normal;
}
#tg-355-wrapper h1, #tg-355-wrapper h2 { font-size: inherit; font-weight: inherit; color: inherit; line-height: 1.35; }
#tg-355-wrapper strong { font-weight: 700; color: inherit; }
#tg-355-wrapper p { margin-bottom: 14px !important; line-height: 1.85 !important; }
#tg-355-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-355-wrapper button { cursor: pointer; }
#tg-355-wrapper a { color: inherit; }
#tg-355-wrapper ol { list-style: none; }
#tg-355-wrapper kbd {
    display: inline-block; padding: 2px 7px; border-radius: 5px;
    background: var(--sl-100); border: 1px solid var(--sl-200);
    font-family: 'Consolas', monospace; font-size: .82rem;
    color: var(--sl-800); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}

/* ─── 디자인 토큰 ─── */
#tg-355-wrapper {
    --eme-100: #ccfbf1;
    --eme-200: #99f6e4;
    --eme-300: #5eead4;
    --eme-400: #2dd4bf;
    --eme-500: #14b8a6;
    --eme-600: #0d9488;
    --eme-700: #0f766e;
    --teal-400: #22d3ee;
    --pink-400: #f472b6;
    --gold-300: #fcd34d;
    --grn-400:  #4ade80;
    --dk-base:  #020f12;
    --dk-card:  #061418;
    --sl-50:    #f8fafc;
    --sl-100:   #f1f5f9;
    --sl-200:   #e2e8f0;
    --sl-400:   #94a3b8;
    --sl-500:   #64748b;
    --sl-700:   #334155;
    --sl-800:   #1e293b;
    --sl-900:   #0f172a;
    --text-sub: #475569;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-sm:  0 4px 14px rgba(0,0,0,.06);
    --shadow-eme: 0 4px 20px rgba(20,184,166,.25);
    --fs-sm:   .9rem;
    --fs-base: 1rem;
    --fs-lg:   1.2rem;

    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: var(--fs-base); color: var(--sl-800); line-height: 1.7;
    max-width: 1100px; margin: 0 auto; width: 100%;
}

/* Material Symbols */
#tg-355-wrapper .material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal; font-style: normal; font-size: inherit; line-height: 1;
    display: inline-block; white-space: nowrap; direction: ltr;
    -webkit-font-smoothing: antialiased; vertical-align: middle;
}

/* 스크롤 등장 */
#tg-355-wrapper .tg-355-motion { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
#tg-355-wrapper .tg-355-motion.is-visible { opacity: 1; transform: translateY(0); }

/* ═════════════════════════════════════════
   히어로
═════════════════════════════════════════ */
#tg-355-wrapper .tg-355-hero {
    position: relative; background: var(--dk-base);
    border-radius: var(--radius-lg); padding: 64px 28px 72px;
    text-align: center; overflow: hidden;
}
#tg-355-wrapper .tg-355-hero__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 65% 50% at 30% 35%, rgba(20,184,166,.18) 0%, transparent 56%),
        radial-gradient(ellipse 50% 44% at 78% 70%, rgba(34,211,238,.1) 0%, transparent 52%);
}
#tg-355-wrapper .tg-355-hero__floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#tg-355-wrapper .tg-355-float {
    position: absolute; font-size: 1.7rem; opacity: 0;
    animation: tg355Float ease-in-out infinite;
}
#tg-355-wrapper .tg-355-float--1 { top: 14%; left:4%;    animation-duration: 5.5s; }
#tg-355-wrapper .tg-355-float--2 { top: 22%; right:5%;   animation-duration: 4.5s; animation-delay: -2s; font-size: 1.3rem; }
#tg-355-wrapper .tg-355-float--3 { bottom:28%; left:6%;  animation-duration: 6s;   animation-delay: -1s; }
#tg-355-wrapper .tg-355-float--4 { bottom:20%; right:7%; animation-duration: 5s;   animation-delay: -1.8s; font-size: 1.3rem; }
@keyframes tg355Float {
    0%,100% { opacity: 0; transform: translateY(0) scale(.9); }
    50%      { opacity: .52; transform: translateY(-14px) scale(1.12); }
}
#tg-355-wrapper .tg-355-hero__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
#tg-355-wrapper .tg-355-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(20,184,166,.15); border: 1px solid rgba(20,184,166,.35);
    color: var(--eme-300); font-size: .85rem; font-weight: 700;
    padding: 6px 18px; border-radius: 999px; margin-bottom: 22px !important;
}
#tg-355-wrapper .tg-355-hero__title {
    font-size: clamp(1.65rem, 4.2vw, 2.3rem); font-weight: 900;
    color: #fff; line-height: 1.28; letter-spacing: -.02em; margin-bottom: 16px;
}
#tg-355-wrapper .tg-355-hero__title em { font-style: normal; color: var(--eme-300); text-shadow: 0 0 24px rgba(20,184,166,.5); }
#tg-355-wrapper .tg-355-hero__subtitle { color: rgba(255,255,255,.65); line-height: 1.8; max-width: 540px; margin: 0 auto 28px !important; }
#tg-355-wrapper .tg-355-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#tg-355-wrapper .tg-355-hero__chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.22);
    color: var(--eme-300); font-size: .82rem; font-weight: 800;
    padding: 8px 16px; border-radius: 999px;
}
#tg-355-wrapper .tg-355-hero__chip--pink { background: rgba(244,114,182,.08); border-color: rgba(244,114,182,.22); color: var(--pink-400); }
#tg-355-wrapper .tg-355-hero__chip--gold { background: rgba(252,211,77,.08); border-color: rgba(252,211,77,.22); color: var(--gold-300); }

/* ─── 레이아웃 ─── */
#tg-355-wrapper .tg-355-main { display: flex; flex-direction: column; gap: 28px; }

/* 도입부 */
#tg-355-wrapper .tg-355-intro {
    background: #fff; border: 1px solid var(--sl-200); border-top: 4px solid var(--eme-500);
    border-radius: var(--radius-md); padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
#tg-355-wrapper .tg-355-intro__icon { font-size: 2.4rem; color: var(--eme-600); margin-bottom: 14px; }
#tg-355-wrapper .tg-355-intro__title { font-size: clamp(1.05rem, 2.8vw, 1.3rem); font-weight: 800; color: var(--sl-900); margin-bottom: 14px; }
#tg-355-wrapper .tg-355-intro p { color: var(--text-sub); max-width: 680px; margin-left: auto; margin-right: auto; }

/* 서비스 메시지 타입 그리드 */
#tg-355-wrapper .tg-355-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
#tg-355-wrapper .tg-355-type {
    background: var(--sl-50); border: 1px solid var(--sl-200); border-radius: var(--radius-sm);
    padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px;
}
#tg-355-wrapper .tg-355-type--active { border-color: rgba(20,184,166,.3); background: rgba(20,184,166,.05); }
#tg-355-wrapper .tg-355-type__icon { font-size: 1.6rem; line-height: 1; }
#tg-355-wrapper .tg-355-type__text { font-size: .72rem; font-weight: 700; color: var(--sl-600); text-align: center; word-break: keep-all; margin-bottom: 0 !important; }
#tg-355-wrapper .tg-355-type--active .tg-355-type__text { color: var(--eme-700); }

/* 공통 섹션 */
#tg-355-wrapper .tg-355-section {
    background: #fff; border: 1px solid var(--sl-200); border-radius: var(--radius-md);
    padding: 44px 32px; box-shadow: var(--shadow-sm); text-align: center;
}
#tg-355-wrapper .tg-355-section--dark { background: var(--dk-base); border-color: rgba(20,184,166,.1); }
#tg-355-wrapper .tg-355-section__label {
    display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 700;
    padding: 7px 20px; border-radius: 999px; margin-bottom: 22px;
}
#tg-355-wrapper .tg-355-section__label--eme { background: rgba(20,184,166,.1); color: var(--eme-700); }
#tg-355-wrapper .tg-355-section__label .material-symbols-outlined { font-size: 1rem; }
#tg-355-wrapper .tg-355-section__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 900; color: var(--sl-900);
    letter-spacing: -.02em; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
#tg-355-wrapper .tg-355-section__title--light { color: #fff !important; }
#tg-355-wrapper .tg-355-section > p { color: var(--text-sub); max-width: 680px; margin-left: auto; margin-right: auto; }
#tg-355-wrapper .tg-355-section__desc--light { color: rgba(255,255,255,.8) !important; margin-bottom: 28px !important; }

/* ═════════════════════════════════════════
   채팅 시뮬레이터
═════════════════════════════════════════ */
#tg-355-wrapper .tg-355-chat-view {
    max-width: 480px; margin: 0 auto; position: relative;
    background: #16212b; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 56px rgba(0,0,0,.5);
}

/* 채팅 헤더 */
#tg-355-wrapper .tg-355-chat-header {
    display: flex; align-items: center; gap: 12px;
    background: #111c26; padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
#tg-355-wrapper .tg-355-chat-header .material-symbols-outlined { font-size: 1.3rem; color: rgba(255,255,255,.55); }
#tg-355-wrapper .tg-355-chat-header__info { flex: 1; }
#tg-355-wrapper .tg-355-chat-header__name { display: block; font-size: .88rem; font-weight: 800; color: #fff; }
#tg-355-wrapper .tg-355-chat-header__sub  { display: block; font-size: .7rem; color: rgba(255,255,255,.38); }

/* 메시지 목록 */
#tg-355-wrapper .tg-355-msg-list { padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
#tg-355-wrapper .tg-355-msg { display: flex; gap: 8px; align-items: flex-end; }
#tg-355-wrapper .tg-355-msg--me { flex-direction: row-reverse; }
#tg-355-wrapper .tg-355-msg__avatar { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
#tg-355-wrapper .tg-355-msg__bubble {
    max-width: 75%; padding: 9px 13px; border-radius: 14px;
    font-size: .84rem; line-height: 1.5;
}
#tg-355-wrapper .tg-355-msg--other .tg-355-msg__bubble { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); border-bottom-left-radius: 4px; }
#tg-355-wrapper .tg-355-msg--me .tg-355-msg__bubble    { background: #4aa9dd; color: #fff; border-bottom-right-radius: 4px; }

/* 서비스 메시지 */
#tg-355-wrapper .tg-355-service-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; }
#tg-355-wrapper .tg-355-service-msg__inner {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px; padding: 8px 16px;
    font-size: .8rem; color: rgba(255,255,255,.5);
    cursor: pointer; transition: background .2s;
}
#tg-355-wrapper .tg-355-service-msg__inner:hover { background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.25); }
#tg-355-wrapper .tg-355-service-msg__icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
#tg-355-wrapper .tg-355-service-msg__text strong { color: rgba(255,255,255,.75); }

/* 리액션 추가 버튼 */
#tg-355-wrapper .tg-355-react-trigger {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.38); flex-shrink: 0;
    transition: background .2s, color .2s;
}
#tg-355-wrapper .tg-355-react-trigger:hover { background: rgba(20,184,166,.2); color: var(--eme-300); }
#tg-355-wrapper .tg-355-react-trigger .material-symbols-outlined { font-size: .9rem; }

/* 리액션 바 */
#tg-355-wrapper .tg-355-reaction-bar { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 0; }
#tg-355-wrapper .tg-355-reaction-pill {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.25);
    border-radius: 999px; padding: 3px 9px; font-size: .8rem; font-weight: 700; color: var(--eme-300);
    animation: tg355PopIn .25s cubic-bezier(.34,1.56,.64,1);
}
#tg-355-wrapper .tg-355-reaction-pill.is-me { border-color: rgba(74,169,221,.4); background: rgba(74,169,221,.1); color: #64b5f6; }

/* 이모지 피커 */
#tg-355-wrapper .tg-355-picker {
    position: absolute; z-index: 10; left: 50%; transform: translateX(-50%);
    background: #1e2a36; border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 36px rgba(0,0,0,.5);
    animation: tg355FadeUp .2s ease;
}
#tg-355-wrapper .tg-355-picker__quick { display: flex; gap: 8px; }
#tg-355-wrapper .tg-355-picker__quick button {
    width: 40px; height: 40px; border-radius: 10px; font-size: 1.35rem; line-height: 1;
    background: rgba(255,255,255,.05); transition: transform .15s, background .15s;
}
#tg-355-wrapper .tg-355-picker__quick button:hover { transform: scale(1.2); background: rgba(255,255,255,.15); }

/* 힌트 텍스트 */
#tg-355-wrapper .tg-355-hint {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .74rem; color: rgba(255,255,255,.3); padding: 10px 14px 14px;
    margin-bottom: 0 !important;
}
#tg-355-wrapper .tg-355-hint .material-symbols-outlined { font-size: .9rem; }

/* ═════════════════════════════════════════
   기기별 탭 가이드
═════════════════════════════════════════ */
#tg-355-wrapper .tg-355-tabs {
    display: flex; gap: 6px; background: var(--sl-100); border-radius: var(--radius-sm);
    padding: 5px; margin-bottom: 22px; flex-wrap: wrap;
}
#tg-355-wrapper .tg-355-tab-btn {
    flex: 1; min-width: 80px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 12px; border-radius: 7px; font-size: var(--fs-sm); font-weight: 600;
    color: var(--sl-500); transition: background .2s, color .2s;
}
#tg-355-wrapper .tg-355-tab-btn .material-symbols-outlined { font-size: 1.1rem; }
#tg-355-wrapper .tg-355-tab-btn--active { background: #fff; color: var(--eme-700); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-weight: 800; }
#tg-355-wrapper .tg-355-tab-panel { display: none; text-align: left; animation: tg355FadeUp .3s ease; }
#tg-355-wrapper .tg-355-tab-panel--active { display: block; }
#tg-355-wrapper .tg-355-tab-panel__head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--sl-100);
}
#tg-355-wrapper .tg-355-tab-panel__icon {
    width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; flex-shrink: 0;
}
#tg-355-wrapper .tg-355-tab-panel__icon--pc  { background: linear-gradient(135deg, var(--eme-500), var(--eme-700)); }
#tg-355-wrapper .tg-355-tab-panel__icon--and { background: linear-gradient(135deg, #3ddc84, #00ac47); }
#tg-355-wrapper .tg-355-tab-panel__icon--ios { background: linear-gradient(135deg, #555, #111); }
#tg-355-wrapper .tg-355-tab-panel__name { font-size: var(--fs-lg); font-weight: 800; color: var(--sl-900); margin-bottom: 4px; }
#tg-355-wrapper .tg-355-tab-panel__sub { font-size: var(--fs-sm); color: var(--sl-500); margin-bottom: 0 !important; }

#tg-355-wrapper .tg-355-steps { display: flex; flex-direction: column; gap: 12px; counter-reset: steps; }
#tg-355-wrapper .tg-355-steps li {
    counter-increment: steps; display: flex; align-items: flex-start; gap: 12px;
    font-size: var(--fs-base); color: var(--text-sub); line-height: 1.75;
}
#tg-355-wrapper .tg-355-steps li::before {
    content: counter(steps); min-width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px;
    background: linear-gradient(135deg, var(--eme-500), var(--eme-700)); color: #fff;
    font-size: .8rem; font-weight: 900; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
#tg-355-wrapper .tg-355-steps li strong { color: var(--sl-800); }
#tg-355-wrapper .tg-355-tip-box {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(20,184,166,.06); border: 1px solid rgba(20,184,166,.18);
    border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 18px;
    font-size: var(--fs-base); color: var(--text-sub); line-height: 1.75;
}
#tg-355-wrapper .tg-355-tip-box .material-symbols-outlined { font-size: 1.3rem; color: var(--eme-500); flex-shrink: 0; margin-top: 2px; }

/* ─── 결론 요약 섹션 ─── */
#tg-355-wrapper .tg-355-summary {
    background: linear-gradient(145deg, #020f12, #031c20 55%, #020f12);
    border: 1px solid rgba(20,184,166,.1); border-radius: var(--radius-lg);
    padding: 52px 32px; color: #fff; text-align: center;
}
#tg-355-wrapper .tg-355-summary h2 {
    font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 12px; color: #fff; line-height: 1.35;
}
#tg-355-wrapper .tg-355-summary h2 .material-symbols-outlined { color: var(--eme-300); font-size: 1.5rem; }
#tg-355-wrapper .tg-355-summary > p { color: rgba(255,255,255,.55); margin-bottom: 36px !important; }
#tg-355-wrapper .tg-355-summary__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 560px; margin: 0 auto;
}
#tg-355-wrapper .tg-355-summary__item {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
    padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
#tg-355-wrapper .tg-355-summary__item .material-symbols-outlined { font-size: 1.8rem; color: var(--eme-300); }
#tg-355-wrapper .tg-355-summary__item p { font-size: .84rem; font-weight: 700; color: rgba(255,255,255,.75); margin-bottom: 0 !important; }
#tg-355-wrapper .tg-355-footer-cta { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px; }
#tg-355-wrapper .tg-355-footer-cta p { font-size: var(--fs-sm); color: rgba(255,255,255,.4); margin-bottom: 20px !important; }
#tg-355-wrapper .tg-355-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--eme-500), var(--eme-700));
    color: #fff; font-size: 1rem; font-weight: 800; padding: 15px 32px; border-radius: 999px;
    box-shadow: var(--shadow-eme); transition: transform .2s;
}
#tg-355-wrapper .tg-355-cta-btn:hover { transform: translateY(-3px); }

/* ─── 키프레임 ─── */
@keyframes tg355FadeUp  { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tg355PopIn   { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

/* ─── 반응형 ─── */
@media (min-width: 500px) { #tg-355-wrapper .tg-355-types { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px) { #tg-355-wrapper .tg-355-summary__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
    #tg-355-wrapper .tg-355-hero { padding: 80px 56px 90px; }
    #tg-355-wrapper .tg-355-section, #tg-355-wrapper .tg-355-intro { padding: 52px 48px; }
}
