/* Study Quest — social.css (V7.9 social): the Beseda's lines and typing line in the HUD's chat frame, a name's menu, the Drugari
 * window and the report dialog. Flat colour and the theme's own plates and textures; no gradients. Channel colours like WoW's. */

/* the lines (inside .cl, js/ui-hud.js) */
.cl.ch-soc-world { color: #ffc4a8; }
.cl.ch-soc-zone { color: #ffe0b0; }
.cl.ch-soc-party { color: #a8b4ff; }
.cl.ch-soc-whisper { color: #ff8ef0; }
.cl.ch-soc-system { color: #ffff00; }
.soc-msg { position: relative; }
.soc-msg::before { content: none; }
.chat.hover .soc-msg:hover::before {        /* the time on hover */
  content: attr(data-ts) ' ';
  color: var(--cx-text-faint, #9a8f7c);
  font-size: 12px;
}
.soc-tag { opacity: 0.92; }
.soc-name { cursor: pointer; font-weight: 600; }
.soc-name:hover, .soc-name:focus-visible { text-decoration: underline; outline: none; }
.soc-owner { color: var(--cx-gold-leaf, #e9c46a); margin-right: 3px; font-size: 11px; }
.soc-act { cursor: pointer; text-decoration: underline; }

/* the typing line under the lines */
.soc-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 3px 8px;
  background: rgba(8, 7, 6, 0.88);
  border: 1px solid #5c4a2e;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: auto;
}
.soc-line.hidden { display: none; }
.soc-line-tag { font: 600 13px/19px var(--cx-font-body); white-space: nowrap; color: #ffe0b0; text-shadow: 0 1px 1px #000; }
.soc-line.soc-k-world .soc-line-tag { color: #ffc4a8; }
.soc-line.soc-k-party .soc-line-tag { color: #a8b4ff; }
.soc-line.soc-k-whisper .soc-line-tag { color: #ff8ef0; }
.soc-line-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cx-text, #efe6d2);
  caret-color: var(--cx-torch, #ffb347);
  font: 400 14px/19px var(--cx-font-body);
  text-shadow: 0 1px 1px #000;
}

/* a name's menu */
.soc-menu {
  position: fixed;
  z-index: 9000;
  min-width: 150px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.soc-menu-title { padding: 2px 8px 6px; color: var(--cx-gold-leaf, #e9c46a); font: 600 14px/1.2 var(--cx-font-body); border-bottom: 1px solid rgba(226, 181, 106, 0.3); margin-bottom: 3px; }
.soc-menu-item {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--cx-text, #efe6d2);
  padding: 5px 8px;
  font: 400 14px/1.2 var(--cx-font-body);
  cursor: pointer;
}
.soc-menu-item:hover, .soc-menu-item:focus-visible { background: rgba(226, 181, 106, 0.16); color: var(--cx-gold-leaf, #e9c46a); outline: none; }

/* the Drugari window */
.soc-fr { display: flex; flex-direction: column; gap: 6px; }
.soc-fr-lead { margin: 0 0 2px; color: var(--cx-text-faint, #b7ab94); }
.soc-fr-add { display: flex; gap: 6px; }
.soc-fr-add .codex-input { flex: 1; min-width: 0; }
.soc-fr-msg { color: var(--cx-gold-leaf, #e9c46a); font-size: 13px; }
.soc-fr-h { margin: 8px 0 2px; font: 600 13px/1.2 var(--cx-font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cx-brass, #b8955a); }
.soc-fr-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(226, 181, 106, 0.14); }
.soc-fr-row.is-off .soc-name { opacity: 0.6; }
.soc-fr-who .soc-name { align-self: flex-start; }
.soc-fr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.soc-fr-sub { font-size: 13px; color: var(--cx-text-faint, #b7ab94); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-fr-btns { display: flex; gap: 4px; flex: 0 0 auto; }
.soc-fr-btns .codex-btn { min-height: var(--cx-btn-h-sm, 26px); padding: 0 10px; font-size: 13px; }
.soc-on { color: #7fdc6a; }
.soc-off { color: var(--cx-text-faint, #9a8f7c); }
.soc-fr-empty { color: var(--cx-text-faint, #9a8f7c); font-style: italic; padding: 4px 0; }
.soc-fr-sito { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; cursor: pointer; }

/* the report dialog */
.soc-report { display: flex; flex-direction: column; gap: 6px; min-width: 300px; }
.soc-report p { margin: 0 0 4px; }
.soc-radio { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.soc-note { min-height: 64px; resize: vertical; margin-top: 4px; }
.soc-win .win-title { min-width: 210px; text-align: center; overflow: visible; }

/* round 2: guild lines, removed lines, the frame's grip and resize corner, Enter brings it forward (also in Compact mode) */
.cl.ch-soc-guild { color: #40ff40; }
.soc-gone { color: var(--cx-text-faint, #9a8f7c); }
.soc-removed .soc-name { opacity: 0.6; }
.hud.compact .chat.soc-forward { display: block !important; }
.chat.soc-forward { z-index: 60; }
.chat.soc-forward .chat-box, .chat.soc-forward .chat-tabs { opacity: 1; }
.soc-frame .chat-tabs { align-items: flex-end; flex-wrap: nowrap; min-width: 0; gap: 2px; padding-left: 2px; }
.soc-frame .chat-tab { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 7px 4px; }
.chat-tab.soc-hist-btn { margin-left: auto; flex: 0 0 auto; padding: 4px 6px 3px; }
.chat-tab.soc-hist-btn .icon { width: 12px; height: 12px; display: block; }
.chat-tab.soc-grip { cursor: move; flex: 0 0 auto; padding: 5px 6px 4px; touch-action: none; }
.chat-tab.soc-grip .icon { width: 10px; height: 10px; }
.soc-resize { position: absolute; right: -3px; top: 20px; width: 12px; height: 12px; cursor: nesw-resize; touch-action: none; opacity: 0; transition: opacity 0.3s; border-top: 2px solid #8a7048; border-right: 2px solid #8a7048; }
.chat.hover .soc-resize, .chat.soc-forward .soc-resize { opacity: 0.8; }

/* the history window */
.soc-h { display: flex; flex-direction: column; gap: 8px; }
.soc-h-chans { display: flex; flex-wrap: wrap; gap: 4px; }
.soc-h-chans .codex-btn { min-height: var(--cx-btn-h-sm, 26px); padding: 0 10px; font-size: 13px; }
.soc-h-with { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.soc-h-find { display: flex; gap: 6px; }
.soc-h-find .codex-input { flex: 1; min-width: 0; }
.soc-h-note, .soc-h-start, .soc-h-empty { color: var(--cx-text-faint, #9a8f7c); font-size: 13px; font-style: italic; text-align: center; padding: 4px 0; }
.soc-h-err { color: #ff8c6a; font-size: 13px; }
.soc-h-list { height: 380px; overflow-y: auto; padding: 6px 8px; background: rgba(8, 7, 6, 0.6); border: 1px solid #3e3220; box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9); }
.soc-h-older { display: block; margin: 0 auto 6px; min-height: var(--cx-btn-h-sm, 26px); font-size: 13px; }
.soc-h-line { position: relative; font: 400 14px/19px var(--cx-font-body); text-shadow: 0 1px 1px #000; padding: 1px 22px 1px 0; color: #ffe0b0; }
.soc-h-line .soc-k-world { color: #ffc4a8; } .soc-h-line .soc-k-party { color: #a8b4ff; } .soc-h-line .soc-k-guild { color: #40ff40; }
.soc-h-line .soc-k-whisper { color: #ff8ef0; } .soc-h-line .soc-k-system { color: #ffff00; }
.soc-h-date { color: var(--cx-text-faint, #9a8f7c); font-size: 12px; }
.soc-h-del { position: absolute; right: 2px; top: 1px; background: none; border: 0; color: var(--cx-text-faint, #9a8f7c); cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; }
.soc-h-line:hover .soc-h-del, .soc-h-del:focus-visible { opacity: 1; }
.soc-h-del:hover { color: #ff8c6a; }
