/* ============================================================
   Wrist24 Social Proof — Industry-Leading Notification
   Mobile-first, premium frosted glass design
   ============================================================ */

/* Base notification container */
.asp-notification {
  position: fixed;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--asp-radius, 16px);
  padding: 14px 16px;
  max-width: var(--asp-max-width, 380px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Position variants */
.asp-notification.asp-pos-left {
  bottom: 20px;
  left: 20px;
}

.asp-notification.asp-pos-right {
  bottom: 20px;
  right: 20px;
}

/* Visible state */
.asp-notification.asp-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Subtle top accent line */
.asp-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--asp-accent, #C6A86C) 30%,
    var(--asp-accent, #C6A86C) 70%,
    transparent);
  opacity: 0.5;
  border-radius: 0 0 2px 2px;
}

/* Close button — minimal, invisible until hover */
.asp-close {
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  width: 22px !important;
  height: 22px !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, 0.2) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  transform: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  z-index: 3 !important;
  opacity: 0;
}

.asp-notification:hover .asp-close {
  opacity: 1;
}

.asp-close:hover {
  color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Verified pulse dot */
.asp-pulse {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: asp-pulse 2s ease-in-out infinite;
  margin-top: 1px;
}

@keyframes asp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* Content area */
.asp-content {
  flex: 1;
  min-width: 0;
  padding-right: 10px;
}

/* Buyer line */
.asp-buyer {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
  margin-bottom: 3px;
  letter-spacing: 0.1px;
}

.asp-buyer strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Product name */
.asp-product {
  font-size: 13px;
  font-weight: 600;
  color: var(--asp-text, #ffffff);
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row: price + time */
.asp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1;
}

.asp-price {
  color: var(--asp-accent, #C6A86C);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.2px;
}

.asp-sep {
  color: rgba(255, 255, 255, 0.12);
  font-size: 4px;
}

.asp-time {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

/* Verified badge */
.asp-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-left: 10px;
  white-space: nowrap;
}

.asp-verified svg {
  width: 10px;
  height: 10px;
  stroke: #22c55e;
  fill: none;
  stroke-width: 2.5;
}

/* ============================================================
   MOBILE — Full-width bottom bar (priority layout)
   ============================================================ */
@media (max-width: 768px) {
  .asp-notification {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    max-width: none !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    gap: 10px;
  }

  .asp-notification::before {
    left: 14px;
    right: 14px;
  }

  .asp-close {
    opacity: 1 !important;
    top: -8px !important;
    right: -4px !important;
    width: 24px !important;
    height: 24px !important;
    background: rgba(30, 30, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
  }

  .asp-product {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .asp-buyer {
    font-size: 11px;
  }

  .asp-meta {
    font-size: 10px;
  }

  .asp-price {
    font-size: 11px;
  }

  .asp-verified {
    font-size: 8px;
    margin-left: 6px;
  }

  .asp-pulse {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 380px) {
  .asp-notification {
    padding: 10px 12px !important;
    gap: 8px;
  }

  .asp-verified {
    display: none;
  }
}
