/* Zon Mascot — Kambulo Character System */

/* ==================== ANIMATION LIBRARY ==================== */

/* Float — The Scan: loading, empty states, thinking */
@keyframes zon-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  30%       { transform: translateY(-6px) rotate(0deg); }
  60%       { transform: translateY(-3px) rotate(1deg); }
}

/* Bounce — The Lift: wins, success moments */
@keyframes zon-bounce {
  0%   { transform: translateY(0) scale(1); }
  20%  { transform: translateY(-14px) scale(1.05) rotate(-2deg); }
  40%  { transform: translateY(0) scale(0.97); }
  55%  { transform: translateY(-7px) scale(1.02) rotate(1deg); }
  70%  { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

/* Pulse-point — The Point: sidebar, CTAs, corrections */
@keyframes zon-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.06) rotate(-2deg); }
}

/* Shake — Rejection / hard-truth moments */
@keyframes zon-shake {
  0%, 100% { transform: rotate(0deg); }
  15%       { transform: rotate(-5deg) translateX(-3px); }
  30%       { transform: rotate(4deg) translateX(3px); }
  45%       { transform: rotate(-3deg) translateX(-2px); }
  60%       { transform: rotate(2deg) translateX(2px); }
  75%       { transform: rotate(-1deg); }
}

/* Idle — very subtle breathing for ambient sidebar presence */
@keyframes zon-idle {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04) translateY(-1px); }
}

/* Dot loader */
@keyframes zon-dot {
  0%, 80%, 100% { opacity: 0; }
  40%            { opacity: 1; }
}

/* ==================== ANIMATION CLASSES ==================== */
.zon-anim-float  { animation: zon-float  2.8s ease-in-out infinite; }
.zon-anim-bounce { animation: zon-bounce 0.9s cubic-bezier(0.36,0.07,0.19,0.97) both; }
.zon-anim-pulse  { animation: zon-pulse  2.5s ease-in-out infinite; }
.zon-anim-shake  { animation: zon-shake  0.6s ease-in-out both; }
.zon-anim-idle   { animation: zon-idle   3.5s ease-in-out infinite; }

/* ==================== ZON TOAST ==================== */
.zon-toast {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F7F4F0 !important;
  border-radius: 16px !important;
  padding: 4px 16px 14px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06) !important;
  border: 1px solid #EAE7E3 !important;
  width: 220px;
}

.zon-toast-badge {
  width: 100%;
  display: flex;
  justify-content: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.zon-toast-avatar {
  width: 220px;
  height: auto;
  mix-blend-mode: multiply;
}

.zon-toast-text {
  color: #3C3835;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ==================== ZON EMPTY STATE ==================== */
.zon-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

.zon-empty-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
  animation: zon-float 2.8s ease-in-out infinite;
  filter: grayscale(10%);
}

.zon-empty-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9a9490;
  text-align: center;
  line-height: 1.5;
  font-weight: 400;
  max-width: 140px;
}

/* ==================== ZON CV UPLOAD ==================== */
.zon-cv-video {
  width: 200px;
  height: auto;
  max-width: 70%;
  object-fit: contain;
  margin-bottom: 4px;
  mix-blend-mode: multiply;
}

/* ==================== ZON RED FLAGS ==================== */
.jd-flags--red-wrap {
  position: relative;
  padding-right: 110px;
}

.zon-suspicious-video {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: 180px;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.jd-flags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==================== ZON VIDEO BASE ==================== */
.zon-video {
  display: block;
  object-fit: contain;
}

/* ==================== ZON FULL-BOARD EMPTY STATE ==================== */
.zon-empty-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  width: 100%;
  gap: 8px;
}

.zon-empty-board-video {
  width: 340px;
  height: auto;
  max-width: 80vw;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.zon-empty-board-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #3C3835;
  margin-top: 4px;
}

.zon-empty-board-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #A39B94;
}

/* ==================== ZON LOADING STATE ==================== */
.zon-analyzing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
}

.zon-analyzing-img {
  width: 320px;
  height: auto;
  max-width: 80vw;
  object-fit: contain;
  animation: zon-float 2.4s ease-in-out infinite;
}

.zon-analyzing-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #756F68;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.zon-dots span {
  display: inline-block;
  animation: zon-dot 1.4s ease-in-out infinite;
  opacity: 0;
}
.zon-dots span:nth-child(1) { animation-delay: 0s; }
.zon-dots span:nth-child(2) { animation-delay: 0.2s; }
.zon-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ==================== ZON SIDEBAR PRESENCE ==================== */
.zon-sidebar-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 0 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.zon-sidebar-guide:hover {
  background: rgba(155, 126, 212, 0.08);
}

.zon-sidebar-badge {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #F7F4F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.zon-sidebar-guide:hover .zon-sidebar-badge {
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.zon-sidebar-guide-img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.zon-sidebar-guide-text {
  font-size: 11px;
  color: #9a9490;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  font-style: italic;
}

.zon-sidebar-guide-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 8px;
  right: 8px;
  background: #2c2825;
  color: #f5f2ef;
  font-size: 11.5px;
  font-family: 'Inter', sans-serif;
  padding: 8px 10px;
  border-radius: 7px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 100;
}

.zon-sidebar-guide:hover .zon-sidebar-guide-tip {
  opacity: 1;
  transform: translateY(0);
}

/* Hide text/tip when sidebar is collapsed */
.sidebar.collapsed .zon-sidebar-guide-text,
.sidebar.collapsed .zon-sidebar-guide-tip {
  display: none;
}
