@charset "utf-8";

/* ============================================
   텔레그램 꿀팁 가이드 - 스포일러 미디어 편
   접두사: tg-t240- (기존 사이트 오염 방지)
   컬러 톤: 다크 인디고(Dark Indigo) + 마젠타(Magenta)
   v1.0.0 - 초기 생성
============================================ */

/* ── CSS 변수: 래퍼 스코프 선언 (전역 오염 방지) ── */
#tg-t240-wrapper {
    --t240-primary:       #7c3aed;
    --t240-primary-dark:  #5b21b6;
    --t240-primary-deep:  #1e0a3c;
    --t240-primary-light: #f5f3ff;
    --t240-secondary:     #db2777;
    --t240-accent:        #f59e0b;

    --t240-slate-900:  #0f172a;
    --t240-slate-700:  #334155;
    --t240-slate-500:  #64748b;
    --t240-slate-300:  #cbd5e1;
    --t240-slate-200:  #e2e8f0;
    --t240-slate-100:  #f1f5f9;
    --t240-bg:         #faf5ff;
    --t240-white:      #ffffff;

    --t240-radius: 16px;
    --t240-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}

/* ============================================
   CSS 충돌 방지 리셋
============================================ */
#tg-t240-wrapper,
#tg-t240-wrapper * {
    box-sizing: border-box;
    list-style: none;
    font-style: normal;
}

#tg-t240-wrapper a,
#tg-t240-wrapper a:link,
#tg-t240-wrapper a:visited,
#tg-t240-wrapper a:hover,
#tg-t240-wrapper a:active {
    text-decoration: none !important;
    color: inherit !important;
    font-weight: inherit !important;
    background: none !important;
}

#tg-t240-wrapper h1,
#tg-t240-wrapper h2,
#tg-t240-wrapper h3,
#tg-t240-wrapper h4,
#tg-t240-wrapper h5,
#tg-t240-wrapper h6 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

#tg-t240-wrapper p {
    margin-bottom: 16px !important;
    line-height: 1.75 !important;
    padding: 0;
}

#tg-t240-wrapper p:last-child {
    margin-bottom: 0 !important;
}

#tg-t240-wrapper strong {
    font-weight: 700;
    color: var(--t240-slate-900);
}

#tg-t240-wrapper mark {
    background: linear-gradient(120deg, #ede9fe 0%, #ddd6fe 100%) !important;
    color: var(--t240-primary-dark) !important;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

#tg-t240-wrapper ul,
#tg-t240-wrapper ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   래퍼
============================================ */
#tg-t240-wrapper.tg-t240-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 15px;
    color: var(--t240-slate-700);
    background-color: var(--t240-bg) !important;
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 80px;
    text-align: left;
}

/* ============================================
   히어로 헤더
============================================ */
#tg-t240-wrapper .tg-t240-hero {
    background: linear-gradient(135deg, #1e0a3c 0%, #3b0764 40%, #7c3aed 100%) !important;
    color: #ffffff !important;
    padding: 64px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#tg-t240-wrapper .tg-t240-hero,
#tg-t240-wrapper .tg-t240-hero * {
    color: #ffffff !important;
}

/* 스파클 파티클 효과 */
#tg-t240-wrapper .tg-t240-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 30% 60%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 55% 15%, rgba(219, 39, 119, 0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 80%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 40%, rgba(219, 39, 119, 0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 20% 85%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 50%, rgba(255,255,255,0.7) 0%, transparent 100%);
    pointer-events: none;
    animation: tg-t240-sparkle 3s ease-in-out infinite alternate;
}

@keyframes tg-t240-sparkle {
    from { opacity: 0.5; }
    to   { opacity: 1; }
}

#tg-t240-wrapper .tg-t240-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(219, 39, 119, 0.2) 0%, transparent 70%) !important;
    bottom: -150px;
    right: -100px;
    pointer-events: none;
}

#tg-t240-wrapper .tg-t240-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

#tg-t240-wrapper .tg-t240-hero__title {
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    margin-bottom: 18px;
}

#tg-t240-wrapper .tg-t240-hero__title span {
    color: #f9a8d4 !important;
}

#tg-t240-wrapper .tg-t240-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75) !important;
    max-width: 600px;
    margin: 0 auto;
}

/* 스포일러 데모 박스 */
#tg-t240-wrapper .tg-t240-hero__demo {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

#tg-t240-wrapper .tg-t240-hero__spoiler-box {
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    cursor: default;
    animation: tg-t240-shimmer 2s linear infinite;
    background: linear-gradient(90deg,
        rgba(139,92,246,0.5) 0%,
        rgba(219,39,119,0.5) 40%,
        rgba(139,92,246,0.5) 80%) !important;
    background-size: 200% 100% !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    letter-spacing: 0.5px;
}

@keyframes tg-t240-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

#tg-t240-wrapper .tg-t240-hero__demo-label {
    font-size: 12px;
    opacity: 0.7;
}

/* ============================================
   메인 레이아웃
============================================ */
#tg-t240-wrapper .tg-t240-main {
    padding: 40px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ============================================
   섹션 공통
============================================ */
#tg-t240-wrapper .tg-t240-section {
    background: var(--t240-white) !important;
    padding: 32px 24px;
    border-radius: var(--t240-radius);
    box-shadow: var(--t240-shadow);
    border: 1px solid #ede9fe !important;
    color: var(--t240-slate-700);
}

#tg-t240-wrapper .tg-t240-section__title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--t240-slate-900) !important;
    margin-bottom: 24px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

#tg-t240-wrapper .tg-t240-section__title > i {
    color: var(--t240-primary) !important;
}

/* 도입부 */
#tg-t240-wrapper .tg-t240-intro {
    background: var(--t240-primary-light) !important;
    border-left: 5px solid var(--t240-primary) !important;
    padding: 28px;
    border-radius: 12px;
}

#tg-t240-wrapper .tg-t240-intro p {
    font-size: 15.5px;
    color: var(--t240-primary-dark) !important;
}

/* ============================================
   피처 카드 그리드
============================================ */
#tg-t240-wrapper .tg-t240-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

#tg-t240-wrapper .tg-t240-card {
    background: var(--t240-slate-100) !important;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--t240-slate-200) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#tg-t240-wrapper .tg-t240-card:hover {
    background: var(--t240-white) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.12);
    border-color: var(--t240-primary) !important;
}

#tg-t240-wrapper .tg-t240-card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--t240-primary), var(--t240-secondary)) !important;
    color: var(--t240-white) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

#tg-t240-wrapper .tg-t240-card__title {
    font-size: 16px;
    font-weight: 700 !important;
    color: var(--t240-slate-900) !important;
    margin-bottom: 8px !important;
}

#tg-t240-wrapper .tg-t240-card__text {
    font-size: 14px;
    color: var(--t240-slate-500) !important;
}

/* ============================================
   탭 인터페이스
============================================ */
#tg-t240-wrapper .tg-t240-tabs {
    display: flex;
    background: var(--t240-slate-100) !important;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 24px;
}

#tg-t240-wrapper .tg-t240-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--t240-slate-500) !important;
    background: none !important;
}

#tg-t240-wrapper .tg-t240-tab--active {
    background: var(--t240-white) !important;
    color: var(--t240-primary) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

#tg-t240-wrapper .tg-t240-tab-content {
    display: none;
    animation: tg-t240-fadein 0.4s ease forwards;
}

#tg-t240-wrapper .tg-t240-tab-content--active {
    display: block;
}

@keyframes tg-t240-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 스텝 리스트 */
#tg-t240-wrapper .tg-t240-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#tg-t240-wrapper .tg-t240-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

#tg-t240-wrapper .tg-t240-step__num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: var(--t240-primary-light) !important;
    color: var(--t240-primary) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

#tg-t240-wrapper .tg-t240-step__text {
    font-size: 15px;
    color: var(--t240-slate-700) !important;
}

#tg-t240-wrapper .tg-t240-step__text strong {
    color: var(--t240-slate-900) !important;
}

/* ============================================
   꿀팁 리스트
============================================ */
#tg-t240-wrapper .tg-t240-tips-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#tg-t240-wrapper .tg-t240-tip-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--t240-primary-light) !important;
    border-radius: 12px;
    border: 1px dashed #c4b5fd !important;
    color: var(--t240-slate-700);
}

#tg-t240-wrapper .tg-t240-tip-item > i {
    color: var(--t240-secondary) !important;
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

#tg-t240-wrapper .tg-t240-tip-item strong {
    display: block;
    font-weight: 700;
    color: var(--t240-slate-900) !important;
    margin-bottom: 4px;
}

#tg-t240-wrapper .tg-t240-tip-item p {
    color: var(--t240-slate-700) !important;
    font-size: 14px;
}

/* ============================================
   마무리 요약 섹션
============================================ */
#tg-t240-wrapper .tg-t240-section--summary {
    background: var(--t240-primary-deep) !important;
    color: #ffffff !important;
    text-align: center;
    border-color: transparent !important;
    position: relative;
    overflow: hidden;
}

#tg-t240-wrapper .tg-t240-section--summary::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 70%, rgba(219,39,119,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
}

#tg-t240-wrapper .tg-t240-section--summary,
#tg-t240-wrapper .tg-t240-section--summary * {
    color: rgba(255, 255, 255, 0.9) !important;
}

#tg-t240-wrapper .tg-t240-summary__title {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    color: #f9a8d4 !important;
}

#tg-t240-wrapper .tg-t240-summary__list {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: 540px;
    position: relative;
}

#tg-t240-wrapper .tg-t240-summary__list-item {
    display: flex;
    gap: 10px;
    font-size: 15px;
    align-items: flex-start;
}

#tg-t240-wrapper .tg-t240-summary__list-item > i {
    color: #f59e0b !important;
    margin-top: 4px;
    flex-shrink: 0;
}

#tg-t240-wrapper .tg-t240-summary__list-item strong {
    color: #f9a8d4 !important;
    font-weight: 700;
}

#tg-t240-wrapper .tg-t240-copyright {
    margin-top: 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4) !important;
    position: relative;
}

/* ============================================
   스크롤 애니메이션
============================================ */
#tg-t240-wrapper .tg-t240-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

#tg-t240-wrapper .tg-t240-animate--active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   반응형
============================================ */
@media (min-width: 640px) {
    #tg-t240-wrapper .tg-t240-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    #tg-t240-wrapper .tg-t240-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    #tg-t240-wrapper .tg-t240-hero {
        padding: 80px 48px 100px;
    }
    #tg-t240-wrapper .tg-t240-hero__title {
        font-size: 40px !important;
    }
    #tg-t240-wrapper .tg-t240-main {
        padding: 50px 60px 0;
    }
}
