@charset "utf-8";

/* ============================================
   텔레그램 그룹 읽음 확인(Group Read Receipt) 가이드
   접두사: tg-grr- (기존 사이트 오염 방지)
   컬러 톤: 인디고(Indigo) + 웜 코랄(Warm Coral)
============================================ */

:root {
    --grr-indigo: #4f46e5;
    --grr-indigo-dark: #4338ca;
    --grr-indigo-deep: #1e1b4b;
    --grr-indigo-light: #eef2ff;
    --grr-indigo-border: #a5b4fc;
    --grr-coral: #f43f5e;
    --grr-coral-dark: #e11d48;
    --grr-coral-light: #fff1f2;
    --grr-coral-border: #fda4af;
    --grr-green: #059669;
    --grr-green-light: #d1fae5;
    --grr-amber: #d97706;
    --grr-amber-light: #fffbeb;
    --grr-amber-border: #fcd34d;
    --grr-blue: #0284c7;
    --grr-slate-900: #0f172a;
    --grr-slate-700: #334155;
    --grr-slate-500: #64748b;
    --grr-slate-300: #cbd5e1;
    --grr-slate-200: #e2e8f0;
    --grr-slate-100: #f1f5f9;
    --grr-bg: #eef2ff;
    --grr-white: #ffffff;
    --grr-radius: 14px;
}

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

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

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

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

.tg-grr-icon--blue {
    color: var(--grr-blue);
}

/* ─── 히어로 ─── */
.tg-grr-hero {
    background: linear-gradient(145deg, #0c0a1e 0%, #1e1b4b 25%, #4f46e5 55%, #818cf8 85%, #a5b4fc 100%);
    color: var(--grr-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-grr-hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 65px solid rgba(79, 70, 229, 0.05);
    border-radius: 50%;
    top: -110px;
    right: -110px;
}

.tg-grr-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 45px solid rgba(244, 63, 94, 0.04);
    border-radius: 50%;
    bottom: -70px;
    left: -55px;
}

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

.tg-grr-hero__check-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    font-size: 36px;
    color: var(--grr-indigo-border);
}

.tg-grr-hero__check-pulse {
    position: absolute;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(165, 180, 252, 0.3);
    border-radius: 50%;
    animation: tg-grr-pulse 2.5s ease-in-out infinite;
}

.tg-grr-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(165, 180, 252, 0.1) 100%);
    color: var(--grr-indigo-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(165, 180, 252, 0.2);
    backdrop-filter: blur(4px);
}

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

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

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

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

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

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

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

.tg-grr-section--dark {
    background: linear-gradient(135deg, #0c0a1e 0%, var(--grr-indigo-deep) 50%, #312e81 100%);
    border-color: var(--grr-indigo);
    color: var(--grr-slate-300);
}

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

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

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

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

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

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

.tg-grr-section__desc--light {
    color: var(--grr-indigo-border);
}

/* ─── 기기별 블록 ─── */
.tg-grr-device-block {
    margin-bottom: 20px;
    border: 1px solid var(--grr-slate-200);
    border-radius: 12px;
    overflow: hidden;
}

.tg-grr-device-block:last-of-type {
    margin-bottom: 20px;
}

.tg-grr-device-block__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    color: var(--grr-white);
}

.tg-grr-device-block__header--mobile {
    background: linear-gradient(135deg, var(--grr-indigo) 0%, var(--grr-indigo-dark) 100%);
}

.tg-grr-device-block__header--pc {
    background: linear-gradient(135deg, var(--grr-slate-700) 0%, var(--grr-slate-900) 100%);
}

/* ─── 스텝 ─── */
.tg-grr-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tg-grr-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--grr-slate-100);
    transition: background-color 0.15s ease;
}

.tg-grr-step:last-child {
    border-bottom: none;
}

.tg-grr-step:hover {
    background-color: var(--grr-indigo-light);
}

.tg-grr-step--highlight {
    background: linear-gradient(135deg, var(--grr-indigo-light) 0%, #e0e7ff 100%);
}

.tg-grr-step__marker {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--grr-indigo) 0%, var(--grr-indigo-dark) 100%);
    color: var(--grr-white);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
}

.tg-grr-step__marker--highlight {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.tg-grr-step__content {
    flex: 1;
}

.tg-grr-step__text {
    font-size: 15px;
    padding-top: 2px;
}

/* Seen by 배지 */
.tg-grr-seen-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--grr-indigo) 0%, var(--grr-indigo-dark) 100%);
    color: var(--grr-white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* ─── 컨텍스트 메뉴 ─── */
.tg-grr-ctx-menu {
    margin-top: 10px;
    background-color: var(--grr-white);
    border: 1px solid var(--grr-slate-200);
    border-radius: 10px;
    overflow: hidden;
    max-width: 220px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tg-grr-ctx-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--grr-slate-700);
    border-bottom: 1px solid var(--grr-slate-100);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tg-grr-ctx-menu__item:last-child {
    border-bottom: none;
}

.tg-grr-ctx-menu__item:hover {
    background-color: var(--grr-slate-100);
}

.tg-grr-ctx-menu__item--active {
    background: linear-gradient(135deg, var(--grr-indigo-light) 0%, #e0e7ff 100%);
    color: var(--grr-indigo-dark);
    font-weight: 700;
}

.tg-grr-ctx-menu__item--active i {
    color: var(--grr-indigo);
}

.tg-grr-ctx-menu__count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--grr-white);
    background: linear-gradient(135deg, var(--grr-indigo) 0%, var(--grr-indigo-dark) 100%);
    padding: 2px 8px;
    border-radius: 100px;
}

/* ─── 읽은 사람 리스트 비주얼 ─── */
.tg-grr-reader-list {
    background-color: var(--grr-white);
    border: 1px solid var(--grr-indigo-border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
}

.tg-grr-reader-list__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--grr-indigo) 0%, var(--grr-indigo-dark) 100%);
    color: var(--grr-white);
    font-size: 14px;
    font-weight: 700;
}

.tg-grr-reader-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--grr-slate-100);
    font-size: 14px;
    color: var(--grr-slate-700);
}

.tg-grr-reader-list__item:last-child {
    border-bottom: none;
}

.tg-grr-reader-list__item span {
    font-weight: 600;
    flex: 1;
}

.tg-grr-reader-list__item small {
    font-size: 11px;
    color: var(--grr-slate-300);
}

.tg-grr-reader-list__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grr-white);
    font-size: 13px;
    flex-shrink: 0;
}

.tg-grr-reader-list__avatar--1 {
    background: linear-gradient(135deg, var(--grr-indigo) 0%, var(--grr-indigo-dark) 100%);
}

.tg-grr-reader-list__avatar--2 {
    background: linear-gradient(135deg, var(--grr-green) 0%, #10b981 100%);
}

.tg-grr-reader-list__avatar--3 {
    background: linear-gradient(135deg, var(--grr-coral) 0%, var(--grr-coral-dark) 100%);
}

/* ─── 규칙 카드 ─── */
.tg-grr-rule-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-grr-rule-card {
    padding: 24px 22px;
    background-color: var(--grr-slate-100);
    border: 1px solid var(--grr-slate-200);
    border-radius: 12px;
    position: relative;
    text-align: center;
}

.tg-grr-rule-card__number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--grr-coral) 0%, var(--grr-coral-dark) 100%);
    color: var(--grr-white);
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tg-grr-rule-card__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--grr-coral) 0%, var(--grr-coral-dark) 100%);
    color: var(--grr-white);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.tg-grr-rule-card__icon--group {
    background: linear-gradient(135deg, var(--grr-indigo) 0%, var(--grr-indigo-dark) 100%);
}

.tg-grr-rule-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--grr-slate-900);
    margin-bottom: 8px;
}

.tg-grr-rule-card__text {
    font-size: 14px;
    margin-bottom: 12px;
    text-align: left;
}

/* 7일 타임라인 */
.tg-grr-timeline {
    margin-top: 4px;
}

.tg-grr-timeline__bar {
    height: 8px;
    background-color: var(--grr-slate-200);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.tg-grr-timeline__fill {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, var(--grr-green) 0%, var(--grr-amber) 60%, var(--grr-coral) 100%);
    border-radius: 100px;
    animation: tg-grr-fill 3s ease-out forwards;
}

.tg-grr-timeline__labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--grr-slate-500);
}

.tg-grr-timeline__expired {
    color: var(--grr-coral);
}

/* ─── 꿀팁 (다크 섹션) ─── */
.tg-grr-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-grr-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(165, 180, 252, 0.12);
    padding: 24px 22px;
    border-radius: 12px;
    position: relative;
}

.tg-grr-tip__number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--grr-coral) 0%, var(--grr-coral-dark) 100%);
    color: var(--grr-white);
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

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

.tg-grr-tip__text {
    font-size: 14px;
    color: var(--grr-indigo-border);
}

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

/* ─── 결론 및 요약 ─── */
.tg-grr-summary {
    background: linear-gradient(135deg, #0c0a1e 0%, var(--grr-indigo-deep) 40%, #312e81 100%);
    color: var(--grr-white);
    padding: 44px 28px;
    border-radius: var(--grr-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.4);
}

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

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

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

.tg-grr-summary__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.tg-grr-summary__icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--grr-indigo-border);
}

.tg-grr-summary__icon-circle {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--grr-indigo-border);
    transition: transform 0.2s ease;
}

.tg-grr-summary__icon-circle:hover {
    transform: scale(1.08);
}

.tg-grr-summary__icon-circle--seen {
    background: linear-gradient(135deg, var(--grr-coral) 0%, var(--grr-coral-dark) 100%);
    color: var(--grr-white);
    border-color: var(--grr-coral);
}

.tg-grr-summary__icon-circle--done {
    background: linear-gradient(135deg, var(--grr-green) 0%, #10b981 100%);
    color: var(--grr-white);
    border-color: var(--grr-green);
}

.tg-grr-summary__icon-arrow {
    color: rgba(165, 180, 252, 0.3);
    font-size: 14px;
}

.tg-grr-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-grr-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #e0e7ff;
}

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

.tg-grr-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(--grr-coral-border);
}

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

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

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

/* ============================================
   애니메이션
============================================ */
@keyframes tg-grr-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes tg-grr-fill {
    0% {
        width: 0;
    }

    100% {
        width: 70%;
    }
}

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

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

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

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

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

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

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

    .tg-grr-rule-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

/* ─── 스크롤 등장 ─── */
.tg-grr-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-grr-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}