/* =========================================================
[DUJJONCU CSS ARCHITECTURE - CHAT UI]

⚙️ 기본 설정 (Base Settings)

🔘 플로팅 챗 버튼 & 뱃지 (Floating Button & Badge)

🪟 팝업 모달 레이아웃 (Chat Modal Layout)

📑 좌측 탭 메뉴 (Sidebar & Tabs)

💬 우측 메인 대화 영역 (Main Chat Area & Ticker)

✍️ 입력창 컨트롤 (Input Area)

✨ 특수 배너 & 애니메이션 (Banners & Animations)
========================================================= */

/* =========================================

⚙️ 기본 설정 (Base Settings)
========================================= */
.hidden {
display: none !important;
}

/* =========================================
2. 🔘 플로팅 챗 버튼 & 뱃지 (Floating Button & Badge)
========================================= */
/* 우측 하단 플로팅 버튼 (입체감 추가) */
.chat-floating-btn {
position: fixed;
right: 20px;
bottom: 90px; /* 하단 메뉴바와 겹치지 않게 여백 확보 */
z-index: 50000; /* 무조건 최상단 노출 */
width: 60px;
height: 60px;
background: linear-gradient(135deg, #14F195, #0ea5e9);
border: 3px solid #fff;
border-radius: 50%;
font-family: 'Galmuri9', sans-serif;
font-size: 24px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 4px 15px rgba(20, 241, 149, 0.5);
transition: transform 0.1s;
}
.chat-floating-btn:active {
transform: scale(0.9);
}

/* 안읽은 메시지 빨간 N 뱃지 */
.chat-new-badge {
position: absolute;
top: -6px;
right: -6px;
z-index: 50001; /* 버튼보다 1단계 위 */
pointer-events: none; /* 뱃지를 눌러도 버튼이 눌리도록 처리 */
background-color: #ff3b30;
color: white;
font-size: 11px;
font-weight: 900;
padding: 3px 6px;
border-radius: 10px;
border: 2px solid #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* =========================================
3. 🪟 팝업 모달 레이아웃 (Chat Modal Layout)
========================================= */
/* 채팅 모달 창 (고급스러운 다크 & 골드 테두리) */
.chat-modal {
position: fixed;
bottom: 90px;
right: 20px;
width: 340px;
height: 500px;
background-color: #111;
border: 3px solid #FFD700; /* VIP 골드 */
border-radius: 16px;
z-index: 9998;
display: flex;
flex-direction: column;
box-shadow: 0 10px 30px rgba(0,0,0,0.8);
font-family: 'Galmuri9', sans-serif;
overflow: hidden;
}

/* 레이아웃 분할 */
.chat-layout {
display: flex;
height: 100%;
}

/* 우측 메인 영역 뼈대 */
.chat-main {
flex-grow: 1;
display: flex;
flex-direction: column;
background-color: #0a0a0a;
}

/* 닫기 버튼 */
.chat-close-btn {
position: absolute;
top: 10px;
right: 10px;
width: 28px;
height: 28px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
border: none;
border-radius: 50%;
font-weight: bold;
cursor: pointer;
z-index: 10;
backdrop-filter: blur(5px);
}

/* =========================================
4. 📑 좌측 탭 메뉴 (Sidebar & Tabs)
========================================= */
/* 좌측 탭 영역 */
.chat-sidebar {
width: 65px;
background-color: #1a1a1a;
display: flex;
flex-direction: column;
border-right: 2px solid #333;
}

.chat-tab {
height: 80px;
background: none;
border: none;
border-bottom: 1px solid #333;
color: #666;
font-family: inherit;
font-size: 13px;
cursor: pointer;
transition: 0.2s;
}

.chat-tab.active {
background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1));
color: #FFD700;
font-weight: bold;
border-right: 3px solid #FFD700;
}

/* =========================================
5. 💬 우측 메인 대화 영역 (Main Chat Area)
========================================= */
/* VIP 전광판 (두쫀쿠 적용) */
.vip-ticker {
background-color: #000;
color: #14F195;
padding: 8px 5px;
font-size: 12px;
font-weight: bold;
border-bottom: 1px solid #222;
letter-spacing: 1px;
}

/* 대화 내용 영역 */
.chat-content-area {
flex-grow: 1;
overflow-y: auto;
padding: 15px;
color: #ddd;
font-size: 13px;
line-height: 1.5;
scrollbar-width: none; /* 파이어폭스 스크롤바 숨김 */
}
.chat-content-area::-webkit-scrollbar {
display: none; /* 크롬 스크롤바 숨김 */
}

/* 채팅 말풍선 및 유저명 스타일 */
.chat-msg-row {
margin-bottom: 10px;
word-break: break-all;
}
.chat-msg-name {
color: #FFD700;
font-weight: bold;
margin-right: 5px;
text-shadow: 0 0 5px rgba(255,215,0,0.4);
}

/* =========================================
6. ✍️ 입력창 컨트롤 (Input Area)
========================================= */
/* 입력창 구역 (하단) */
.chat-input-area {
display: flex;
padding: 10px;
background-color: #1a1a1a;
border-top: 1px solid #333;
}
.chat-input-area input {
flex-grow: 1;
padding: 10px;
background-color: #000;
color: #fff;
border: 1px solid #444;
border-radius: 8px;
font-family: inherit;
outline: none;
}
.chat-input-area input:focus {
border-color: #14F195;
box-shadow: 0 0 10px rgba(20,241,149,0.2);
}
.chat-input-area button {
background-color: #FFD700;
color: #000;
border: none;
border-radius: 8px;
font-family: inherit;
font-weight: bold;
cursor: pointer;
margin-left: 8px;
padding: 0 15px;
box-shadow: 0 2px 5px rgba(255,215,0,0.3);
}

/* =========================================
7. ✨ 특수 배너 & 애니메이션 (Banners & Animations)
========================================= */
.live-dot {
display: inline-block;
width: 6px;
height: 6px;
background: #14F195;
border-radius: 50%;
box-shadow: 0 0 8px #14F195;
animation: blink 1s infinite alternate;
vertical-align: middle;
margin-bottom: 3px;
}

.chat-cta-banner {
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(135deg, #9945FF, #14F195);
padding: 10px 12px;
font-family: 'Galmuri9';
font-size: 11px;
font-weight: bold;
color: #000;
cursor: pointer;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cta-blink {
background: #000;
color: #FFD700;
padding: 2px 6px;
border-radius: 4px;
font-size: 9px;
animation: blink 0.5s infinite alternate;
margin-right: 5px;
}

.cta-text {
flex: 1;
text-align: left;
padding-left: 4px;
}