/* ============================================================
   SOCIAL PROOF TOAST — Live Activity Notification
   Premium floating toast that shows recent student activity
   ============================================================ */

.social-proof-toast {
  position: fixed;
  bottom: 90px;
  left: 24px;
  z-index: 998;
  opacity: 0;
  transform: translateX(-20px) translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.social-proof-toast.sp-toast--visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
  pointer-events: all;
}

.sp-toast__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  padding-top: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  max-width: 340px;
  position: relative;
  overflow: hidden;
  animation: sp-entrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-toast__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-400), var(--color-accent-400));
}

.sp-toast__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-gray-400);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}

.sp-toast__close:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.sp-toast__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid var(--color-primary-100);
}

.sp-toast__body {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.sp-toast__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-gray-900);
  line-height: 1.3;
}

.sp-toast__city {
  font-weight: 400;
  color: var(--color-gray-500);
}

.sp-toast__action {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  line-height: 1.4;
  margin-top: 2px;
}

.sp-toast__time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--color-gray-400);
  margin-top: 4px;
  font-weight: 500;
}

.sp-toast__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-500);
  animation: sp-dot-pulse 2s infinite;
}

@keyframes sp-entrance {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sp-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Mobile */
@media (max-width: 768px) {
  .social-proof-toast {
    left: 12px;
    right: 12px;
    bottom: 80px;
  }
  
  .sp-toast__inner {
    max-width: 100%;
  }
}
