@charset "utf-8";

/* ============================================
   텔레그램 꿀팁 가이드 - 그룹 미디어 권한 설정 편
   접두사: tg-t251- (기존 사이트 오염 방지)
   컬러 톤: 다크 바이올렛(Dark Violet) + 슬레이트
   v1.0.0 - 초기 생성
============================================ */

#tg-t251-wrapper {
    --t251-primary:       #7c3aed;
    --t251-primary-dark:  #6d28d9;
    --t251-primary-deep:  #1e1b4b;
    --t251-primary-light: #f5f3ff;
    --t251-secondary:     #a78bfa;
    --t251-accent:        #10b981;
    --t251-warn:          #f97316;

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

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

/* ── 리셋 ── */
#tg-t251-wrapper,
#tg-t251-wrapper * { box-sizing: border-box; list-style: none; font-style: normal; }

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

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

#tg-t251-wrapper p { margin-bottom: 16px !important; line-height: 1.75 !important; padding: 0; }
#tg-t251-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-t251-wrapper strong { font-weight: 700; color: var(--t251-slate-900); }

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

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

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

/* ── 히어로 ── */
#tg-t251-wrapper .tg-t251-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 40%, #7c3aed 100%) !important;
    color: #ffffff !important;
    padding: 64px 24px 72px; text-align: center;
    position: relative; overflow: hidden;
}

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

#tg-t251-wrapper .tg-t251-hero::before {
    content: "";
    position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%) !important;
    top: -200px; right: -100px; pointer-events: none;
}

#tg-t251-wrapper .tg-t251-hero::after {
    content: "";
    position: absolute; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%) !important;
    bottom: -100px; left: -60px; pointer-events: none;
}

#tg-t251-wrapper .tg-t251-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-t251-wrapper .tg-t251-hero__title {
    font-size: 28px !important; font-weight: 900 !important;
    line-height: 1.3 !important; margin-bottom: 18px;
}

#tg-t251-wrapper .tg-t251-hero__title span { color: #c4b5fd !important; }

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

/* 권한 토글 시각화 */
#tg-t251-wrapper .tg-t251-hero__perms {
    display: flex; flex-direction: column; gap: 8px;
    max-width: 340px; margin: 28px auto 0;
}

#tg-t251-wrapper .tg-t251-hero__perm-row {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    padding: 10px 16px; border-radius: 10px; backdrop-filter: blur(6px);
    font-size: 13px; font-weight: 600;
}

#tg-t251-wrapper .tg-t251-hero__perm-row span { display: flex; align-items: center; gap: 8px; }

#tg-t251-wrapper .tg-t251-toggle {
    width: 38px; height: 20px; border-radius: 100px;
    display: flex; align-items: center; padding: 2px; flex-shrink: 0;
}

#tg-t251-wrapper .tg-t251-toggle--on  { background: #10b981 !important; justify-content: flex-end; }
#tg-t251-wrapper .tg-t251-toggle--off { background: rgba(255,255,255,0.22) !important; justify-content: flex-start; }

#tg-t251-wrapper .tg-t251-toggle__dot {
    width: 16px; height: 16px; background: #fff !important;
    border-radius: 50%; flex-shrink: 0;
}

/* ── 메인 ── */
#tg-t251-wrapper .tg-t251-main {
    padding: 40px 20px 0; display: flex; flex-direction: column; gap: 32px;
}

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

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

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

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

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

/* 제어 항목 그리드 */
#tg-t251-wrapper .tg-t251-perm-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0;
}

#tg-t251-wrapper .tg-t251-perm-tag {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--t251-slate-100) !important;
    border: 1px solid var(--t251-slate-200) !important;
    font-size: 13px; font-weight: 600; color: var(--t251-slate-700) !important;
}

#tg-t251-wrapper .tg-t251-perm-tag > i { color: var(--t251-primary) !important; font-size: 14px; }

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

#tg-t251-wrapper .tg-t251-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(--t251-slate-500) !important; background: none !important;
}

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

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

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

/* 스텝 */
#tg-t251-wrapper .tg-t251-steps { display: flex; flex-direction: column; gap: 16px; }
#tg-t251-wrapper .tg-t251-step { display: flex; gap: 16px; align-items: flex-start; }

#tg-t251-wrapper .tg-t251-step__num {
    width: 26px; height: 26px; min-width: 26px;
    background: var(--t251-primary-light) !important; color: var(--t251-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-t251-wrapper .tg-t251-step__text { font-size: 15px; color: var(--t251-slate-700) !important; }
#tg-t251-wrapper .tg-t251-step__text strong { color: var(--t251-slate-900) !important; }

/* 경로 박스 */
#tg-t251-wrapper .tg-t251-path-box {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; padding: 12px 16px;
    background: var(--t251-primary-light) !important;
    border: 1px solid #c4b5fd !important; border-radius: 12px;
    margin-bottom: 20px; font-size: 14px; font-weight: 600;
    color: var(--t251-primary-dark) !important;
}

#tg-t251-wrapper .tg-t251-path-box i { color: var(--t251-primary) !important; }

#tg-t251-wrapper .tg-t251-path-box span {
    background: var(--t251-white) !important; padding: 4px 12px;
    border-radius: 8px; border: 1px solid #c4b5fd !important;
    color: var(--t251-primary-dark) !important; font-weight: 700;
}

#tg-t251-wrapper .tg-t251-path-box .tg-t251-arrow {
    background: none !important; border: none !important;
    color: var(--t251-slate-400) !important; font-size: 12px; padding: 0;
}

/* ── 꿀팁 번호 카드 ── */
#tg-t251-wrapper .tg-t251-tips-list { display: flex; flex-direction: column; gap: 16px; }

#tg-t251-wrapper .tg-t251-tip-item {
    display: flex; gap: 14px; padding: 22px;
    background: var(--t251-primary-light) !important;
    border-radius: 14px; border: 1px solid #ddd6fe !important;
    color: var(--t251-slate-700);
}

#tg-t251-wrapper .tg-t251-tip-item__num {
    width: 32px; height: 32px; min-width: 32px;
    background: var(--t251-primary) !important; color: #fff !important;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; flex-shrink: 0;
}

#tg-t251-wrapper .tg-t251-tip-item strong { display: block; font-weight: 700; color: var(--t251-slate-900) !important; margin-bottom: 8px; font-size: 15px; }
#tg-t251-wrapper .tg-t251-tip-item p { color: var(--t251-slate-700) !important; font-size: 14px; }

/* 특수 방 만들기 하이라이트 */
#tg-t251-wrapper .tg-t251-special-box {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px; border-radius: 14px; margin-top: 12px;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95) !important;
}

#tg-t251-wrapper .tg-t251-special-box > i { color: #c4b5fd !important; font-size: 22px; margin-top: 2px; flex-shrink: 0; }
#tg-t251-wrapper .tg-t251-special-box strong { display: block; color: #ffffff !important; margin-bottom: 6px; }
#tg-t251-wrapper .tg-t251-special-box p { color: rgba(255,255,255,0.8) !important; font-size: 14px; }

/* ── 요약 ── */
#tg-t251-wrapper .tg-t251-section--summary {
    background: var(--t251-primary-deep) !important;
    color: #ffffff !important; text-align: center; border-color: transparent !important;
}

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

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

#tg-t251-wrapper .tg-t251-summary__list {
    display: inline-flex; flex-direction: column; gap: 12px;
    text-align: left; max-width: 560px;
}

#tg-t251-wrapper .tg-t251-summary__list-item { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
#tg-t251-wrapper .tg-t251-summary__list-item > i { color: #a3e635 !important; margin-top: 4px; flex-shrink: 0; }
#tg-t251-wrapper .tg-t251-summary__list-item strong { color: #c4b5fd !important; font-weight: 700; }

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

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

/* ── 반응형 ── */
@media (min-width: 640px) {
    #tg-t251-wrapper .tg-t251-perm-grid { grid-template-columns: repeat(3, 1fr); }
}

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