﻿/* ===== Ask Rocky AI — chat widget =====
   Self-contained styles (own --ra-* tokens) so this looks the same
   regardless of which page/theme it's mounted on. */
:root{
  --ra-bg:#0a0a0a;
  --ra-panel:#121412;
  --ra-gold:#e8b23a;
  --ra-gold-hi:#f5cd6e;
  --ra-green:#173553;
  --ra-green-bright:#2a4a6e;
  --ra-green-line:rgba(72,132,198,.35);
  --ra-silver:#e8eef5;
  --ra-grey:#9b978d;
  --ra-line:rgba(232,238,245,.14);
}

#ra-launcher{position:fixed;right:20px;bottom:20px;z-index:9998;
  display:flex;align-items:center;gap:.6rem;background:var(--ra-gold);color:#0a0a0a;
  border:none;border-radius:999px;padding:.85rem 1.3rem;font-family:'Jost',system-ui,sans-serif;
  font-weight:500;font-size:.86rem;letter-spacing:.02em;cursor:pointer;
  box-shadow:0 14px 34px -12px rgba(0,0,0,.6);transition:.25s}
#ra-launcher:hover{background:var(--ra-gold-hi);transform:translateY(-2px)}
#ra-launcher .ra-dot{width:8px;height:8px;border-radius:50%;background:var(--ra-green-bright)}
#ra-launcher.ra-hidden{display:none}

#ra-panel{position:fixed;right:20px;bottom:20px;z-index:9999;width:min(380px,calc(100vw - 32px));
  height:min(560px,calc(100vh - 40px));background:var(--ra-bg);color:var(--ra-silver);
  border:1px solid var(--ra-line);border-radius:14px;box-shadow:0 24px 60px -20px rgba(0,0,0,.7);
  display:none;flex-direction:column;overflow:hidden;font-family:'Jost',system-ui,sans-serif}
#ra-panel.ra-open{display:flex}

.ra-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;
  padding:.9rem 1.1rem;background:var(--ra-panel);border-bottom:1px solid var(--ra-line)}
.ra-head-title{display:flex;flex-direction:column;line-height:1.2}
.ra-head-title b{color:var(--ra-gold-hi);font-size:.86rem;letter-spacing:.04em}
.ra-head-title span{color:var(--ra-grey);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase}
.ra-close{background:transparent;border:none;color:var(--ra-grey);font-size:1.1rem;
  cursor:pointer;line-height:1;padding:.2rem .4rem;border-radius:4px}
.ra-close:hover{color:var(--ra-gold-hi);background:rgba(232,238,245,.06)}

.ra-disclaimer{padding:.6rem 1.1rem;font-size:.66rem;line-height:1.5;color:var(--ra-grey);
  background:rgba(100,148,198,.06);border-bottom:1px solid var(--ra-line)}
.ra-disclaimer b{color:var(--ra-gold-hi)}

.ra-messages{flex:1;overflow-y:auto;padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.7rem}
.ra-msg{max-width:86%;padding:.65rem .85rem;border-radius:10px;font-size:.86rem;line-height:1.55;
  white-space:pre-wrap;word-break:break-word}
.ra-msg-bot{align-self:flex-start;background:var(--ra-panel);border:1px solid var(--ra-line);
  color:var(--ra-silver);border-bottom-left-radius:2px}
.ra-msg-user{align-self:flex-end;background:var(--ra-gold);color:#111;border-bottom-right-radius:2px}
.ra-msg-error{align-self:flex-start;background:rgba(100,148,198,.08);border:1px solid var(--ra-green-line);
  color:var(--ra-grey)}

.ra-typing{align-self:flex-start;display:flex;gap:4px;padding:.65rem .85rem;background:var(--ra-panel);
  border:1px solid var(--ra-line);border-radius:10px;border-bottom-left-radius:2px}
.ra-typing span{width:6px;height:6px;border-radius:50%;background:var(--ra-grey);
  animation:raTyping 1.1s infinite ease-in-out}
.ra-typing span:nth-child(2){animation-delay:.15s}
.ra-typing span:nth-child(3){animation-delay:.3s}
@keyframes raTyping{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

.ra-form{display:flex;gap:.5rem;padding:.85rem 1.1rem;border-top:1px solid var(--ra-line);
  background:var(--ra-panel)}
.ra-form input{flex:1;background:rgba(10,10,10,.6);border:1px solid var(--ra-line);border-radius:8px;
  color:var(--ra-silver);padding:.6rem .75rem;font-family:'Jost',system-ui,sans-serif;font-size:.86rem}
.ra-form input:focus{outline:none;border-color:var(--ra-gold)}
.ra-form input::placeholder{color:var(--ra-grey)}
.ra-form button{background:var(--ra-gold);color:#111;border:none;border-radius:8px;
  padding:0 1rem;font-weight:500;font-size:.82rem;cursor:pointer;transition:.2s}
.ra-form button:hover{background:var(--ra-gold-hi)}
.ra-form button:disabled{opacity:.5;cursor:not-allowed}

@media(max-width:520px){
  #ra-panel{right:0;bottom:0;width:100vw;height:100vh;height:100dvh;border-radius:0;border:none}
  #ra-launcher{right:16px;bottom:16px}
}

@media(prefers-reduced-motion:reduce){
  .ra-typing span{animation:none;opacity:.7}
  #ra-launcher{transition:none}
}



