import { css } from '@genesislcap/web-core';
export const styles = css `
  :host {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
  }

  :host([hidden]) {
    display: none;
  }

  .bubble {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    cursor: grab;
    pointer-events: all;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition:
      transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow 0.25s ease;
    background: linear-gradient(135deg, #0e1628 0%, #192340 100%);
    box-shadow: 0 4px 20px rgb(0 0 0 / 45%);
    border: 2px solid rgb(255 255 255 / 15%);
    color: white;
  }

  .bubble img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 4px 20px rgb(0 0 0 / 45%);
    border: 2px solid rgb(255 255 255 / 15%);
  }

  .bubble svg {
    pointer-events: none;
  }

  .bubble:hover,
  .bubble.hovered {
    transform: scale(1.18);
  }

  .bubble:hover img,
  .bubble.hovered img {
    box-shadow:
      0 6px 32px rgb(0 100 255 / 55%),
      0 0 0 3px rgb(0 120 255 / 35%);
  }

  .bubble:active {
    cursor: grabbing;
  }

  .tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    background: linear-gradient(135deg, #0078ff 0%, #0050d0 100%);
    color: #fff;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgb(0 120 255 / 45%);
    pointer-events: none;
    opacity: 0%;
    translate: 0 4px;
    transition:
      opacity 0.18s ease,
      translate 0.18s ease;
  }

  .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0050d0;
  }

  .bubble:hover .tooltip,
  .bubble.hovered .tooltip {
    opacity: 100%;
    translate: 0 0;
  }

  .pulse-ring {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid rgb(0 120 255 / 50%);
    animation: pulse 2.5s ease-out infinite;
    pointer-events: none;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 70%;
    }

    70% {
      transform: scale(1.5);
      opacity: 0%;
    }

    100% {
      transform: scale(1.5);
      opacity: 0%;
    }
  }

  .dialog {
    position: absolute;
    box-sizing: border-box;
    width: 400px;
    height: 520px;
    min-width: 300px;
    min-height: 300px;
    max-width: 50vw;
    max-height: calc(100vh - 40px);
    background: var(--neutral-layer-1);
    border-radius: 14px;
    box-shadow:
      0 12px 50px rgb(0 0 0 / 55%),
      0 0 0 1px rgb(255 255 255 / 6%);
    pointer-events: all;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    border: 1px solid var(--neutral-stroke-rest);
    animation: dialog-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes dialog-in {
    from {
      opacity: 0%;
      transform: scale(0.85) translateY(12px);
    }

    to {
      opacity: 100%;
      transform: scale(1) translateY(0);
    }
  }

  @keyframes dialog-out {
    from {
      opacity: 100%;
      transform: scale(1) translateY(0);
    }

    to {
      opacity: 0%;
      transform: scale(0.85) translateY(12px);
    }
  }

  .dialog.closing {
    animation: dialog-out 0.2s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  }

  .dialog-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    min-height: 0;
  }

  .dialog-content ::slotted(*) {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 0;
  }
`;
