/*
 * tips254/style.css  v1.0.1
 * 텔레그램 미디어 재생 속도 조절 가이드 전용 스타일
 * 그누보드5 완전 격리 | BEM 네이밍 | 모바일 퍼스트
 * 테마: 오렌지·앰버 (속도·에너지)
 */

/* ==============================================
   그누보드5 CSS 충돌 완전 방지 리셋
   ============================================== */
#tg-254-wrapper,
#tg-254-wrapper *,
#tg-254-wrapper *::before,
#tg-254-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-254-wrapper h1,
#tg-254-wrapper h2,
#tg-254-wrapper h3,
#tg-254-wrapper h4,
#tg-254-wrapper h5,
#tg-254-wrapper h6 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.3;
}

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

/* ==============================================
   CSS 변수 (Design Tokens)
   ============================================== */
#tg-254-wrapper {
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --amber-400:  #fbbf24;
    --amber-500:  #f59e0b;
    --blue-600:   #2283dd;
    --green-500:  #22c55e;
    --slate-50:   #f8fafc;
    --slate-100:  #f1f5f9;
    --slate-200:  #e2e8f0;
    --slate-300:  #cbd5e1;
    --slate-700:  #334155;
    --slate-800:  #1e293b;
    --slate-900:  #0f172a;
    --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(249,115,22,0.12);
}

/* ==============================================
   최상위 래퍼 (와이드 1100px)
   ============================================== */
#tg-254-wrapper.tg-254-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-254-wrapper .tg-254-hero {
    position: relative;
    background: linear-gradient(135deg, #ea580c 0%, #7c2d12 100%);
    padding: 52px 24px 52px;
    text-align: center;
    overflow: hidden;
}

#tg-254-wrapper .tg-254-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 55%),
                radial-gradient(circle at 15% 75%, rgba(251,191,36,0.15) 0%, transparent 50%);
    pointer-events: none;
}

#tg-254-wrapper .tg-254-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--slate-50);
    clip-path: ellipse(55% 100% at 50% 100%);
}

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

#tg-254-wrapper .tg-254-hero__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    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-254-wrapper .tg-254-hero__icon-flow {
    display: flex;
    align-items: center;
    gap: 14px;
}

#tg-254-wrapper .tg-254-hero__icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.12) !important;
    border: 2px solid rgba(255,255,255,0.28);
    border-radius: 14px;
}

#tg-254-wrapper .tg-254-hero__icon-box--mid {
    background: rgba(255,255,255,0.24) !important;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 22px rgba(255,255,255,0.15);
}

#tg-254-wrapper .tg-254-hero__speed-label {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: -1px;
}

#tg-254-wrapper .tg-254-hero__flow-arrow {
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.1rem;
}

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

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

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

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

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

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

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

#tg-254-wrapper .tg-254-intro__heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--orange-600) !important;
    margin-bottom: 14px;
}

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

/* ==============================================
   섹션 공통
   ============================================== */
#tg-254-wrapper .tg-254-section__label {
    display: inline-flex;
    align-items: center;
    background: var(--orange-600) !important;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

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

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

/* ==============================================
   속도 슬라이더 UI 목업
   ============================================== */
#tg-254-wrapper .tg-254-speed-mockup {
    background: var(--slate-800) !important;
    border-radius: 16px;
    padding: 28px 24px 20px;
    margin: 24px 0;
    user-select: none;
}

#tg-254-wrapper .tg-254-speed-mockup__track {
    position: relative;
    height: 8px;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
}

#tg-254-wrapper .tg-254-speed-mockup__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500)) !important;
    border-radius: 4px;
    pointer-events: none;
    transition: width 0.08s linear;
}

#tg-254-wrapper .tg-254-speed-mockup__thumb {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #fff !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: left 0.08s linear;
}

#tg-254-wrapper .tg-254-speed-mockup__thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
}

#tg-254-wrapper .tg-254-speed-mockup__value {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--orange-600) !important;
    white-space: nowrap;
}

#tg-254-wrapper .tg-254-speed-mockup__labels {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-top: 14px;
}

#tg-254-wrapper .tg-254-speed-mockup__labels span {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5) !important;
}

#tg-254-wrapper .tg-254-speed-mockup__hint {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6) !important;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0 !important;
}

/* ==============================================
   활용 사례 카드 그리드
   ============================================== */
#tg-254-wrapper .tg-254-use-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
}

#tg-254-wrapper .tg-254-use-card {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

#tg-254-wrapper .tg-254-use-card strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--slate-800) !important;
}

#tg-254-wrapper .tg-254-use-card p {
    font-size: 0.88rem;
    color: var(--text-sub) !important;
    margin-bottom: 0 !important;
}

/* ==============================================
   기기별 카드
   ============================================== */
#tg-254-wrapper .tg-254-device-card {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 22px 20px;
    margin-bottom: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#tg-254-wrapper .tg-254-device-card:last-of-type {
    margin-bottom: 0;
}

#tg-254-wrapper .tg-254-device-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(249,115,22,0.1);
    border-color: var(--orange-500);
}

#tg-254-wrapper .tg-254-device-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

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

#tg-254-wrapper .tg-254-device-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    margin-bottom: 4px;
}

#tg-254-wrapper .tg-254-device-card__desc {
    font-size: 0.88rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    line-height: 1.55;
    margin-bottom: 0 !important;
}

/* ==============================================
   음성/동영상 2열 그리드
   ============================================== */
#tg-254-wrapper .tg-254-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

#tg-254-wrapper .tg-254-media-block {
    background: #fff !important;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 16px;
}

#tg-254-wrapper .tg-254-media-block__title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

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

#tg-254-wrapper .tg-254-steps__item {
    counter-increment: step254;
    position: relative;
    padding-left: 30px;
    font-size: 0.88rem;
    color: var(--text-sub) !important;
    line-height: 1.55;
}

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

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

/* ==============================================
   직장인 팁 카드
   ============================================== */
#tg-254-wrapper .tg-254-tip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

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

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

#tg-254-wrapper .tg-254-tip-card__speed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue-600), #004fa3) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 900;
    border-radius: 8px;
    padding: 0 10px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

#tg-254-wrapper .tg-254-tip-card__speed--fast {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700)) !important;
}

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

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

#tg-254-wrapper .tg-254-tip-card p strong {
    color: var(--orange-600) !important;
}

/* ==============================================
   결론 요약 (다크 오렌지 그라데이션 섹션)
   ============================================== */
#tg-254-wrapper .tg-254-summary {
    background: linear-gradient(150deg, var(--slate-900) 0%, #431407 100%) !important;
    border-radius: var(--border-r);
    padding: 44px 24px;
    text-align: center;
}

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

#tg-254-wrapper .tg-254-summary__flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

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

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

#tg-254-wrapper .tg-254-summary__flow-item span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-300) !important;
    max-width: 70px;
    text-align: center;
    line-height: 1.3;
}

#tg-254-wrapper .tg-254-summary__flow-arrow {
    color: rgba(255,255,255,0.3) !important;
    font-size: 0.9rem;
}

#tg-254-wrapper .tg-254-summary__checklist {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

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

#tg-254-wrapper .tg-254-summary__desc strong {
    color: #fff !important;
}

/* ==============================================
   푸터 링크 버튼
   ============================================== */
#tg-254-wrapper .tg-254-footer {
    margin-top: 28px;
}

#tg-254-wrapper .tg-254-footer__btn {
    display: inline-flex;
    align-items: center;
    background: #fff !important;
    color: var(--orange-600) !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-254-wrapper .tg-254-footer__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

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

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

/* ==============================================
   반응형 - 태블릿 (640px+)
   ============================================== */
@media (min-width: 640px) {
    #tg-254-wrapper .tg-254-hero {
        padding: 64px 40px 60px;
    }
    #tg-254-wrapper .tg-254-hero__title {
        font-size: 2rem;
    }
    #tg-254-wrapper .tg-254-main {
        padding: 56px 40px 48px;
        gap: 52px;
    }
    #tg-254-wrapper .tg-254-use-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    #tg-254-wrapper .tg-254-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #tg-254-wrapper .tg-254-tip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #tg-254-wrapper .tg-254-summary {
        padding: 56px 40px;
    }
    #tg-254-wrapper .tg-254-device-card__header {
        align-items: center;
    }
}

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