/*
 * tips253/style.css  v1.0.1
 * 텔레그램 절전 모드 완벽 가이드 전용 스타일
 * 그누보드5 완전 격리 | BEM 네이밍 | 모바일 퍼스트
 */

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

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

/* ==============================================
   CSS 변수 (Design Tokens)
   ============================================== */
#tg-253-wrapper {
    --green-500:  #22c55e;
    --green-700:  #15803d;
    --amber-400:  #fbbf24;
    --amber-500:  #f59e0b;
    --blue-600:   #2283dd;
    --blue-900:   #0c3461;
    --red-500:    #ef4444;
    --violet-600: #6c5ce7;
    --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(34, 131, 32, 0.1);
}

/* ==============================================
   최상위 래퍼 (와이드 1100px)
   ============================================== */
#tg-253-wrapper.tg-253-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: 0 10px 40px rgba(34, 197, 94, 0.1);
}

/* ==============================================
   히어로 헤더 (초록 계열 - 에너지/배터리 테마)
   ============================================== */
#tg-253-wrapper .tg-253-hero {
    position: relative;
    background: linear-gradient(135deg, #16a34a 0%, #064e3b 100%);
    padding: 52px 24px 48px;
    text-align: center;
    overflow: hidden;
}

#tg-253-wrapper .tg-253-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 20% 80%, rgba(34,197,94,0.2) 0%, transparent 50%);
    pointer-events: none;
}

#tg-253-wrapper .tg-253-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-253-wrapper .tg-253-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

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

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

#tg-253-wrapper .tg-253-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-253-wrapper .tg-253-hero__flow-arrow {
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.1rem;
}

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

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

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

#tg-253-wrapper .tg-253-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-253-wrapper .tg-253-main {
    background: #fff;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

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

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

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

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

/* ==============================================
   섹션 공통
   ============================================== */
#tg-253-wrapper .tg-253-section__label {
    display: inline-flex;
    align-items: center;
    background: var(--green-700) !important;
    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-253-wrapper .tg-253-section__title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--slate-800) !important;
    border-left: 4px solid var(--green-500);
    padding-left: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
    word-break: keep-all;
}

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

/* ==============================================
   기능 소개 카드 그리드
   ============================================== */
#tg-253-wrapper .tg-253-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

#tg-253-wrapper .tg-253-feature-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-253-wrapper .tg-253-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

/* ==============================================
   기기별 카드
   ============================================== */
#tg-253-wrapper .tg-253-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-253-wrapper .tg-253-device-card:last-of-type {
    margin-bottom: 0;
}

#tg-253-wrapper .tg-253-device-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(34,197,94,0.1);
    border-color: var(--green-500);
}

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

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

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

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

/* ==============================================
   단계 목록
   ============================================== */
#tg-253-wrapper .tg-253-steps {
    counter-reset: step253;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}

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

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

#tg-253-wrapper .tg-253-steps__item strong {
    color: #16a34a !important;
    font-weight: 700;
}

/* ==============================================
   절전 옵션 체크리스트
   ============================================== */
#tg-253-wrapper .tg-253-option-list {
    background: #fff9f9 !important;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

#tg-253-wrapper .tg-253-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-253-wrapper .tg-253-tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

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

#tg-253-wrapper .tg-253-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.18);
    border-radius: 12px;
    font-size: 1.4rem;
    color: #fff !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

    #tg-253-wrapper .tg-253-main {
        padding: 56px 40px 48px;
        gap: 52px;
    }

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

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

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

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

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

    #tg-253-wrapper .tg-253-device-card__header {
        align-items: center;
    }
}
