/* AI Summary Popup Pro - Frontend Styles */
#aispp-root { direction: rtl; }

.aispp-icon {
  position: fixed;
  z-index: 9998;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.aispp-icon:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.aispp-icon:active { transform: scale(0.98); }

.aispp-popup {
  position: fixed;
  z-index: 9999;
  max-width: min(92vw, 520px);
  min-width: 280px;
  padding: 16px 18px;
  border-radius: 14px;
  color: var(--aispp-font-color, #fff);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  background: var(--aispp-bg, rgba(18,18,18,0.85));
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.aispp-popup.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.aispp-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.aispp-title { font-weight: 700; font-size: 14px; opacity: .9; }
.aispp-close { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; }

.aispp-content { font-size: var(--aispp-font-size, 16px); line-height: 1.8; color: var(--aispp-font-color, #fff); }
.aispp-loading { display: inline-flex; align-items: center; gap: 8px; opacity: .85; }
.aispp-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: aispp-spin 1s linear infinite; }

@keyframes aispp-spin { to { transform: rotate(360deg); } }

/* Positions for icon and popup anchor */
.aispp-pos-right-bottom { right: 18px; bottom: 22px; }
.aispp-pos-left-bottom { left: 18px; bottom: 22px; }
.aispp-pos-center { left: 50%; bottom: 22px; transform: translateX(-50%); }

@media (max-width: 480px) {
  .aispp-popup { max-width: 94vw; padding: 14px; }
}
