/* ============================================================
   Lady Liberty chatbot widget — Heidenreich for Congress 2028
   Floating button + chat panel. Royal blue / purple / gold.
   ============================================================ */

#ll-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #e8c547;
  background: #16307f;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(232, 197, 71, .35);
  cursor: pointer;
  z-index: 9998;
  padding: 0;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
#ll-fab:hover { transform: scale(1.07); box-shadow: 0 8px 28px rgba(0,0,0,.5), 0 0 26px rgba(232,197,71,.55); }
#ll-fab img { width: 100%; height: 100%; object-fit: cover; display: block; }

#ll-panel {
  position: fixed;
  right: 20px;
  bottom: 96px;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 130px));
  min-height: 380px;
  background: #faf7ef;
  border-radius: 16px;
  border: 2px solid #e8c547;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}
#ll-panel.open { display: flex; }

#ll-header {
  background: linear-gradient(135deg, #0d1b4c 0%, #16307f 55%, #5b2a86 100%);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #e8c547;
}
#ll-header img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #e8c547; object-fit: cover; }
#ll-header .ll-title { flex: 1; line-height: 1.25; }
#ll-header .ll-title strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; letter-spacing: .02em; }
#ll-header .ll-title small { display: block; font-size: .72rem; color: #e8c547; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#ll-close {
  background: transparent; border: none; color: #fff; font-size: 1.5rem;
  cursor: pointer; line-height: 1; padding: 4px 6px; border-radius: 8px;
}
#ll-close:hover { background: rgba(255,255,255,.15); }

#ll-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(ellipse at top, rgba(123,63,160,.08), transparent 60%),
    #faf7ef;
}
.ll-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.ll-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e5e0d2;
  border-left: 4px solid #e8c547;
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ll-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #16307f, #5b2a86);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ll-bot a { color: #16307f; font-weight: 600; }
.ll-msg p { margin: 0 0 .55em; }
.ll-msg p:last-child { margin-bottom: 0; }
.ll-msg ul { margin: .4em 0 .4em 1.1em; padding: 0; }
.ll-msg li { margin-bottom: .3em; }
.ll-msg blockquote {
  margin: .5em 0; padding: .5em .8em; border-left: 3px solid #7b3fa0;
  background: rgba(123,63,160,.07); font-style: italic; border-radius: 0 8px 8px 0;
}

#ll-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; background: #fff; border-top: 1px solid #e5e0d2;
}
#ll-chips button {
  font-size: .74rem; font-weight: 600; padding: 6px 11px; border-radius: 999px;
  border: 1.5px solid #7b3fa0; background: #fff; color: #5b2a86; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
#ll-chips button:hover { background: #5b2a86; color: #fff; }

#ll-input-row { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #e5e0d2; }
#ll-input {
  flex: 1; font-size: .88rem; padding: 9px 12px; border-radius: 999px;
  border: 1.5px solid #c9c4b4; outline: none; font-family: inherit;
}
#ll-input:focus { border-color: #7b3fa0; box-shadow: 0 0 0 3px rgba(123,63,160,.15); }
#ll-send {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #c9a227, #e8c547); color: #0d1b4c;
  font-size: 1.1rem; font-weight: 700; flex: none;
  box-shadow: 0 3px 10px rgba(201,162,39,.4);
}
#ll-send:hover { filter: brightness(1.06); }

#ll-footer-note {
  font-size: .66rem; color: #8a8a92; text-align: center; padding: 6px 10px;
  background: #fff; border-top: 1px solid #f0ece0;
}

.ll-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ll-typing span { width: 7px; height: 7px; border-radius: 50%; background: #7b3fa0; animation: ll-blink 1.1s infinite; }
.ll-typing span:nth-child(2) { animation-delay: .18s; }
.ll-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ll-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

@media (max-width: 480px) {
  #ll-fab { right: 14px; bottom: 14px; width: 58px; height: 58px; }
  #ll-panel { right: 10px; bottom: 84px; width: calc(100vw - 20px); }
}
