/* ============================================================
   Fox Hill Employee Assistant — WordPress Plugin Styles
   ============================================================ */

#foxhill-assistant-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #2c2c2c;
  box-sizing: border-box;
}

#foxhill-assistant-wrap *, #foxhill-assistant-wrap *::before, #foxhill-assistant-wrap *::after {
  box-sizing: inherit;
}

/* ── PASSWORD GATE ── */
#foxhill-password-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: #f5f3ee;
  border-radius: 12px;
  padding: 40px 20px;
}

.foxhill-gate-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 380px;
  width: 100%;
}

.foxhill-gate-logo {
  font-size: 48px;
  margin-bottom: 12px;
}

.foxhill-gate-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1e4d2b;
}

.foxhill-gate-box p {
  color: #666;
  margin: 0 0 20px;
  font-size: 14px;
}

.foxhill-gate-form {
  display: flex;
  gap: 8px;
}

.foxhill-gate-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #d0ccc4;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.foxhill-gate-form input:focus {
  border-color: #1e4d2b;
}

.foxhill-gate-form button {
  padding: 10px 18px;
  background: #1e4d2b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.foxhill-gate-form button:hover {
  background: #163d22;
}

/* ── MAIN LAYOUT ── */
#foxhill-chatbot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
  border: 1px solid #e0ddd6;
}

.foxhill-layout {
  display: flex;
  height: 680px;
  max-height: 85vh;
}

/* ── SIDEBAR ── */
.foxhill-sidebar {
  width: 240px;
  min-width: 200px;
  background: #1e4d2b;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.foxhill-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 14px;
  background: #163d22;
  border-bottom: 1px solid #163d22;
}

.foxhill-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #c8a84b;
  color: #1e1e1e;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.foxhill-resort-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  line-height: 1.3;
}

.foxhill-subtitle {
  font-size: 11px;
  color: #a8c8a0;
}

.foxhill-quick-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8a84b;
  padding: 12px 14px 6px;
}

.foxhill-topics {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
  scrollbar-width: thin;
  scrollbar-color: #2d6b3a transparent;
}

.foxhill-topics::-webkit-scrollbar { width: 4px; }
.foxhill-topics::-webkit-scrollbar-thumb { background: #2d6b3a; border-radius: 4px; }

.foxhill-topic-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 10px;
  color: #d4ead6;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 2px;
  line-height: 1.4;
}

.foxhill-topic-btn:hover {
  background: #163d22;
  border-color: #2d6b3a;
  color: #fff;
}

.foxhill-topic-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.foxhill-contacts {
  padding: 12px 14px;
  border-top: 1px solid #163d22;
  font-size: 11px;
}

.foxhill-contacts-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8a84b;
  margin-bottom: 8px;
}

.foxhill-contact-item {
  color: #c8e0ca;
  margin-bottom: 5px;
  line-height: 1.4;
}

.foxhill-contact-item a {
  color: #d4b86a;
  text-decoration: none;
}

.foxhill-contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── CHAT AREA ── */
.foxhill-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8f6f1;
  min-width: 0;
}

.foxhill-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e8e4dc;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.foxhill-chat-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
}

.foxhill-chat-sub {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

#foxhill-clear-btn {
  background: transparent;
  border: 1px solid #d0ccc4;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}

#foxhill-clear-btn:hover {
  background: #f0ede6;
  color: #1e4d2b;
  border-color: #1e4d2b;
}

/* ── MESSAGES ── */
#foxhill-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: #d0ccc4 transparent;
}

#foxhill-messages::-webkit-scrollbar { width: 5px; }
#foxhill-messages::-webkit-scrollbar-thumb { background: #d0ccc4; border-radius: 5px; }

.foxhill-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: foxhill-fadein 0.25s ease;
}

@keyframes foxhill-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.foxhill-msg-user {
  flex-direction: row-reverse;
}

.foxhill-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e4d2b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.foxhill-msg-user .foxhill-avatar {
  background: #c8a84b;
  color: #1e1e1e;
}

.foxhill-bubble {
  max-width: 75%;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  color: #2c2c2c;
}

.foxhill-msg-user .foxhill-bubble {
  background: #1e4d2b;
  color: #fff;
  border-color: #1e4d2b;
  border-radius: 16px;
  border-top-right-radius: 4px;
}

.foxhill-bubble strong {
  font-weight: 700;
}

.foxhill-bubble ul, .foxhill-bubble ol {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.foxhill-bubble li {
  margin-bottom: 3px;
}

/* Typing indicator */
.foxhill-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.foxhill-typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e4d2b;
  animation: foxhill-bounce 1.2s infinite;
}

.foxhill-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.foxhill-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes foxhill-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ── INPUT AREA ── */
.foxhill-input-area {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid #e8e4dc;
  flex-shrink: 0;
}

#foxhill-input {
  flex: 1;
  border: 1.5px solid #d0ccc4;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.2s;
  background: #f8f6f1;
  color: #2c2c2c;
}

#foxhill-input:focus {
  border-color: #1e4d2b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,77,43,0.08);
}

#foxhill-input::placeholder {
  color: #aaa;
}

#foxhill-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1e4d2b;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

#foxhill-send-btn:hover {
  background: #163d22;
}

#foxhill-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.foxhill-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  padding: 6px 20px 10px;
  background: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .foxhill-sidebar {
    display: none;
  }
  .foxhill-layout {
    height: 90vw;
    max-height: 600px;
  }
}
