/* Pete — POCITS Guide (chat widget) */

.chat-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: inherit;
}

.chat-widget-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a1a2e;
  border: 2px solid #f5a623;
  color: #f5a623;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  position: relative;
}

.chat-widget-toggle:hover {
  transform: scale(1.08);
}

.chat-widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-widget-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 360px;
  max-height: 520px;
  background: #1a1a2e;
  border: 1px solid #f5a623;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
}

.chat-widget-header {
  background: #f5a623;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-widget-title {
  font-weight: 700;
  color: #1a1a2e;
  flex: 1;
  font-size: 14px;
}

.chat-widget-pete-tag {
  background: #1a1a2e;
  color: #f5a623;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ── Teaser mode (logged-out) ────────────────────────────────── */
.chat-widget-panel--teaser {
  max-height: 240px;
}

.chat-widget-join-cta {
  padding: 10px 12px 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}

.chat-widget-join-cta p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 8px;
}

.chat-widget-join-cta-btns {
  display: flex;
  gap: 8px;
}

.chat-widget-teaser-cta {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #2a2a4e;
}

.chat-widget-teaser-btn {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.chat-widget-teaser-btn--primary {
  background: #f5a623;
  color: #1a1a2e;
}

.chat-widget-teaser-btn--primary:hover {
  background: #e09010;
}

.chat-widget-teaser-btn--secondary {
  background: #2a2a4e;
  color: #e0e0e0;
  border: 1px solid #444;
}

.chat-widget-teaser-btn--secondary:hover {
  background: #3a3a5e;
}

.chat-widget-close {
  background: none;
  border: none;
  color: #1a1a2e;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.chat-widget-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
}

.chat-widget-message {
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-widget-message.user {
  background: #f5a623;
  color: #1a1a2e;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-widget-message.assistant {
  background: #2a2a4e;
  color: #e0e0e0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-widget-message.thinking {
  background: #2a2a4e;
  color: #888;
  align-self: flex-start;
  font-style: italic;
}

.chat-widget-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #2a2a4e;
  align-items: flex-end;
}

.chat-widget-input {
  flex: 1;
  background: #2a2a4e;
  border: 1px solid #444;
  border-radius: 8px;
  color: #e0e0e0;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
  line-height: 1.4;
}

.chat-widget-input:focus {
  outline: none;
  border-color: #f5a623;
}

.chat-widget-send {
  background: #f5a623;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.chat-widget-send:hover {
  background: #e09010;
}

.chat-widget-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-widget-footer {
  font-size: 10px;
  color: #666;
  text-align: center;
  padding: 4px 0 8px;
}

/* ── Pete-activatable sections — subtle hover glow ──────────── */
[data-pete] {
  transition: box-shadow 0.2s ease;
  border-radius: 4px;
}

[data-pete]:hover {
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.30);
  cursor: pointer;
}

/* ── Pete floating hint (element activation) ─────────────────── */
#pete-hint {
  position: fixed;
  background: #1a1a2e;
  color: #f5a623;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(245,166,35,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10000;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
