/* 재사용 채팅 모듈 스타일 (chat.js가 렌더하는 .spchat-* 마크업)
   방송 오버레이 채팅/귓말 + 차후 플로팅 채팅 공통. 배경색은 부모(패널)에 맡기고 텍스트는 inherit로 대비 유지. */

.spchat-msg {
    list-style: none;
    margin: 0;
    padding: 0.2rem 0;
    line-height: 1.5;
    font-size: 0.9rem;
    color: inherit;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 연결 상태 문구(불러오는 중 / 연결 불가 / 재연결) — 더미 대화 대신 표시 */
.spchat-status {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: inherit;
    opacity: 0.6;
}

.spchat-nick { font-weight: 700; color: #2f6fed; }
.spchat-nick.is-clickable { cursor: pointer; }
.spchat-nick.is-clickable:hover { text-decoration: underline; }

.spchat-text { color: inherit; opacity: 0.95; }

/* 귓말 — 발신자·수신자에게만 보이며 강조(오렌지 계열, site.css 알림 톤과 통일) */
.spchat-msg--whisper {
    background: rgba(242, 101, 34, 0.12);
    border-radius: 0.4rem;
    padding: 0.25rem 0.45rem;
    margin: 0.15rem 0;
}
.spchat-msg--whisper .spchat-nick { color: #f26522; }
.spchat-wtag {
    margin-right: 0.25rem;
    font-weight: 700;
    font-size: 0.78rem;
    color: #f26522;
}

/* 귓말 대상 칩 — 입력창 위에 표시(닉네임 클릭 시). ✕로 해제 */
.spchat-whisper-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.4rem;
    padding: 0.25rem 0.55rem;
    background: rgba(242, 101, 34, 0.15);
    color: #f26522;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.spchat-whisper-chip button {
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

/* ── 주기 안내(notice) / 제휴 배너(banner) — cron 브로드캐스트 시스템 메시지 ── */
.spchat-sys {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
}
.spchat-sys-link { display: block; text-decoration: none; color: inherit; }

.spchat-sys-title { font-weight: 700; }

/* 안내 박스 — 방송 오버레이 .bcfs-notice 와 동일 톤(연한 파랑 박스, 파란 볼드 제목 + 흐린 본문) */
.spchat-notice {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.85rem;
    background: rgba(238, 243, 255, 0.5);
    border: 1px solid rgba(26, 86, 219, 0.2);
    border-radius: 0.5rem;
}
.spchat-notice .spchat-sys-title { font-size: 0.85rem; font-weight: 800; color: var(--bc-blue, #1a56db); }
.spchat-notice .spchat-sys-body { font-size: 0.85rem; font-weight: 400; color: var(--bc-text-dim, #6b7280); line-height: 1.5; }

/* 제휴 배너 */
.spchat-banner {
    overflow: hidden;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #4f7bf0, #7aa0ff);
    color: #fff;
    text-align: center;
}
.spchat-banner .spchat-sys-link { padding: 0; }
.spchat-banner-img { display: block; width: 100%; height: auto; }
.spchat-banner .spchat-sys-title { padding: 0.85rem 0.85rem 0; color: #fff; }
.spchat-banner .spchat-sys-body {
    display: inline-block;
    margin: 0.5rem auto 0.85rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    color: #2f4fb0;
    font-weight: 700;
    font-size: 0.82rem;
}
/* 이미지가 있을 땐 위 텍스트 패딩만 소폭 조정 */
.spchat-banner-img + .spchat-sys-title { padding-top: 0.6rem; }
