/* LotoRadar — Compliance Ghost (educational rephrase suggestion in chat input)
 * Hooked into chat-widget.js #cw-input-area: shows soft yellow advisory above
 * the input when user types phrases like "sigur câștig", "prezic", "garantat".
 * Goal: educate users on compliance regula B without blocking sends.
 */

#cw-input-area {
  position: relative; /* anchor for ghost overlay */
}

.lr-cg-ghost {
  position: absolute;
  bottom: 100%;
  left: 8px;
  right: 8px;
  margin-bottom: 4px;
  background: linear-gradient(135deg,
                rgba(255, 215, 0, 0.10),
                rgba(255, 165, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 235, 200, 0.95);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  animation: lr-cg-slide-in 0.22s ease-out;
  line-height: 1.35;
}
@keyframes lr-cg-slide-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lr-cg-ghost-head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
.lr-cg-ghost-icon {
  font-size: 0.85rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.lr-cg-ghost-text {
  flex: 1;
  color: rgba(255, 235, 200, 0.92);
}
.lr-cg-ghost-text b {
  color: #ffd700;
  font-weight: 700;
}
.lr-cg-ghost-text .lr-cg-rephrase-hint {
  color: rgba(0, 255, 200, 0.95);
  font-style: italic;
}
.lr-cg-ghost-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.lr-cg-ghost-close:hover { color: #fff; }

.lr-cg-ghost-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lr-cg-ghost-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}
.lr-cg-ghost-btn-primary {
  background: rgba(0, 255, 200, 0.15);
  border: 1px solid rgba(0, 255, 200, 0.45);
  color: #00FFC8;
}
.lr-cg-ghost-btn-primary:hover {
  background: rgba(0, 255, 200, 0.3);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}
.lr-cg-ghost-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}
.lr-cg-ghost-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

@media (max-width: 480px) {
  .lr-cg-ghost { font-size: 0.68rem; padding: 6px 8px; }
  .lr-cg-ghost-btn { font-size: 0.52rem; padding: 3px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .lr-cg-ghost { animation: none; }
}
