/* Stacked Notification System: mobile-first (see notifications.lg.css) */

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

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

#notification-container {
    position: fixed;
    top: 80px;
    left: 10px;
    right: 10px;
    z-index: var(--ttms-z-notification, 10100);
    max-width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Enhanced Notification Styles */

.notification {
  background: var(--scheme-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--scheme-black) 15%, transparent);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity var(--ttms-duration, 0.28s) ease, transform var(--ttms-duration, 0.28s) var(--ttms-ease-out, ease);
  overflow: hidden;
  max-width: calc(100% - 20px);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.hide {
  opacity: 0;
  transform: translateX(400px);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  gap: 12px;
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--scheme-ink-muted);
}

.notification-message {
  font-size: 12px;
  color: var(--scheme-ink-muted);
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--scheme-ink-muted);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.notification-close:hover {
  color: var(--scheme-ink-muted);
}

/* Priority Styles */
.notification.priority-urgent .notification-content {
  border-left: 4px solid var(--scheme-accent-deep);
}

.notification.priority-high .notification-content {
  border-left: 4px solid var(--scheme-accent-2);
}

.notification.priority-normal .notification-content {
  border-left: 4px solid var(--scheme-button-bg);
}

.notification.priority-low .notification-content {
  border-left: 4px solid var(--scheme-button-bg);
}

/* Type-specific styles */
.notification[data-type="menu_update"] .notification-content {
  background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
  color: var(--scheme-white);
}

.notification[data-type="menu_update"] .notification-title,
.notification[data-type="menu_update"] .notification-message {
  color: var(--scheme-white);
}

.notification[data-type="promotion"] .notification-content {
  background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-accent-2) 100%);
  color: var(--scheme-white);
}

.notification[data-type="promotion"] .notification-title,
.notification[data-type="promotion"] .notification-message {
  color: var(--scheme-white);
}

.notification[data-type="order"] .notification-content {
  background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
  color: var(--scheme-white);
}

.notification[data-type="order"] .notification-title,
.notification[data-type="order"] .notification-message {
  color: var(--scheme-white);
}

.notification[data-type="system"] .notification-content {
  background: linear-gradient(135deg, var(--scheme-accent-2) 0%, var(--scheme-accent) 100%);
  color: var(--scheme-white);
}

.notification[data-type="system"] .notification-title,
.notification[data-type="system"] .notification-message {
  color: var(--scheme-white);
}
