/* Achievement Notification Styles
 * Updated: Added Share to Wall button styles
 */

.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: linear-gradient(135deg, #1a1f26, #26211A);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 320px;
  max-width: 420px;
  border: 2px solid #ffd700;
  position: relative;
  overflow: hidden;
}

/* Gold shimmer effect */
.achievement-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.achievement-popup .achievement-icon {
  font-size: 48px;
  flex-shrink: 0;
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

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

.achievement-popup h3 {
  color: #ffd700;
  font-size: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

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

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

/* Action buttons container */
.achievement-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Share to Wall button */
.share-to-wall-btn {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.share-to-wall-btn:hover {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.share-to-wall-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.share-to-wall-btn.shared {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Dismiss button */
.dismiss-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #888;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 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%;
    padding: 15px;
  }
  
  .achievement-popup .achievement-icon {
    font-size: 40px;
  }
  
  .achievement-popup h4 {
    font-size: 16px;
  }
  
  .achievement-actions {
    flex-wrap: wrap;
  }
  
  .share-to-wall-btn {
    flex: 1;
    text-align: center;
  }
}

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

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

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