/* Phakama Concierge — chat widget styles */

:root {
  --pc-navy: #0F172A;
  --pc-navy-2: #1E2D4A;
  --pc-gold: #FBBF24;
  --pc-gold-dim: #C49020;
  --pc-white: #FFFFFF;
  --pc-grey: #94A3B8;
  --pc-grey-light: #E2E8F0;
}

#pc-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--pc-navy);
  color: var(--pc-white);
  border: 2px solid var(--pc-gold);
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#pc-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.45);
}
#pc-launcher .pc-dot {
  width: 8px; height: 8px;
  background: var(--pc-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

#pc-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 40px);
  display: none;
  flex-direction: column;
  background: var(--pc-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  font-family: 'Inter', -apple-system, sans-serif;
}
#pc-panel.pc-open { display: flex; }

.pc-header {
  background: var(--pc-navy);
  color: var(--pc-white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--pc-gold);
}
.pc-header-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
}
.pc-header-title .pc-dot {
  width: 8px; height: 8px;
  background: var(--pc-gold);
  border-radius: 50%;
}
.pc-header-sub {
  font-size: 11px;
  color: var(--pc-grey);
  font-weight: 400;
  margin-top: 2px;
}
.pc-close {
  background: transparent;
  color: var(--pc-grey);
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
}
.pc-close:hover { color: var(--pc-white); }

.pc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pc-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.pc-msg.pc-user {
  background: var(--pc-navy);
  color: var(--pc-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.pc-msg.pc-bot {
  background: var(--pc-white);
  color: var(--pc-navy);
  align-self: flex-start;
  border: 1px solid var(--pc-grey-light);
  border-bottom-left-radius: 4px;
}
.pc-msg.pc-tool {
  align-self: flex-start;
  background: transparent;
  color: var(--pc-grey);
  font-size: 12px;
  font-style: italic;
  padding: 2px 6px;
}
.pc-typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: 12px 14px;
  background: var(--pc-white);
  border: 1px solid var(--pc-grey-light);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.pc-typing span {
  width: 6px; height: 6px;
  background: var(--pc-grey);
  border-radius: 50%;
  animation: pc-bounce 1.2s infinite;
}
.pc-typing span:nth-child(2) { animation-delay: 0.2s; }
.pc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pc-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.pc-input-row {
  display: flex;
  border-top: 1px solid var(--pc-grey-light);
  background: var(--pc-white);
}
#pc-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--pc-navy);
  resize: none;
  max-height: 100px;
}
#pc-send {
  background: var(--pc-navy);
  color: var(--pc-gold);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
#pc-send:hover { background: var(--pc-navy-2); }
#pc-send:disabled { opacity: 0.4; cursor: default; }

.pc-suggested {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 14px;
  background: #F8FAFC;
  border-top: 1px solid var(--pc-grey-light);
}
.pc-chip {
  background: var(--pc-white);
  border: 1px solid var(--pc-grey-light);
  color: var(--pc-navy);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.pc-chip:hover { border-color: var(--pc-gold); color: var(--pc-gold-dim); }

@media (max-width: 480px) {
  #pc-panel {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    right: 0; bottom: 0;
    border-radius: 0;
  }
  #pc-launcher span.pc-launcher-text { display: none; }
}
