@charset "utf-8";

/* ============================================
   텔레그램 음성 대화 2.0 가이드 (v1.0.0)
   접두사: tg-voice-
   테마: Broadcast Amber & Midnight
============================================ */

:root {
    --voice-primary: #f59e0b; /* Amber */
    --voice-primary-dark: #d97706;
    --voice-secondary: #fbbf24;
    --voice-bg: #f8fafc;
    --voice-midnight: #0f172a;
    --voice-slate-900: #0f172a;
    --voice-slate-800: #1e293b;
    --voice-slate-600: #475569;
    --voice-slate-100: #f1f5f9;
    
    --voice-radius: 24px;
    --voice-shadow: 0 10px 40px rgba(245, 158, 11, 0.08);
}

/* ============================================
   공통 리셋 및 기초 스타일
============================================ */
#tg-voice-wrapper,
#tg-voice-wrapper *,
#tg-voice-wrapper *::before,
#tg-voice-wrapper *::after {
    box-sizing: border-box !important;
    margin: 0; padding: 0; border: none; outline: none;
    text-decoration: none; list-style: none; font-style: normal;
    -webkit-font-smoothing: antialiased !important;
    word-break: keep-all;
}

#tg-voice-wrapper {
    max-width: 1100px !important;
    margin: 0 auto !important;
    width: 100% !important;
    font-family: 'Pretendard', sans-serif !important;
    background-color: var(--voice-bg) !important;
    color: var(--voice-slate-800) !important;
    padding-bottom: 80px !important;
    overflow: hidden !important;
}

#tg-voice-wrapper strong {
    font-weight: 800 !important;
    color: var(--voice-primary-dark) !important;
}

#tg-voice-wrapper mark {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

/* 아이콘 시스템 (충돌 방지 강화) */
#tg-voice-wrapper .fas, 
#tg-voice-wrapper .fab, 
#tg-voice-wrapper .far {
    display: inline-block !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    color: inherit; /* 기본적으로 부모 색상 상속 */
}

/* ============================================
   히어로 섹션 (가독성 보정 강화)
============================================ */
#tg-voice-wrapper .tg-voice-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('hero.png') no-repeat center center / cover !important;
    padding: 130px 24px !important;
    text-align: center !important;
}

#tg-voice-wrapper .tg-voice-hero__inner {
    max-width: 850px !important;
    margin: 0 auto !important;
}

#tg-voice-wrapper .tg-voice-hero__badge {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fef3c7 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    padding: 10px 24px !important; border-radius: 100px !important;
    font-size: 15px !important; font-weight: 900 !important;
    margin-bottom: 30px !important; backdrop-filter: blur(10px) !important;
}

#tg-voice-wrapper .tg-voice-hero__badge i {
    color: var(--voice-primary) !important;
    animation: broadcast-pulse 1.8s infinite !important;
}

@keyframes broadcast-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

#tg-voice-wrapper .tg-voice-hero__title {
    font-size: 46px !important; font-weight: 950 !important; line-height: 1.2 !important;
    margin-bottom: 24px !important; 
    color: #ffffff !important; /* 명시적 지정 */
    text-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}

#tg-voice-wrapper .tg-voice-hero__desc {
    font-size: 21px !important; line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.95) !important; /* 명시적 지정 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

#tg-voice-wrapper .tg-voice-hero__desc strong {
    color: var(--voice-primary) !important; /* 상단 포인트 컬러 */
}

/* ============================================
   메인 콘텐츠
============================================ */
#tg-voice-wrapper .tg-voice-main {
    padding: 60px 24px !important;
    display: flex !important; flex-direction: column !important; gap: 60px !important;
}

#tg-voice-wrapper .tg-voice-section {
    background: #fff !important; padding: 50px 45px !important; border-radius: var(--voice-radius) !important;
    box-shadow: var(--voice-shadow) !important; border: 1px solid var(--voice-slate-100) !important;
}

#tg-voice-wrapper .tg-voice-section__head {
    display: flex !important; align-items: center !important; gap: 20px !important;
    margin-bottom: 40px !important;
}

#tg-voice-wrapper .tg-voice-section__icon-box {
    width: 64px !important; height: 64px !important;
    background: #fef3c7 !important; color: var(--voice-primary-dark) !important;
    border-radius: 18px !important; display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 30px !important;
}

#tg-voice-wrapper .tg-voice-section__title {
    font-size: 30px !important; font-weight: 900 !important; color: var(--voice-midnight) !important;
}

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

#tg-voice-wrapper .tg-voice-card {
    padding: 40px !important; background: var(--voice-slate-100) !important;
    border-radius: 28px !important; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid transparent !important;
}

#tg-voice-wrapper .tg-voice-card:hover {
    transform: translateY(-10px) !important; background: #fff !important;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1) !important;
    border-color: var(--voice-primary) !important;
}

#tg-voice-wrapper .tg-voice-card__icon {
    font-size: 44px !important; color: var(--voice-primary) !important; margin-bottom: 25px !important; display: block !important;
}

#tg-voice-wrapper .tg-voice-card h3 {
    font-size: 22px !important; font-weight: 850 !important; margin-bottom: 15px !important;
}

/* 리스트 아이템 */
#tg-voice-wrapper .tg-voice-list {
    display: flex !important; flex-direction: column !important; gap: 16px !important;
}

#tg-voice-wrapper .tg-voice-item {
    display: flex !important; align-items: flex-start !important; gap: 20px !important;
    padding: 24px 30px !important; background: var(--voice-slate-100) !important;
    border-radius: 20px !important; border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

#tg-voice-wrapper .tg-voice-item:hover {
    background: #fff !important; border-color: var(--voice-primary) !important;
    transform: translateX(10px) !important;
}

#tg-voice-wrapper .tg-voice-item__icon {
    width: 32px !important; height: 32px !important;
    background: var(--voice-primary) !important; color: #fff !important;
    border-radius: 10px !important; display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 16px !important; flex-shrink: 0 !important; margin-top: 3px !important; /* 수평 정렬 보정 */
}

#tg-voice-wrapper .tg-voice-item__content h4 {
    font-size: 19px !important; font-weight: 850 !important; margin-bottom: 8px !important;
}

/* 팁 박스 (보안/PC 팁) - 가독성 강화 적용 */
#tg-voice-wrapper .tg-voice-tip {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    padding: 35px !important; border-radius: 28px !important;
    margin-top: 30px !important; position: relative !important;
}

#tg-voice-wrapper .tg-voice-tip__label {
    position: absolute !important; top: -15px !important; left: 35px !important;
    background: var(--voice-primary) !important; color: #fff !important;
    padding: 6px 20px !important; border-radius: 50px !important;
    font-weight: 900 !important; font-size: 14px !important; box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3) !important;
}

#tg-voice-wrapper .tg-voice-tip p {
    color: #e2e8f0 !important; /* 외부 스타일 간섭 차단 */
    font-size: 17px !important; line-height: 1.8 !important; margin-bottom: 0 !important;
}

#tg-voice-wrapper .tg-voice-tip strong {
    color: var(--voice-secondary) !important;
}

/* ============================================
   결론 및 요약 (Summary 섹션)
============================================ */
#tg-voice-wrapper .tg-voice-summary {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%) !important;
    padding: 90px 30px !important; border-radius: 45px !important;
    text-align: center !important;
}

#tg-voice-wrapper .tg-voice-summary__title {
    font-size: 38px !important; font-weight: 950 !important; margin-bottom: 50px !important;
    color: #ffffff !important; /* 명시적 지정 */
}

#tg-voice-wrapper .tg-voice-summary__grid {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 25px !important; max-width: 960px !important; margin: 0 auto 60px !important;
}

#tg-voice-wrapper .tg-voice-summary__box {
    background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 35px !important; border-radius: 30px !important;
    transition: all 0.4s ease !important;
}

#tg-voice-wrapper .tg-voice-summary__box:hover {
    background: rgba(245, 158, 11, 0.1) !important; border-color: var(--voice-primary) !important;
    transform: translateY(-5px) !important;
}

/* 요약 섹션 아이콘 - 초강력 명시성 부여 (Specificity Boost) */
html body #tg-voice-wrapper .tg-voice-summary__box i.fas,
html body #tg-voice-wrapper .tg-voice-summary__box i.far {
    font-size: 55px !important; /* 더 크게 확대 */
    color: #ffffff !important; /* 순백색 고정 */
    margin-bottom: 25px !important; 
    display: block !important;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.6) !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4)) !important;
    transition: all 0.3s ease !important;
}

html body #tg-voice-wrapper .tg-voice-summary__box:hover i.fas {
    color: var(--voice-primary) !important;
    transform: scale(1.1) !important;
}

#tg-voice-wrapper .tg-voice-summary__box strong {
    color: #ffffff !important; font-size: 18px !important; display: block !important; margin-bottom: 10px !important;
}

#tg-voice-wrapper .tg-voice-summary__box p {
    color: rgba(255, 255, 255, 0.6) !important; font-size: 15px !important; margin-bottom: 0 !important;
}

/* 최종 체크리스트 (수평 정렬 시스템) */
#tg-voice-wrapper .tg-voice-summary__checklist {
    background: #fff !important; padding: 50px !important; border-radius: 35px !important;
    max-width: 850px !important; margin: 0 auto !important; text-align: left !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4) !important;
}

#tg-voice-wrapper .tg-voice-summary__checklist li {
    display: flex !important; align-items: flex-start !important; gap: 18px !important;
    margin-bottom: 25px !important; color: var(--voice-slate-800) !important;
    font-size: 19px !important; line-height: 1.6 !important;
}

#tg-voice-wrapper .tg-voice-summary__checklist li:last-child { margin-bottom: 0 !important; }

#tg-voice-wrapper .tg-voice-summary__checklist li::before {
    content: "\f058" !important; font-family: "Font Awesome 5 Free" !important; font-weight: 900 !important;
    color: var(--voice-primary) !important; font-size: 28px !important;
    flex-shrink: 0 !important; line-height: 1 !important; margin-top: 2px !important;
}

#tg-voice-wrapper .tg-voice-summary__footer {
    margin-top: 60px !important; font-size: 17px !important; 
    color: rgba(255, 255, 255, 0.75) !important; line-height: 1.8 !important;
}

#tg-voice-wrapper .tg-voice-summary__footer a {
    color: var(--voice-secondary) !important; text-decoration: underline !important; font-weight: 800 !important;
}

/* 애니메이션 */
.tg-voice-motion {
    opacity: 0 !important; transform: translateY(30px) !important;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.tg-voice-motion.is-visible {
    opacity: 1 !important; transform: translateY(0) !important;
}

/* 반응형 */
@media (max-width: 768px) {
    #tg-voice-wrapper .tg-voice-hero__title { font-size: 32px !important; }
    #tg-voice-wrapper .tg-voice-section { padding: 40px 24px !important; }
    #tg-voice-wrapper .tg-voice-summary__checklist { padding: 35px 25px !important; }
}
