@charset "utf-8";

/* ============================================
   텔레그램 프로필 뱃지 가이드
   접두사: tg-pbg- (기존 사이트 오염 방지)
   CSS 변수 접두사: --tgpb-
   컬러 톤: 사파이어 블루(Sapphire Blue) + 골드 스타(Gold Star)
============================================ */

:root {
    --tgpb-sapphire: #2563eb;
    --tgpb-sapphire-dark: #1d4ed8;
    --tgpb-sapphire-deep: #1e3a8a;
    --tgpb-sapphire-light: #eff6ff;
    --tgpb-sapphire-border: #93c5fd;
    --tgpb-gold: #d97706;
    --tgpb-gold-dark: #b45309;
    --tgpb-gold-light: #fffbeb;
    --tgpb-gold-border: #fbbf24;
    --tgpb-slate-900: #0f172a;
    --tgpb-slate-700: #334155;
    --tgpb-slate-500: #64748b;
    --tgpb-slate-300: #cbd5e1;
    --tgpb-slate-200: #e2e8f0;
    --tgpb-slate-100: #f1f5f9;
    --tgpb-bg: #f8faff;
    --tgpb-white: #ffffff;
    --tgpb-green: #22c55e;
    --tgpb-red: #ef4444;
    --tgpb-amber: #f59e0b;
    --tgpb-purple: #8b5cf6;
    --tgpb-radius: 14px;
}

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

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

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

.tg-pbg-wrapper mark {
    background: linear-gradient(120deg, var(--tgpb-gold-light) 0%, #fbbf2480 100%);
    color: #92400e;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 히어로 ─── */
.tg-pbg-hero {
    background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 25%, #2563eb 55%, #93c5fd 100%);
    color: var(--tgpb-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-pbg-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-pbg-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(147, 197, 253, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

.tg-pbg-hero__floating {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.tg-pbg-hero__float-icon {
    position: absolute;
    font-size: 28px;
    opacity: 0.18;
    animation: tg-pbg-float 6s ease-in-out infinite;
}

.tg-pbg-hero__float-icon i {
    color: rgba(255, 255, 255, 0.9);
}

.tg-pbg-hero__float-icon--1 {
    top: 14%;
    left: 8%;
    animation-delay: 0s;
}

.tg-pbg-hero__float-icon--2 {
    top: 20%;
    right: 12%;
    animation-delay: 1s;
    font-size: 24px;
}

.tg-pbg-hero__float-icon--3 {
    bottom: 22%;
    left: 15%;
    animation-delay: 2s;
}

.tg-pbg-hero__float-icon--4 {
    bottom: 16%;
    right: 8%;
    animation-delay: 3s;
    font-size: 22px;
}

.tg-pbg-hero__float-icon--5 {
    top: 55%;
    left: 4%;
    animation-delay: 4s;
    font-size: 20px;
}

.tg-pbg-hero__float-icon--6 {
    top: 10%;
    right: 30%;
    animation-delay: 5s;
    font-size: 18px;
}

@keyframes tg-pbg-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

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

.tg-pbg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(217, 119, 6, 0.2);
    color: var(--tgpb-gold-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    backdrop-filter: blur(4px);
}

.tg-pbg-hero__badge i {
    font-size: 16px;
}

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

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

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

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

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

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

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

.tg-pbg-section--accent {
    background: linear-gradient(135deg, var(--tgpb-sapphire-light) 0%, #93c5fd25 100%);
    border-color: var(--tgpb-sapphire-border);
}

.tg-pbg-section--demo {
    background: linear-gradient(135deg, var(--tgpb-gold-light) 0%, #fbbf2430 50%, #fef3c730 100%);
    border-color: var(--tgpb-gold-border);
}

.tg-pbg-section--info {
    background: linear-gradient(135deg, var(--tgpb-sapphire-light) 0%, #dbeafe40 100%);
    border-color: var(--tgpb-sapphire-border);
}

.tg-pbg-section--dark {
    background: linear-gradient(135deg, var(--tgpb-slate-900) 0%, #1e293b 100%);
    border-color: var(--tgpb-slate-700);
    color: var(--tgpb-slate-300);
}

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

.tg-pbg-section__num {
    font-size: 38px;
    font-weight: 900;
    color: var(--tgpb-sapphire);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.tg-pbg-section__num--accent {
    color: var(--tgpb-gold);
    opacity: 0.3;
}

.tg-pbg-section__tip-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tgpb-gold) 0%, #fbbf24 100%);
    color: var(--tgpb-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-pbg-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgpb-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

.tg-pbg-section__title--light {
    color: var(--tgpb-white);
}

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

/* ─── 노출 카드 ─── */
.tg-pbg-expose-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tg-pbg-expose-card {
    padding: 18px;
    border-radius: 10px;
    background-color: var(--tgpb-white);
    border: 1px solid var(--tgpb-sapphire-border);
    text-align: center;
    transition: transform 0.3s ease;
}

.tg-pbg-expose-card:hover {
    transform: translateY(-2px);
}

.tg-pbg-expose-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--tgpb-sapphire) 0%, var(--tgpb-sapphire-dark) 100%);
    color: var(--tgpb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 auto 6px;
}

.tg-pbg-expose-card__title {
    font-size: 13px;
    font-weight: 800;
    color: var(--tgpb-slate-900);
    margin-bottom: 2px;
}

.tg-pbg-expose-card__desc {
    font-size: 10px;
}

/* ─── 스텝 ─── */
.tg-pbg-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-pbg-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--tgpb-white);
    border: 1px solid var(--tgpb-slate-200);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-pbg-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.tg-pbg-step--highlight {
    border-color: var(--tgpb-gold-border);
    background-color: var(--tgpb-gold-light);
}

.tg-pbg-step__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgpb-sapphire) 0%, var(--tgpb-sapphire-dark) 100%);
    color: var(--tgpb-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tg-pbg-step__icon--key {
    background: linear-gradient(135deg, var(--tgpb-gold) 0%, var(--tgpb-gold-dark) 100%);
    width: 50px;
    height: 50px;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
}

.tg-pbg-step__body {
    flex: 1;
}

.tg-pbg-step__num {
    font-size: 11px;
    font-weight: 800;
    color: var(--tgpb-sapphire);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.tg-pbg-step__num--key {
    color: var(--tgpb-gold-dark);
    font-size: 12px;
}

.tg-pbg-step__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgpb-slate-900);
    margin-bottom: 4px;
}

.tg-pbg-step__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 데모 ─── */
.tg-pbg-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 뱃지 선택 */
.tg-pbg-demo__selector {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--tgpb-gold-border);
    background-color: var(--tgpb-white);
}

.tg-pbg-demo__selector-header {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--tgpb-sapphire-deep) 0%, var(--tgpb-sapphire-dark) 100%);
    color: var(--tgpb-white);
    font-size: 13px;
    font-weight: 800;
}

.tg-pbg-demo__selector-header i {
    margin-right: 6px;
}

.tg-pbg-demo__badges {
    padding: 14px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tg-pbg-demo__badge-item {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    background-color: var(--tgpb-slate-100);
}

.tg-pbg-demo__badge-item:hover {
    transform: scale(1.1);
    border-color: var(--tgpb-sapphire-border);
}

.tg-pbg-demo__badge-item--selected {
    border-color: var(--tgpb-gold);
    background-color: var(--tgpb-gold-light);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.3);
}

/* 미리보기 4개 */
.tg-pbg-demo__previews {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tg-pbg-demo__preview-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--tgpb-slate-200);
    background-color: var(--tgpb-white);
    animation: tg-pbg-preview-in 0.4s ease;
}

.tg-pbg-demo__preview-label {
    padding: 6px 12px;
    background-color: var(--tgpb-slate-100);
    font-size: 10px;
    font-weight: 800;
    color: var(--tgpb-slate-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tg-pbg-demo__preview-content {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-pbg-demo__preview-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tgpb-sapphire) 0%, #60a5fa 100%);
    color: var(--tgpb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tg-pbg-demo__preview-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tgpb-slate-900);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tg-pbg-demo__preview-badge-icon {
    font-size: 12px;
    animation: tg-pbg-badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tg-pbg-demo__preview-sub {
    font-size: 10px;
    color: var(--tgpb-slate-300);
}

@keyframes tg-pbg-preview-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tg-pbg-badge-pop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ─── 전문가 추천 ─── */
.tg-pbg-expert {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-pbg-expert__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background-color: var(--tgpb-white);
    border: 1px solid var(--tgpb-slate-200);
    transition: transform 0.2s ease;
}

.tg-pbg-expert__item:hover {
    transform: translateX(4px);
}

.tg-pbg-expert__badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tgpb-green) 0%, #16a34a 100%);
    color: var(--tgpb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.tg-pbg-expert__badge--star {
    background: linear-gradient(135deg, var(--tgpb-gold) 0%, #fbbf24 100%);
}

.tg-pbg-expert__badge--caution {
    background: linear-gradient(135deg, var(--tgpb-red) 0%, #dc2626 100%);
}

.tg-pbg-expert__title {
    font-size: 13px;
    font-weight: 800;
    color: var(--tgpb-slate-900);
}

.tg-pbg-expert__desc {
    font-size: 11px;
}

/* ─── 직장인 팁 ─── */
.tg-pbg-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-pbg-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 197, 253, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

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

.tg-pbg-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgpb-white);
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-pbg-tip__title i {
    color: var(--tgpb-sapphire-border);
    margin-right: 4px;
}

.tg-pbg-tip__text {
    font-size: 14px;
    color: var(--tgpb-slate-300);
}

.tg-pbg-tip__text strong {
    color: var(--tgpb-white);
}

/* ─── 결론 ─── */
.tg-pbg-summary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, var(--tgpb-sapphire-dark) 100%);
    color: var(--tgpb-white);
    padding: 44px 28px;
    border-radius: var(--tgpb-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
}

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

.tg-pbg-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgpb-sapphire-border);
}

.tg-pbg-summary strong {
    color: var(--tgpb-white);
}

.tg-pbg-summary__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
}

.tg-pbg-summary__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 197, 253, 0.12);
    border-radius: 10px;
}

.tg-pbg-summary__highlight-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tgpb-gold) 0%, #fbbf24 100%);
    color: var(--tgpb-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-pbg-summary__highlight strong {
    font-size: 13px;
    color: var(--tgpb-white);
}

.tg-pbg-summary__highlight span {
    font-size: 11px;
    color: var(--tgpb-sapphire-border);
    text-align: center;
}

.tg-pbg-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 0 0 24px;
}

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

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

.tg-pbg-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(--tgpb-gold-border);
}

.tg-pbg-summary__checklist strong {
    color: var(--tgpb-white);
}

.tg-pbg-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--tgpb-sapphire-border);
    line-height: 1.8;
}

.tg-pbg-summary__footer strong {
    color: var(--tgpb-white);
}

/* ============================================
   반응형
============================================ */
@media (min-width: 768px) {
    .tg-pbg-hero {
        padding: 80px 40px;
    }

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

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

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

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

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

    .tg-pbg-section__num {
        font-size: 44px;
    }

    .tg-pbg-expose-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .tg-pbg-demo__previews {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-pbg-tips {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-pbg-summary__highlights {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .tg-pbg-demo {
        flex-direction: row;
    }

    .tg-pbg-demo__selector {
        flex: 0.4;
    }

    .tg-pbg-demo__previews {
        flex: 0.6;
        grid-template-columns: repeat(2, 1fr);
    }
}

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