/* 
 * 텔레그램 한글사이트 - 다중 계정 가이드 스타일시트
 * 목적: 게시판 전용 와이드 레이아웃 및 테마 스타일링
 */

/* [필수] 그누보드5 기존 CSS 충돌 방지용 완전 리셋 */
#tg-ma-wrapper,
#tg-ma-wrapper *,
#tg-ma-wrapper *::before,
#tg-ma-wrapper *::after {
    box-sizing: border-box;
    margin: 0; padding: 0; border: none;
    outline: none; text-decoration: none;
    list-style: none; background: none;
    font-style: normal;
}

/* 변수 설정 */
:root {
    --ma-primary: #6366f1;
    --ma-primary-dark: #4f46e5;
    --ma-secondary: #a855f7;
    --ma-text: #1e293b;
    --ma-text-light: #64748b;
    --ma-slate-300: #cbd5e1;
    --ma-white: #ffffff;
    --ma-gray-50: #f8fafc;
    --ma-gray-100: #f1f5f9;
    --ma-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* 기본 스타일 보전 */
#tg-ma-wrapper p {
    margin-bottom: 16px !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    color: var(--ma-text);
}
#tg-ma-wrapper p:last-child {
    margin-bottom: 0 !important;
}

#tg-ma-wrapper strong {
    font-weight: 700 !important;
    color: var(--ma-primary) !important;
}

/* 최상위 래퍼 (와이드 레이아웃) */
#tg-ma-wrapper.tg-ma-wrapper {
    max-width: 1100px !important;
    margin: 0 auto !important;
    width: 100% !important;
    background: var(--ma-white) !important;
    overflow: hidden !important;
    position: relative !important;
    font-family: 'Pretendard', sans-serif !important;
}

/* 히어로 섹션 */
#tg-ma-wrapper .tg-ma-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    padding: 100px 40px !important;
    text-align: center !important;
    color: var(--ma-white) !important;
    position: relative !important;
    overflow: hidden !important;
}

#tg-ma-wrapper .tg-ma-hero::before {
    content: '' !important;
    position: absolute !important;
    top: -50px !important;
    right: -50px !important;
    width: 250px !important;
    height: 250px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    z-index: 1 !important;
}

#tg-ma-wrapper .tg-ma-hero__inner {
    position: relative !important;
    z-index: 2 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

#tg-ma-wrapper .tg-ma-hero__icon-group {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

#tg-ma-wrapper .tg-ma-hero__icon-box {
    width: 70px !important;
    height: 70px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#tg-ma-wrapper .tg-ma-hero__badge {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 10px 20px !important;
    border-radius: 100px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    letter-spacing: 1px !important;
}

#tg-ma-wrapper .tg-ma-hero__title {
    font-size: clamp(32px, 5vw, 48px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
}

#tg-ma-wrapper .tg-ma-hero__title span {
    color: #fcd34d !important;
}

#tg-ma-wrapper .tg-ma-hero__desc {
    font-size: 20px !important;
    opacity: 0.9 !important;
    font-weight: 400 !important;
}

/* 메인 영역 */
#tg-ma-wrapper .tg-ma-main {
    padding: 60px 40px !important;
}

#tg-ma-wrapper .tg-ma-section {
    margin-bottom: 80px !important;
}

#tg-ma-wrapper .tg-ma-section__head {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 35px !important;
}

#tg-ma-wrapper .tg-ma-section__icon {
    width: 50px !important;
    height: 50px !important;
    background: var(--ma-gray-100) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ma-primary) !important;
    font-size: 22px !important;
}

#tg-ma-wrapper .tg-ma-section__title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--ma-text) !important;
}

/* 그리드 */
#tg-ma-wrapper .tg-ma-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
}

#tg-ma-wrapper .tg-ma-card {
    background: var(--ma-white) !important;
    padding: 40px 30px !important;
    border-radius: 28px !important;
    border: 1px solid var(--ma-gray-100) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

#tg-ma-wrapper .tg-ma-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--ma-shadow) !important;
    border-color: var(--ma-primary) !important;
}

#tg-ma-wrapper .tg-ma-card__icon-wrap {
    margin-bottom: 25px !important;
}

#tg-ma-wrapper .tg-ma-card__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: var(--ma-text) !important;
}

#tg-ma-wrapper .tg-ma-card__desc {
    font-size: 15px !important;
    color: var(--ma-text-light) !important;
}

/* 다크 섹션 */
#tg-ma-wrapper .tg-ma-section--dark {
    background: #0f172a !important;
    margin: 0 -40px 80px !important;
    padding: 80px 40px !important;
    border-radius: 40px !important;
}

#tg-ma-wrapper .tg-ma-section--dark .tg-ma-section__inner {
    max-width: 900px !important;
    margin: 0 auto !important;
}

#tg-ma-wrapper .tg-ma-section--dark .tg-ma-section__title {
    color: var(--ma-white) !important;
}

#tg-ma-wrapper .tg-ma-section--dark .tg-ma-section__icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--ma-secondary) !important;
}

#tg-ma-wrapper .tg-ma-section--dark p {
    color: var(--ma-slate-300) !important;
}

#tg-ma-wrapper .tg-ma-section--dark strong {
    color: var(--ma-white) !important;
}

#tg-ma-wrapper .tg-ma-section--dark h4 {
    color: var(--ma-white) !important;
}

#tg-ma-wrapper .tg-ma-process {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}

#tg-ma-wrapper .tg-ma-step {
    display: flex !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    padding: 30px !important;
    gap: 25px !important;
    align-items: flex-start !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#tg-ma-wrapper .tg-ma-step__num {
    background: var(--ma-secondary) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}

#tg-ma-wrapper .tg-ma-step__content h4 {
    font-size: 19px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: var(--ma-white) !important;
}

/* 팁박스 */
#tg-ma-wrapper .tg-ma-tip {
    display: flex !important;
    gap: 25px !important;
    background: var(--ma-gray-50) !important;
    padding: 30px !important;
    border-radius: 24px !important;
    align-items: center !important;
    border: 1px solid var(--ma-gray-100) !important;
}

#tg-ma-wrapper .tg-ma-tip__icon {
    width: 55px !important;
    height: 55px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#tg-ma-wrapper .tg-ma-tip__badge {
    display: inline-block !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

/* 요약 섹션 */
#tg-ma-wrapper .tg-ma-summary {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    padding: 80px 40px !important;
    border-radius: 40px !important;
    color: var(--ma-white) !important;
}

#tg-ma-wrapper .tg-ma-summary__inner {
    max-width: 800px !important;
    margin: 0 auto !important;
}

#tg-ma-wrapper .tg-ma-summary__title {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 50px !important;
    text-align: center !important;
    color: var(--ma-white) !important;
}

#tg-ma-wrapper .tg-ma-formula {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
    flex-wrap: wrap !important;
}

#tg-ma-wrapper .tg-ma-formula__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
}

#tg-ma-wrapper .tg-ma-formula__icon {
    width: 80px !important;
    height: 80px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    color: var(--ma-slate-300) !important;
}

#tg-ma-wrapper .tg-ma-formula__icon--active {
    background: var(--ma-primary) !important;
    color: var(--ma-white) !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4) !important;
}

#tg-ma-wrapper .tg-ma-formula__text {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--ma-white) !important;
}

#tg-ma-wrapper .tg-ma-checklist {
    text-align: left !important;
    max-width: 600px !important;
    margin: 0 auto 50px !important;
}

#tg-ma-wrapper .tg-ma-checklist li {
    position: relative !important;
    padding-left: 35px !important;
    margin-bottom: 20px !important;
    font-size: 17px !important;
    color: var(--ma-slate-300) !important;
}

#tg-ma-wrapper .tg-ma-checklist li::before {
    content: '\f00c' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--ma-primary) !important;
}

#tg-ma-wrapper .tg-ma-checklist li strong {
    color: var(--ma-white) !important;
}

#tg-ma-wrapper .tg-ma-footer {
    font-size: 16px !important;
    color: var(--ma-text-light) !important;
    padding-top: 40px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

/* 애니메이션 */
#tg-ma-wrapper .tg-ma-motion {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#tg-ma-wrapper .tg-ma-motion.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    #tg-ma-wrapper .tg-ma-main { padding: 40px 20px !important; }
    #tg-ma-wrapper .tg-ma-hero { padding: 80px 20px !important; }
    #tg-ma-wrapper .tg-ma-hero__icon-group { gap: 10px !important; }
    #tg-ma-wrapper .tg-ma-section--dark { margin: 0 -20px 80px !important; padding: 60px 20px !important; }
    #tg-ma-wrapper .tg-ma-formula { gap: 15px !important; }
}
