/* Achievement Notification Styles
 * Add this to any page where you want achievement notifications to appear
 */

.achievement-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.achievement-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.achievement-popup {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 300px;
  max-width: 400px;
  border: 3px solid #667eea;
}

.achievement-popup .achievement-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.achievement-popup .achievement-content {
  flex: 1;
}

.achievement-popup h3 {
  color: #667eea;
  font-size: 14px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.achievement-popup h4 {
  color: #333;
  font-size: 18px;
  margin-bottom: 3px;
  font-weight: 700;
}

.achievement-popup p {
  color: #666;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .achievement-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    transform: translateY(-200px);
  }

  .achievement-notification.show {
    transform: translateY(0);
  }

  .achievement-popup {
    min-width: auto;
    width: 100%;
  }

  .achievement-popup .achievement-icon {
    font-size: 40px;
  }

  .achievement-popup h4 {
    font-size: 16px;
  }
}

/* Celebration animation (optional) */
@keyframes celebrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.achievement-notification.show .achievement-icon {
  animation: celebrate 0.6s ease-in-out;
}

/* Sound effect indicator (optional) */
.achievement-popup::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

/* Multiple notifications stacking */
.achievement-notification:nth-child(2) {
  top: 120px;
}

.achievement-notification:nth-child(3) {
  top: 220px;
}

.achievement-notification:nth-child(4) {
  top: 320px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .achievement-popup {
    background: #2d3748;
    border-color: #667eea;
  }

  .achievement-popup h4 {
    color: #f7fafc;
  }

  .achievement-popup p {
    color: #cbd5e0;
  }
}
