/* Forest Guide chatbot widget (moved from style.css so every page can use it) */
/* =====================================================
   FOREST GUIDE (Honey Bee Chat) – all pages
   ===================================================== */
.honey-guide-toggle {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #F4B400, #e6a800);
  box-shadow: 0 8px 28px rgba(244, 180, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.honey-guide-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(244, 180, 0, 0.55);
}
.honey-guide-toggle.open {
  background: linear-gradient(145deg, #3e2723, #5d4037);
}
.honey-guide-toggle .bee-icon {
  animation: beeBob 2.2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.honey-guide-toggle .pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(244, 180, 0, 0.6);
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes beeBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
}
@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.honey-guide-window {
  position: fixed;
  bottom: 165px;
  right: 22px;
  width: 360px;
  max-width: calc(100vw - 28px);
  height: 460px;
  max-height: calc(100vh - 180px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(62, 39, 35, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 1051;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  border: 1px solid rgba(244, 180, 0, 0.2);
}
.honey-guide-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.honey-guide-header {
  background: linear-gradient(135deg, #3e2723, #5d4037);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.honey-guide-header .header-bee {
  font-size: 1.5rem;
  animation: beeBob 2s ease-in-out infinite;
}
.btn-close-guide {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.btn-close-guide:hover { background: rgba(255,255,255,0.3); }

.honey-guide-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #faf6ee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: #fff;
  color: #3e2723;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chat-msg.user {
  background: linear-gradient(135deg, #F4B400, #e6a800);
  color: #1a120f;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.chat-msg.typing {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  align-items: center;
}
.chat-msg.typing span {
  width: 7px;
  height: 7px;
  background: #bcaaa4;
  border-radius: 50%;
  animation: typingDot 1.2s infinite ease-in-out;
}
.chat-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

.honey-guide-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #f0e6d8;
}
.honey-guide-input input {
  flex: 1;
  border: 1.5px solid #e8dcc8;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.honey-guide-input input:focus {
  border-color: #F4B400;
}
.honey-guide-input button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #F4B400, #e6a800);
  color: #1a120f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.honey-guide-input button:hover { transform: scale(1.08); }

@media (max-width: 576px) {
  .honey-guide-toggle {
    bottom: 80px;
    right: 14px;
    width: 54px;
    height: 54px;
  }
  .honey-guide-window {
    bottom: 145px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 55vh;
    max-height: 420px;
  }
}

.chatbot-toggle { display: none !important; }
.honey-guide-toggle { bottom: 96px !important; right: 20px !important; z-index: 1050 !important; background: var(--forest, #12261b) !important; }
.honey-guide-window { bottom: 170px !important; right: 20px !important; z-index: 1060 !important; }
.honey-guide-header { background: var(--forest, #12261b) !important; }
@media (max-width: 576px) {
  .honey-guide-toggle { bottom: 84px !important; right: 14px !important; width: 54px !important; height: 54px !important; }
  .honey-guide-window { bottom: 150px !important; right: 10px !important; left: 10px !important; width: auto !important; }
}

/* ===== Nov 2026 restyle ===== */
.honey-guide-toggle { width: 64px !important; height: 64px !important; background: radial-gradient(circle at 30% 25%, #2c5a3d, #12261b 70%) !important; box-shadow: 0 14px 34px -10px rgba(18, 38, 27, .8), 0 0 0 3px rgba(246, 196, 83, .55) !important; overflow: visible; }
.honey-guide-toggle .hg-icon { position: relative; z-index: 2; animation: hgFloat 3s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.honey-guide-toggle .hg-dot { animation: hgTyping 1.2s ease-in-out infinite; }
.honey-guide-toggle .hg-dot.d2 { animation-delay: .15s; } .honey-guide-toggle .hg-dot.d3 { animation-delay: .3s; }
.honey-guide-toggle .hg-bee { position: absolute; top: -10px; right: -6px; font-size: 20px; z-index: 3; animation: hgBee 3.5s ease-in-out infinite; }
.honey-guide-toggle .hg-label { position: absolute; right: 74px; top: 50%; transform: translateY(-50%) translateX(10px); background: #fff; color: #12261b; font: 700 .95rem "Times New Roman", serif; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); opacity: 0; transition: all .35s; pointer-events: none; }
.honey-guide-toggle:hover .hg-label { opacity: 1; transform: translateY(-50%); }
.honey-guide-toggle.open .hg-bee, .honey-guide-toggle.open .hg-label { display: none; }
.honey-guide-toggle .pulse-ring { border-color: rgba(246, 196, 83, .7) !important; }
@keyframes hgFloat { 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes hgTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes hgBee { 0%, 100% { transform: translate(0, 0) rotate(-10deg); } 25% { transform: translate(-6px, -6px) rotate(8deg); } 50% { transform: translate(2px, -10px) rotate(-6deg); } 75% { transform: translate(6px, -2px) rotate(10deg); } }
.honey-guide-header { background: linear-gradient(135deg, #12261b, #27503a) !important; border-bottom: 3px solid #e9a31a; }
.honey-guide-header .header-bee { width: 40px; height: 40px; border-radius: 50%; background: #fff7e3; display: grid; place-items: center; overflow: hidden; }
.honey-guide-header .header-bee img { width: 34px; height: 34px; object-fit: contain; }
.btn-close-guide { color: #12261b !important; background: #f6c453 !important; width: 34px !important; height: 34px !important; transition: transform .3s, background .2s !important; }
.btn-close-guide:hover { transform: rotate(90deg); background: #fff !important; }
.btn-close-guide svg { display: block; }
.honey-guide-input { display: flex; gap: 8px; align-items: center; padding: 10px 12px !important; background: #fff; border-top: 1px solid rgba(47,34,23,.1); }
.honey-guide-input input { flex: 1; border: 1.5px solid rgba(47,34,23,.15) !important; border-radius: 999px !important; padding: .6rem 1rem !important; font: 1rem "Times New Roman", serif !important; }
.honey-guide-input input:focus { outline: none; border-color: #e9a31a !important; box-shadow: 0 0 0 3px rgba(233,163,26,.2); }
.honey-guide-input .hg-send { width: 44px !important; height: 44px !important; flex-shrink: 0; border-radius: 50% !important; border: 0 !important; background: linear-gradient(145deg, #f6c453, #e9a31a) !important; color: #12261b !important; display: grid !important; place-items: center; box-shadow: 0 6px 14px -6px #b5680c; transition: transform .25s !important; }
.honey-guide-input .hg-send:hover { transform: scale(1.08) rotate(-12deg); }
.honey-guide-input .hg-send svg { display: block; margin-left: 2px; }
.hg-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #faf6ee; scrollbar-width: none; }
.hg-chips button { flex-shrink: 0; border: 1px solid rgba(181,104,12,.3); background: #fff; color: #2f2217; border-radius: 999px; padding: .3rem .75rem; font: .9rem "Times New Roman", serif; transition: background .2s; }
.hg-chips button:hover { background: #f6c453; }
.chat-msg { font-family: "Times New Roman", serif !important; font-size: 1rem !important; }
