@charset "utf-8";

/* ============================================
   텔레그램 PC 단축키 TOP 10 가이드
   접두사: tg-key- (기존 사이트 오염 방지)
   컬러 톤: 차콜(Charcoal) + 네온 그린(Neon Green)
============================================ */

:root {
    --tgk-charcoal: #1e293b;
    --tgk-charcoal-dark: #0f172a;
    --tgk-charcoal-deep: #020617;
    --tgk-neon: #22c55e;
    --tgk-neon-dark: #16a34a;
    --tgk-neon-light: #f0fdf4;
    --tgk-neon-border: #86efac;
    --tgk-cyan: #06b6d4;
    --tgk-amber: #f59e0b;
    --tgk-amber-light: #fffbeb;
    --tgk-amber-border: #fde68a;
    --tgk-slate-900: #0f172a;
    --tgk-slate-700: #334155;
    --tgk-slate-500: #64748b;
    --tgk-slate-300: #cbd5e1;
    --tgk-slate-200: #e2e8f0;
    --tgk-slate-100: #f1f5f9;
    --tgk-bg: #f4f6f8;
    --tgk-white: #ffffff;
    --tgk-radius: 14px;
}

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

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

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

.tg-key-wrapper mark {
    background: linear-gradient(120deg, var(--tgk-neon-light) 0%, #dcfce7 100%);
    color: var(--tgk-neon-dark);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 키캡(kbd) 공통 스타일 ─── */
.tg-key-wrapper kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--tgk-charcoal);
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--tgk-slate-300);
    border-bottom: 3px solid var(--tgk-slate-300);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ─── 히어로 헤더 ─── */
.tg-key-hero {
    background: linear-gradient(145deg, #020617 0%, #0f172a 30%, #1e293b 65%, #22c55e 100%);
    color: var(--tgk-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-key-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(34, 197, 94, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-key-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(6, 182, 212, 0.05);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

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

.tg-key-hero__badge i {
    font-size: 16px;
    color: var(--tgk-neon);
}

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

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

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

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

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

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

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

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

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

.tg-key-section__num {
    font-size: 38px;
    font-weight: 900;
    color: var(--tgk-neon);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
}

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

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

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

/* ─── 단축키 카드 ─── */
.tg-key-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-key-shortcut {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background-color: var(--tgk-slate-100);
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--tgk-slate-200);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tg-key-shortcut:hover {
    border-color: var(--tgk-neon-border);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.08);
}

.tg-key-shortcut--highlight {
    background: linear-gradient(135deg, var(--tgk-neon-light) 0%, #dcfce7 100%);
    border-color: var(--tgk-neon-border);
}

/* 키 조합 영역 */
.tg-key-shortcut__keys {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 100px;
    padding-top: 2px;
    flex-wrap: wrap;
}

.tg-key-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--tgk-charcoal);
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--tgk-slate-300);
    border-bottom: 3px solid var(--tgk-slate-300);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tg-key-kbd--special {
    background: linear-gradient(180deg, var(--tgk-neon-light) 0%, #bbf7d0 100%);
    border-color: var(--tgk-neon-border);
    border-bottom-color: var(--tgk-neon-border);
    color: var(--tgk-neon-dark);
}

.tg-key-kbd--wide {
    min-width: auto;
    padding: 0 12px;
    font-size: 11px;
}

.tg-key-plus {
    font-size: 14px;
    font-weight: 700;
    color: var(--tgk-slate-500);
}

/* 설명 영역 */
.tg-key-shortcut__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgk-slate-900);
    margin-bottom: 6px;
}

.tg-key-shortcut__title i {
    color: var(--tgk-neon);
    margin-right: 6px;
    font-size: 14px;
}

.tg-key-shortcut__desc {
    font-size: 14px;
    margin-bottom: 6px;
}

.tg-key-shortcut__desc:last-child {
    margin-bottom: 0;
}

.tg-key-shortcut__note {
    font-size: 12px;
    color: var(--tgk-slate-500);
    background-color: var(--tgk-white);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--tgk-neon-border);
}

.tg-key-shortcut__note i {
    color: var(--tgk-neon);
    margin-right: 4px;
}

/* ─── 보너스 꿀팁 ─── */
.tg-key-bonus {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--tgk-white);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--tgk-amber-border);
}

.tg-key-bonus__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tgk-amber) 0%, #fbbf24 100%);
    color: var(--tgk-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.tg-key-bonus__title {
    font-size: 17px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 8px;
}

.tg-key-bonus__desc {
    font-size: 14px;
    color: #a16207;
    margin-bottom: 8px;
}

.tg-key-bonus__note {
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
    font-style: italic;
}

/* ─── 결론 및 요약 ─── */
.tg-key-summary {
    background: linear-gradient(135deg, var(--tgk-charcoal-deep) 0%, var(--tgk-charcoal-dark) 50%, var(--tgk-charcoal) 100%);
    color: var(--tgk-white);
    padding: 44px 28px;
    border-radius: var(--tgk-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
}

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

.tg-key-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgk-neon-border);
}

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

.tg-key-summary strong {
    color: var(--tgk-white);
}

/* 체크리스트 */
.tg-key-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: 24px 0;
}

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

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

/* FontAwesome 체크마크 */
.tg-key-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(--tgk-neon);
}

.tg-key-summary__checklist kbd {
    height: 24px;
    min-width: auto;
    padding: 0 6px;
    font-size: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: var(--tgk-neon-border);
    margin-right: 4px;
}

.tg-key-summary__checklist strong {
    color: var(--tgk-white);
}

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

.tg-key-summary__footer strong {
    color: var(--tgk-white);
}

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

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

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

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

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

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

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

    .tg-key-shortcut__keys {
        min-width: 140px;
    }

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

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

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

    .tg-key-shortcut__keys {
        min-width: 160px;
    }
}

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