/* 
 * 텔레그램 자동 삭제 가이드 전용 스타일
 * Root ID: #ag-telegram-autodelete
 */

#ag-telegram-autodelete {
    max-width: 1100px;
    margin: 20px auto !important;
    width: 100% !important;
    font-family: 'Pretendard', sans-serif !important;
    color: #334155 !important;
    line-height: 1.8 !important;
    background-color: #f1f5f9 !important;
    padding: 30px 20px !important;
    box-sizing: border-box !important;
    border-radius: 40px !important;
    letter-spacing: -0.01em !important;
}

/* 텍스트 컬러 완벽 방어 시스템 (Text Color Protection) */
#ag-telegram-autodelete p, 
#ag-telegram-autodelete h1, 
#ag-telegram-autodelete h2, 
#ag-telegram-autodelete h3, 
#ag-telegram-autodelete h4, 
#ag-telegram-autodelete ul, 
#ag-telegram-autodelete li,
#ag-telegram-autodelete span,
#ag-telegram-autodelete strong,
#ag-telegram-autodelete i {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
}

/* 헤더 - 시간의 소멸 테마 (Sky to Deep Blue) */
#ag-telegram-autodelete .ag-header {
    text-align: center !important;
    margin-bottom: 60px !important;
    padding: 100px 20px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%) !important;
    border-radius: 35px !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
}

#ag-telegram-autodelete .ag-clock-container {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto 35px !important;
    border: 4px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

#ag-telegram-autodelete .ag-clock-hand {
    position: absolute !important;
    width: 4px !important;
    height: 50px !important;
    background: #ffffff !important;
    top: 20px !important;
    left: calc(50% - 2px) !important;
    transform-origin: bottom center !important;
    animation: ag-rotate 4s infinite linear !important;
    border-radius: 2px !important;
}

#ag-telegram-autodelete .ag-hourglass-icon {
    font-size: 3.5rem !important;
    z-index: 2 !important;
}

#ag-telegram-autodelete .ag-vanishing-dots {
    position: absolute !important;
    bottom: -20px !important;
    display: flex !important;
    gap: 8px !important;
}

#ag-telegram-autodelete .ag-vanishing-dots span {
    width: 8px !important;
    height: 8px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    animation: ag-vanish 1.5s infinite ease-in-out !important;
}

#ag-telegram-autodelete .ag-vanishing-dots span:nth-child(2) { animation-delay: 0.3s !important; }
#ag-telegram-autodelete .ag-vanishing-dots span:nth-child(3) { animation-delay: 0.6s !important; }

@keyframes ag-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ag-vanish { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(20px); } }

#ag-telegram-autodelete .ag-header__title {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    word-break: keep-all !important;
}

#ag-telegram-autodelete .ag-header__subtitle {
    font-size: 1.3rem !important;
    color: rgba(255,255,255,0.85) !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* 섹션 타이틀 */
#ag-telegram-autodelete .ag-section__title {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

#ag-telegram-autodelete .ag-section__title i { color: #0ea5e9 !important; }

/* 1. 작동 원리 그리드 */
#ag-telegram-autodelete .ag-logic-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 70px !important;
}

#ag-telegram-autodelete .ag-logic-card {
    background: #ffffff !important;
    padding: 35px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

#ag-telegram-autodelete .ag-logic-card__icon {
    font-size: 2.2rem !important;
    color: #0ea5e9 !important;
    margin-bottom: 10px !important;
}

#ag-telegram-autodelete .ag-logic-card h4 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

#ag-telegram-autodelete .ag-logic-card p {
    font-size: 1.05rem !important;
    color: #64748b !important;
}

/* 2. 설정 방법 컨테이너 */
#ag-telegram-autodelete .ag-method-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
    margin-bottom: 70px !important;
}

#ag-telegram-autodelete .ag-method-box {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 30px !important;
    border: 1px solid #e2e8f0 !important;
}

#ag-telegram-autodelete .ag-method-box--accent {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
}

#ag-telegram-autodelete .ag-method-box__header {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-bottom: 30px !important;
    display: block !important;
    border-bottom: 2px solid #0ea5e9 !important;
    padding-bottom: 10px !important;
}

#ag-telegram-autodelete .ag-step-list {
    list-style: none !important;
}

#ag-telegram-autodelete .ag-step-list li {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    padding-left: 30px !important;
    position: relative !important;
}

#ag-telegram-autodelete .ag-step-list li::before {
    content: '\f058' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    color: #22c55e !important;
}

#ag-telegram-autodelete .ag-method-desc {
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
    margin-bottom: 30px !important;
}

#ag-telegram-autodelete .ag-path-badge {
    background: rgba(14, 165, 233, 0.2) !important;
    border: 1px dashed #0ea5e9 !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    font-family: monospace !important;
    color: #38bdf8 !important;
    text-align: center !important;
}

/* 3. 차이점 테이블 */
#ag-telegram-autodelete .ag-diff-table {
    background: #ffffff !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}

#ag-telegram-autodelete .ag-diff-row {
    display: grid !important;
    grid-template-columns: 250px 1fr !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

#ag-telegram-autodelete .ag-diff-row:last-child { border-bottom: none !important; }

#ag-telegram-autodelete .ag-diff-cell {
    padding: 25px 35px !important;
    font-size: 1.1rem !important;
}

#ag-telegram-autodelete .ag-diff-cell--label {
    background: #f8fafc !important;
    font-weight: 800 !important;
    color: #334155 !important;
    border-right: 1px solid #f1f5f9 !important;
}

/* 보안 알림 배너 */
#ag-telegram-autodelete .ag-security-alert {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    padding: 35px !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    margin-top: 60px !important;
}

#ag-telegram-autodelete .ag-alert-icon {
    font-size: 3rem !important;
    color: #f59e0b !important;
}

#ag-telegram-autodelete .ag-alert-content strong {
    display: block !important;
    font-size: 1.25rem !important;
    color: #92400e !important;
    margin-bottom: 8px !important;
}

#ag-telegram-autodelete .ag-alert-content p {
    font-size: 1.1rem !important;
    color: #b45309 !important;
}

/* 푸터 */
#ag-telegram-autodelete .ag-footer {
    text-align: center !important;
    padding: 60px 0 20px !important;
    border-top: 1px solid #e2e8f0 !important;
}

#ag-telegram-autodelete .ag-footer__text a {
    color: #0ea5e9 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* 반응형 */
@media (max-width: 950px) {
    #ag-telegram-autodelete .ag-logic-grid { grid-template-columns: 1fr !important; }
    #ag-telegram-autodelete .ag-method-container { grid-template-columns: 1fr !important; }
    #ag-telegram-autodelete .ag-diff-row { grid-template-columns: 1fr !important; }
    #ag-telegram-autodelete .ag-diff-cell--label { border-right: none !important; border-bottom: 1px solid #f1f5f9 !important; }
}

@media (max-width: 600px) {
    #ag-telegram-autodelete .ag-header__title { font-size: 2.1rem !important; }
    #ag-telegram-autodelete .ag-mobile-only { display: block !important; }
    #ag-telegram-autodelete .ag-security-alert { flex-direction: column !important; text-align: center !important; }
}
@media (min-width: 601px) { #ag-telegram-autodelete .ag-mobile-only { display: none !important; } }
