/**
 * Rewards Notifications Styles
 * Toast notification styling
 */

.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification.fade-out {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.notification-message {
  flex: 1;
  color: #333;
  font-size: 0.95rem;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  margin-left: 1rem;
  transition: color 0.3s;
}

.notification-close:hover {
  color: #333;
}

/* Success notification */
.notification-success {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #f0fff4, #e8f5e9);
}

.notification-success .notification-message {
  color: #1b5e20;
}

/* Milestone notification */
.notification-milestone {
  border-left: 4px solid #ff6f00;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.notification-milestone .notification-message {
  color: #e65100;
  font-weight: 600;
}

/* Level up notification */
.notification-levelup {
  border-left: 4px solid #ffd700;
  background: linear-gradient(135deg, #fffde7, #fff9c4);
}

.notification-levelup .notification-message {
  color: #f57f17;
  font-weight: 600;
}

/* Error notification */
.notification-error {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #ffe5e5, #ffcccc);
}

.notification-error .notification-message {
  color: #c41c3b;
}

/* Info notification */
.notification-info {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(135deg, #e1f5fe, #b3e5fc);
}

.notification-info .notification-message {
  color: #00838f;
}

/* Responsive */
@media (max-width: 600px) {
  .notifications-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    min-width: auto;
  }
}

