@charset "utf-8";

/* ============================================
   텔레그램 핫딜 채널 추천 가이드
   접두사: tg-deal- (기존 사이트 오염 방지)
   컬러 톤: 핫 핑크(Hot Pink) + 오렌지
============================================ */

:root {
    --tgdl-pink: #ec4899;
    --tgdl-pink-dark: #db2777;
    --tgdl-pink-deep: #831843;
    --tgdl-pink-light: #fdf2f8;
    --tgdl-pink-border: #f9a8d4;
    --tgdl-orange: #f97316;
    --tgdl-orange-dark: #ea580c;
    --tgdl-orange-light: #fff7ed;
    --tgdl-amber: #f59e0b;
    --tgdl-amber-light: #fffbeb;
    --tgdl-amber-border: #fde68a;
    --tgdl-blue: #3b82f6;
    --tgdl-green: #10b981;
    --tgdl-purple: #8b5cf6;
    --tgdl-slate-900: #0f172a;
    --tgdl-slate-700: #334155;
    --tgdl-slate-500: #64748b;
    --tgdl-slate-200: #e2e8f0;
    --tgdl-slate-100: #f1f5f9;
    --tgdl-bg: #fef7fa;
    --tgdl-white: #ffffff;
    --tgdl-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-deal-hero {
    background: linear-gradient(145deg, #0f172a 0%, #831843 35%, #ec4899 75%, #f97316 100%);
    color: var(--tgdl-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-deal-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 55px solid rgba(236, 72, 153, 0.08);
    border-radius: 50%;
    top: -90px;
    right: -90px;
}

.tg-deal-hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 35px solid rgba(249, 115, 22, 0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -40px;
}

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

.tg-deal-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--tgdl-white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.tg-deal-hero__badge i {
    font-size: 16px;
    color: var(--tgdl-orange);
}

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

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

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

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

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

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

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

.tg-deal-section--tip {
    background-color: var(--tgdl-amber-light);
    border-color: var(--tgdl-amber-border);
}

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

.tg-deal-section__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tgdl-pink) 0%, var(--tgdl-orange) 100%);
    color: var(--tgdl-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-deal-section__icon--fire {
    background: linear-gradient(135deg, #ef4444 0%, var(--tgdl-orange) 100%);
}

.tg-deal-section__icon--amber {
    background: linear-gradient(135deg, var(--tgdl-amber) 0%, #fbbf24 100%);
}

.tg-deal-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgdl-slate-900);
    line-height: 1.35;
}

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

/* ─── 속도 비교 비주얼 ─── */
.tg-deal-speed-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 16px;
    background-color: var(--tgdl-slate-100);
    border-radius: 12px;
    flex-wrap: wrap;
}

.tg-deal-speed-compare__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 120px;
}

.tg-deal-speed-compare__item--slow {
    background-color: var(--tgdl-white);
    border: 1px solid var(--tgdl-slate-200);
}

.tg-deal-speed-compare__item--fast {
    background: linear-gradient(135deg, var(--tgdl-pink-light) 0%, var(--tgdl-orange-light) 100%);
    border: 1px solid var(--tgdl-pink-border);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.tg-deal-speed-compare__icon {
    font-size: 26px;
}

.tg-deal-speed-compare__item--slow .tg-deal-speed-compare__icon {
    color: var(--tgdl-slate-500);
}

.tg-deal-speed-compare__item--fast .tg-deal-speed-compare__icon {
    color: var(--tgdl-pink);
}

.tg-deal-speed-compare__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--tgdl-slate-500);
}

.tg-deal-speed-compare__value {
    font-size: 14px;
    font-weight: 800;
}

.tg-deal-speed-compare__item--slow .tg-deal-speed-compare__value {
    color: var(--tgdl-slate-500);
}

.tg-deal-speed-compare__item--fast .tg-deal-speed-compare__value {
    color: var(--tgdl-pink-dark);
}

.tg-deal-speed-compare__arrow {
    font-size: 18px;
    color: var(--tgdl-slate-500);
}

/* ─── 채널 카드 ─── */
.tg-deal-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-deal-channel {
    display: flex;
    gap: 0;
    background-color: var(--tgdl-slate-100);
    border-radius: 12px;
    border: 1px solid var(--tgdl-slate-200);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-deal-channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* 랭크 넘버 바 */
.tg-deal-channel__rank {
    flex-shrink: 0;
    width: 48px;
    background: linear-gradient(180deg, var(--tgdl-pink) 0%, var(--tgdl-pink-dark) 100%);
    color: var(--tgdl-white);
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-deal-channel__body {
    flex: 1;
    padding: 22px;
}

.tg-deal-channel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tg-deal-channel__avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--tgdl-white);
}

.tg-deal-channel__avatar--ruli {
    background: linear-gradient(135deg, var(--tgdl-blue) 0%, #60a5fa 100%);
}

.tg-deal-channel__avatar--jirum {
    background: linear-gradient(135deg, var(--tgdl-green) 0%, #34d399 100%);
}

.tg-deal-channel__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--tgdl-slate-900);
}

.tg-deal-channel__id {
    font-size: 13px;
    font-weight: 600;
    color: var(--tgdl-pink);
    font-family: 'Consolas', 'Courier New', monospace;
}

/* 태그 뱃지 */
.tg-deal-channel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tg-deal-channel__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tgdl-pink-dark);
    background-color: var(--tgdl-pink-light);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--tgdl-pink-border);
}

.tg-deal-channel__tag i {
    font-size: 10px;
}

.tg-deal-channel__desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* 에디터 코멘트 */
.tg-deal-channel__comment {
    font-size: 13px;
    color: var(--tgdl-pink-deep);
    background-color: var(--tgdl-pink-light);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    border-left: 3px solid var(--tgdl-pink-border);
}

.tg-deal-channel__comment i {
    color: var(--tgdl-pink);
    margin-right: 4px;
}

/* 채널 링크 버튼 */
.tg-deal-channel__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tgdl-pink);
    text-decoration: none;
    background-color: var(--tgdl-white);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--tgdl-slate-200);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tg-deal-channel__link:hover {
    background-color: var(--tgdl-pink);
    color: var(--tgdl-white);
    border-color: var(--tgdl-pink);
}

.tg-deal-channel__link i {
    font-size: 11px;
}

/* ─── 꿀팁 카드 ─── */
.tg-deal-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-deal-tip {
    background-color: var(--tgdl-white);
    padding: 22px;
    border-radius: 10px;
    border: 1px solid var(--tgdl-amber-border);
    position: relative;
}

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

.tg-deal-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-deal-tip__title i {
    color: var(--tgdl-amber);
    margin-right: 4px;
}

.tg-deal-tip__text {
    font-size: 14px;
    color: #a16207;
    margin-bottom: 12px;
}

.tg-deal-tip__steps {
    list-style: none;
    counter-reset: tip-step;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
}

.tg-deal-tip__steps li {
    counter-increment: tip-step;
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    color: #92400e;
}

.tg-deal-tip__steps li::before {
    content: counter(tip-step) ".";
    position: absolute;
    left: 0;
    font-weight: 800;
    color: var(--tgdl-amber);
}

.tg-deal-tip__steps li strong {
    color: #78350f;
}

/* ─── 결론 및 요약 ─── */
.tg-deal-summary {
    background: linear-gradient(135deg, #0f172a 0%, var(--tgdl-pink-deep) 50%, var(--tgdl-pink-dark) 100%);
    color: var(--tgdl-white);
    padding: 44px 28px;
    border-radius: var(--tgdl-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(131, 24, 67, 0.3);
}

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

.tg-deal-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #f9a8d4;
}

.tg-deal-summary__body p:last-child {
    margin-bottom: 0;
}

.tg-deal-summary strong,
.tg-deal-summary__body strong {
    color: var(--tgdl-white);
}

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

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

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

/* FontAwesome 체크마크 */
.tg-deal-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(--tgdl-orange);
}

.tg-deal-summary__checklist strong {
    color: var(--tgdl-white);
}

.tg-deal-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #f9a8d4;
    line-height: 1.8;
}

.tg-deal-summary__footer strong {
    color: var(--tgdl-white);
}

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

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

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

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

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

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

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

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

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

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

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