@charset "utf-8";

/* ============================================
   텔레그램 날짜별 메시지 삭제 가이드
   접두사: tg-dmd- (기존 사이트 오염 방지)
   컬러 톤: 딥 사이언(Deep Cyan) + 코랄 레드(Coral Red)
============================================ */

:root {
    --dmd-cyan: #0891b2;
    --dmd-cyan-dark: #0e7490;
    --dmd-cyan-deep: #164e63;
    --dmd-cyan-light: #ecfeff;
    --dmd-cyan-border: #67e8f9;
    --dmd-coral: #e11d48;
    --dmd-coral-light: #fff1f2;
    --dmd-coral-border: #fda4af;
    --dmd-orange: #ea580c;
    --dmd-green: #059669;
    --dmd-green-light: #d1fae5;
    --dmd-slate-900: #0f172a;
    --dmd-slate-700: #334155;
    --dmd-slate-500: #64748b;
    --dmd-slate-300: #cbd5e1;
    --dmd-slate-200: #e2e8f0;
    --dmd-slate-100: #f1f5f9;
    --dmd-bg: #f0fdfa;
    --dmd-white: #ffffff;
    --dmd-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-dmd-hero {
    background: linear-gradient(145deg, #020617 0%, #164e63 30%, #0891b2 65%, #67e8f9 100%);
    color: var(--dmd-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-dmd-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(8, 145, 178, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-dmd-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(103, 232, 249, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

.tg-dmd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2) 0%, rgba(253, 164, 175, 0.1) 100%);
    color: var(--dmd-coral-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(253, 164, 175, 0.25);
    backdrop-filter: blur(4px);
}

.tg-dmd-hero__badge i {
    font-size: 16px;
    color: var(--dmd-coral-border);
}

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

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

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

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

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

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

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

.tg-dmd-section--dark {
    background: linear-gradient(135deg, var(--dmd-cyan-deep) 0%, #155e75 50%, var(--dmd-cyan-dark) 100%);
    border-color: var(--dmd-cyan);
    color: var(--dmd-slate-300);
}

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

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

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

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

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

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

.tg-dmd-section__desc--light {
    color: var(--dmd-cyan-border);
}

.tg-dmd-section__desc--light strong {
    color: var(--dmd-white);
}

/* ─── 스텝 리스트 ─── */
.tg-dmd-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-dmd-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--dmd-slate-100);
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--dmd-cyan-border);
    transition: border-left-color 0.2s ease;
}

.tg-dmd-step:hover {
    border-left-color: var(--dmd-cyan);
}

.tg-dmd-step--highlight {
    background: linear-gradient(135deg, var(--dmd-cyan-light) 0%, #cffafe 100%);
    border-left-color: var(--dmd-cyan);
}

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

.tg-dmd-step__marker--highlight {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

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

.tg-dmd-step__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dmd-slate-900);
    margin-bottom: 6px;
}

.tg-dmd-step__text {
    font-size: 15px;
    padding-top: 3px;
}

.tg-dmd-step__text p {
    margin-bottom: 10px;
}

.tg-dmd-step__arrow {
    font-size: 11px;
    color: var(--dmd-cyan);
    margin: 0 4px;
}

/* ─── 날짜 헤더 비주얼 ─── */
.tg-dmd-date-header-visual {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.tg-dmd-date-header-visual__bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #e0f2fe, #cffafe);
    border: 1px solid var(--dmd-cyan-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dmd-cyan-deep);
    position: relative;
    animation: tg-dmd-pulse 2s ease-in-out infinite;
}

.tg-dmd-date-header-visual__cursor {
    font-size: 16px;
    color: var(--dmd-coral);
    animation: tg-dmd-tap 1.5s ease-in-out infinite;
}

.tg-dmd-date-header-visual__label {
    letter-spacing: 0.5px;
}

/* ─── 캘린더 미니 비주얼 ─── */
.tg-dmd-calendar-visual {
    margin: 16px 0;
    background-color: var(--dmd-white);
    border: 1px solid var(--dmd-slate-200);
    border-radius: 12px;
    padding: 16px;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tg-dmd-calendar-visual__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dmd-slate-900);
}

.tg-dmd-calendar-visual__header i {
    font-size: 11px;
    color: var(--dmd-slate-500);
    cursor: pointer;
}

.tg-dmd-calendar-visual__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.tg-dmd-calendar-visual__day {
    font-size: 11px;
    font-weight: 700;
    color: var(--dmd-slate-500);
    padding: 4px 0;
}

.tg-dmd-calendar-visual__date {
    font-size: 13px;
    padding: 6px 0;
    border-radius: 6px;
    color: var(--dmd-slate-700);
    transition: background-color 0.2s ease;
}

.tg-dmd-calendar-visual__date--start {
    background: linear-gradient(135deg, var(--dmd-coral) 0%, #f43f5e 100%);
    color: var(--dmd-white);
    font-weight: 700;
    border-radius: 6px 0 0 6px;
}

.tg-dmd-calendar-visual__date--range {
    background-color: var(--dmd-coral-light);
    color: var(--dmd-coral);
    font-weight: 600;
    border-radius: 0;
}

.tg-dmd-calendar-visual__date--end {
    background: linear-gradient(135deg, var(--dmd-coral) 0%, #f43f5e 100%);
    color: var(--dmd-white);
    font-weight: 700;
    border-radius: 0 6px 6px 0;
}

/* ─── 선택 옵션 카드(하루/범위) ─── */
.tg-dmd-select-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.tg-dmd-select-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background-color: var(--dmd-white);
    border-radius: 10px;
    border: 1px solid var(--dmd-slate-200);
}

.tg-dmd-select-option__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--dmd-cyan) 0%, var(--dmd-cyan-dark) 100%);
    color: var(--dmd-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tg-dmd-select-option__icon--range {
    background: linear-gradient(135deg, var(--dmd-coral) 0%, #f43f5e 100%);
}

.tg-dmd-select-option__body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.tg-dmd-select-option__body span {
    font-size: 13px;
}

/* ─── 삭제 옵션 비주얼(나에게만/상대방에게도) ─── */
.tg-dmd-delete-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.tg-dmd-delete-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--dmd-slate-200);
    background-color: var(--dmd-slate-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-dmd-delete-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tg-dmd-delete-option--me {
    border-left: 3px solid var(--dmd-cyan);
}

.tg-dmd-delete-option--both {
    border-left: 3px solid var(--dmd-coral);
    background: linear-gradient(135deg, var(--dmd-coral-light) 0%, #ffe4e6 100%);
}

.tg-dmd-delete-option__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--dmd-cyan) 0%, var(--dmd-cyan-dark) 100%);
    color: var(--dmd-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tg-dmd-delete-option--both .tg-dmd-delete-option__icon {
    background: linear-gradient(135deg, var(--dmd-coral) 0%, #f43f5e 100%);
}

.tg-dmd-delete-option__body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.tg-dmd-delete-option__body span {
    font-size: 13px;
}

.tg-dmd-delete-option--both .tg-dmd-delete-option__body strong {
    color: var(--dmd-coral);
}

/* ─── 경고 박스 ─── */
.tg-dmd-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 10px;
}

.tg-dmd-warning-box__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--dmd-orange) 0%, #f97316 100%);
    color: var(--dmd-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.tg-dmd-warning-box p {
    font-size: 14px;
    color: var(--dmd-slate-700);
    padding-top: 4px;
}

.tg-dmd-warning-box strong {
    color: var(--dmd-coral);
}

/* ─── PC 팁 카드 (다크 섹션 내) ─── */
.tg-dmd-pc-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-dmd-pc-tip {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(103, 232, 249, 0.15);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

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

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

.tg-dmd-pc-tip__title i {
    color: var(--dmd-cyan-border);
    margin-right: 4px;
}

.tg-dmd-pc-tip__text {
    font-size: 14px;
    color: var(--dmd-cyan-border);
}

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

/* PC 보안 강화 노트 */
.tg-dmd-pc-security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(253, 164, 175, 0.2);
    border-radius: 10px;
    font-size: 14px;
    color: var(--dmd-cyan-border);
}

.tg-dmd-pc-security-note i {
    font-size: 18px;
    color: var(--dmd-coral-border);
    flex-shrink: 0;
}

.tg-dmd-pc-security-note strong {
    color: var(--dmd-white);
}

/* ─── 타이머 카드 (자동 삭제) ─── */
.tg-dmd-timer-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.tg-dmd-timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: linear-gradient(135deg, var(--dmd-cyan-light) 0%, #cffafe 100%);
    border: 1px solid var(--dmd-cyan-border);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-dmd-timer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.12);
}

.tg-dmd-timer-card__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--dmd-cyan) 0%, var(--dmd-cyan-dark) 100%);
    color: var(--dmd-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-dmd-timer-card strong {
    font-size: 16px;
}

.tg-dmd-timer-card span {
    font-size: 12px;
    color: var(--dmd-slate-500);
}

/* ─── 인라인 노트 ─── */
.tg-dmd-note-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 18px;
    background-color: var(--dmd-cyan-light);
    border: 1px solid #a5f3fc;
    border-radius: 10px;
    font-size: 14px;
    color: var(--dmd-cyan-deep);
}

.tg-dmd-note-inline i {
    font-size: 18px;
    color: var(--dmd-cyan);
    flex-shrink: 0;
}

.tg-dmd-note-inline strong {
    color: var(--dmd-cyan-deep);
}

/* ─── 결론 및 요약 ─── */
.tg-dmd-summary {
    background: linear-gradient(135deg, #020617 0%, var(--dmd-cyan-deep) 50%, #155e75 100%);
    color: var(--dmd-white);
    padding: 44px 28px;
    border-radius: var(--dmd-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(22, 78, 99, 0.4);
}

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

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

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

/* 요약 아이콘 프로세스 */
.tg-dmd-summary__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 28px 0;
}

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

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

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

.tg-dmd-summary__icon-circle--range {
    background: linear-gradient(135deg, var(--dmd-coral) 0%, #f43f5e 100%);
    color: var(--dmd-white);
    border-color: var(--dmd-coral);
}

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

.tg-dmd-summary__icon-arrow {
    color: rgba(103, 232, 249, 0.3);
    font-size: 14px;
}

/* 체크리스트 */
.tg-dmd-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-dmd-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #ccfbf1;
}

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

.tg-dmd-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(--dmd-cyan-border);
}

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

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

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

/* ============================================
   애니메이션 키프레임
============================================ */
@keyframes tg-dmd-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.2);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(8, 145, 178, 0);
    }
}

@keyframes tg-dmd-tap {

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

    40% {
        transform: translateY(3px);
    }

    60% {
        transform: translateY(0);
    }
}

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

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

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

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

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

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

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

    /* 캘린더 가운데 정렬 */
    .tg-dmd-calendar-visual {
        margin-left: 0;
    }

    /* 삭제 옵션 2열 */
    .tg-dmd-delete-options {
        flex-direction: row;
    }

    .tg-dmd-delete-option {
        flex: 1;
    }

    /* 선택 옵션 2열 */
    .tg-dmd-select-options {
        flex-direction: row;
    }

    .tg-dmd-select-option {
        flex: 1;
    }

    /* PC 팁 3열 */
    .tg-dmd-pc-tips {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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