/* ==========================================================================
   06/styles.css - 1:1 KakaoTalk Private Counseling, 2D Avatar Lounge & WebRTC FaceTalk Styles
   ========================================================================== */

:root {
  --kakao-yellow: #FEE500;
  --kakao-yellow-hover: #f5dc00;
  --kakao-dark: #3C1E1E;
  --kakao-brown: #3A1D1D;
  --kakao-bg: #BACEE0;
  --kakao-bubble-me: #FEE500;
  --kakao-bubble-other: #FFFFFF;
  --kakao-sub-text: #667584;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
  background-color: #E8ECEF;
  color: #191919;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* KakaoTalk Chat Canvas Background */
.kakao-chat-bg {
  background-color: #BACEE0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 0);
  background-size: 20px 20px;
}

/* 2D Avatar Lounge Canvas */
#avatar-lounge-canvas {
  touch-action: none;
  background: #95B891;
}

/* D-Pad Buttons */
.dpad-btn {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Custom Kakao Scrollbar */
.kakao-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.kakao-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.kakao-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.kakao-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Speech Bubble Tails */
.kakao-bubble-me {
  background-color: #FEE500;
  color: #191919;
  position: relative;
  border-radius: 16px 2px 16px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  word-break: break-word;
}

.kakao-bubble-other {
  background-color: #FFFFFF;
  color: #191919;
  position: relative;
  border-radius: 2px 16px 16px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  word-break: break-word;
}

/* Pulsing Status Dot */
.pulse-online {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Admin Toast Alert Animation */
#admin-live-alert-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* FaceTalk Video Effects */
#facetalk-overlay {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#facetalk-local-container {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
#facetalk-local-container:hover {
  transform: scale(1.05);
}

#facetalk-remote-video {
  background: #111827;
}
