/*
===================================
====== NOTIFICATION STYLES ========
===================================
*/

#notificationContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;

  /* Styling */
  background: var(--A2-secondary);
  border: 2px solid var(--A1-primary);
  border-radius: 15px;
  color: var(--A5-text);

  /* Shadow for depth */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);

  /* Animation setup */
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;

  /* Enable pointer events on notification */
  pointer-events: auto;

  /* Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;

  /* Minimum width */
  min-width: 200px;
  max-width: 400px;
}

.notification-clickable {
  cursor: pointer;
}

.notification-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.notification-heartIcon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-heartIconImg {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.notification-heartIconLabel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.notification-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--A5-text);
  flex: 1;
}

/* Slide-in animation */
.notification-show {
  transform: translateX(0);
  opacity: 1;
}

/* Slide-out animation */
.notification-hide {
  transform: translateX(120%);
  opacity: 0;
}

/* Reward notification - amount in green */
.notification-rewardAmount {
  color: #4ade80;
  font-weight: 700;
}

/* Reward toast should be more prominent */
.notification-reward {
  min-width: 280px;
  padding: 20px 30px;
}

.notification-reward .notification-text {
  font-size: 22px;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #notificationContainer {
    right: 10px;
    top: 10px;
  }

  .notification {
    min-width: 200px;
    max-width: calc(100vw - 20px);
    padding: 12px 20px;
  }

  .notification-icon {
    width: 28px;
    height: 28px;
  }

  .notification-heartIcon {
    width: 34px;
    height: 34px;
  }

  .notification-heartIconImg {
    width: 34px;
    height: 34px;
  }

  .notification-heartIconLabel {
    font-size: 12px;
  }

  .notification-text {
    font-size: 14px;
  }

  .notification-reward {
    min-width: 240px;
    padding: 16px 24px;
  }

  .notification-reward .notification-text {
    font-size: 18px;
  }
}
