/* 
 * 텔레그램 그룹 생성 가이드 전용 스타일
 * Root ID: #ag-telegram-create-group
 */

#ag-telegram-create-group {
    max-width: 1100px;
    margin: 20px auto !important;
    width: 100% !important;
    font-family: 'Pretendard', sans-serif !important;
    color: #333333 !important;
    line-height: 1.8 !important;
    background-color: #f0f7ff !important; /* 소프트 스카이 블루 배경 */
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    border-radius: 25px !important;
    letter-spacing: -0.01em !important;
}

/* 텍스트 간섭 차단 Reset & 컬러 방어 */
#ag-telegram-create-group p, 
#ag-telegram-create-group h1, 
#ag-telegram-create-group h2, 
#ag-telegram-create-group h3, 
#ag-telegram-create-group h4, 
#ag-telegram-create-group ul, 
#ag-telegram-create-group li,
#ag-telegram-create-group span {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
}

/* 헤더 - 컬러 방어 강화 (Creation Blue Gradient) */
#ag-telegram-create-group .ag-header {
    text-align: center !important;
    margin-bottom: 50px !important;
    padding: 80px 20px !important;
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%) !important;
    border-radius: 30px !important;
    color: #ffffff !important;
    display: block !important;
    position: relative !important;
}

#ag-telegram-create-group .ag-header__icon-pulse {
    width: 100px !important;
    height: 100px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 25px !important;
    animation: ag-pulse 2s infinite !important;
}

#ag-telegram-create-group .ag-header__icon { font-size: 3rem !important; color: #ffffff !important; }

@keyframes ag-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

#ag-telegram-create-group .ag-header__title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    word-break: keep-all !important;
    display: block !important;
}

#ag-telegram-create-group .ag-header__subtitle {
    font-size: 1.25rem !important;
    color: #ffffff !important;
    opacity: 0.9 !important;
    display: block !important;
}

/* 섹션 공통 */
#ag-telegram-create-group .ag-section__title {
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    color: #0d47a1 !important;
    margin-bottom: 35px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

#ag-telegram-create-group .ag-section__title i { color: #2196f3 !important; }

/* 1. 기기별 그리드 */
#ag-telegram-create-group .ag-device-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 60px !important;
}

#ag-telegram-create-group .ag-device-card {
    background: #ffffff !important;
    padding: 35px 25px !important;
    border-radius: 20px !important;
    border: 1px solid #bbdefb !important;
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.05) !important;
}

#ag-telegram-create-group .ag-device-card__header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1565c0 !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #e3f2fd !important;
}

#ag-telegram-create-group .ag-device-card__header i { font-size: 1.4rem !important; }

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

#ag-telegram-create-group .ag-step-list li {
    font-size: 0.95rem !important;
    color: #444444 !important;
    margin-bottom: 12px !important;
    position: relative !important;
    padding-left: 20px !important;
}

#ag-telegram-create-group .ag-step-list li::before {
    content: '\f0da' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    color: #2196f3 !important;
}

/* 2. 특징 인포 그리드 */
#ag-telegram-create-group .ag-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 60px !important;
}

#ag-telegram-create-group .ag-info-card {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 20px !important;
    text-align: center !important;
    border: 1px solid #bbdefb !important;
}

#ag-telegram-create-group .ag-info-card i {
    font-size: 2.2rem !important;
    color: #2196f3 !important;
    margin-bottom: 15px !important;
    display: block !important;
}

#ag-telegram-create-group .ag-info-card h4 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0d47a1 !important;
    margin-bottom: 10px !important;
}

#ag-telegram-create-group .ag-info-card p { font-size: 0.95rem !important; color: #666666 !important; }

#ag-telegram-create-group .ag-info-card--full { grid-column: span 2 !important; }

#ag-telegram-create-group .ag-split {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
}

#ag-telegram-create-group .ag-split__divider {
    width: 2px !important;
    height: 60px !important;
    background: #e3f2fd !important;
}

#ag-telegram-create-group .ag-split__item { flex: 1 !important; text-align: center !important; }

/* 3. 보안 주의사항 박스 */
#ag-telegram-create-group .ag-caution-box {
    background: #ffffff !important;
    border: 2px solid #ef5350 !important;
    border-radius: 25px !important;
    padding: 40px !important;
    margin-bottom: 60px !important;
}

#ag-telegram-create-group .ag-caution-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}

#ag-telegram-create-group .ag-caution-header i { font-size: 2rem !important; color: #ef5350 !important; }

#ag-telegram-create-group .ag-caution-header h3 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #b71c1c !important;
}

#ag-telegram-create-group .ag-caution-item {
    background: #fff5f5 !important;
    padding: 20px !important;
    border-radius: 15px !important;
    margin-bottom: 15px !important;
}

#ag-telegram-create-group .ag-caution-item:last-child { margin-bottom: 0 !important; }

#ag-telegram-create-group .ag-caution-item p { font-size: 1rem !important; color: #444444 !important; }

#ag-telegram-create-group .ag-caution-item--alert { background: #fee2e2 !important; border-left: 5px solid #ef5350 !important; }

/* 푸터 */
#ag-telegram-create-group .ag-footer {
    text-align: center !important;
    padding: 40px 0 20px !important;
    border-top: 1px solid #bbdefb !important;
}

#ag-telegram-create-group .ag-footer__text a {
    color: #1565c0 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #1565c0 !important;
}

/* 반응형 */
@media (max-width: 950px) {
    #ag-telegram-create-group .ag-device-grid { grid-template-columns: 1fr !important; }
    #ag-telegram-create-group .ag-info-grid { grid-template-columns: 1fr !important; }
    #ag-telegram-create-group .ag-info-card--full { grid-column: span 1 !important; }
    #ag-telegram-create-group .ag-split { flex-direction: column !important; gap: 30px !important; }
    #ag-telegram-create-group .ag-split__divider { width: 100% !important; height: 2px !important; }
}

@media (max-width: 600px) {
    #ag-telegram-create-group .ag-header__title { font-size: 1.8rem !important; }
    #ag-telegram-create-group .ag-mobile-only { display: block !important; }
}
@media (min-width: 601px) { #ag-telegram-create-group .ag-mobile-only { display: none !important; } }
