/**
 * Toast notification system
 * Modern notifications for game events
 */

/* Notification Container */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-notification, 10000);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 360px;
}

@media (max-width: 600px) {
  .notification-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* Notification Toast */
.notification {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md, 12px);
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6),
              0 2px 8px rgba(0,0,0,0.4);
  border-left: 4px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  min-height: 60px;
  transition: all var(--transition-base, 0.25s ease);
}

.notification:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7),
              0 4px 12px rgba(0,0,0,0.5);
}

/* Notification Types */
.notification.success {
  border-left-color: var(--win, #4CAF50);
}

.notification.success .notification-icon {
  color: var(--win, #4CAF50);
}

.notification.error {
  border-left-color: var(--lose, #f44336);
}

.notification.error .notification-icon {
  color: var(--lose, #f44336);
}

.notification.warning {
  border-left-color: #FF9800;
}

.notification.warning .notification-icon {
  color: #FF9800;
}

.notification.info {
  border-left-color: var(--push, #2196F3);
}

.notification.info .notification-icon {
  color: var(--push, #2196F3);
}

.notification.blackjack {
  border-left-color: var(--blackjack, #FFD700);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(30, 30, 30, 0.98));
}

.notification.blackjack .notification-icon {
  color: var(--blackjack, #FFD700);
  font-size: 2rem;
}

/* Notification Icon */
.notification-icon {
  font-size: 1.5rem;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notification Content */
.notification-content {
  flex: 1;
  color: #fff;
}

.notification-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
  color: #fff;
}

.notification-message {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Close Button */
.notification-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm, 8px);
  transition: all var(--transition-fast, 0.15s ease);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Progress Bar */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 var(--radius-md, 12px) var(--radius-md, 12px);
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width linear;
}

.notification.success .notification-progress-bar {
  background: var(--win);
}

.notification.error .notification-progress-bar {
  background: var(--lose);
}

.notification.warning .notification-progress-bar {
  background: #FF9800;
}

.notification.info .notification-progress-bar {
  background: var(--push);
}

/* Loading State */
.notification.loading .notification-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Compact Mode */
.notification.compact {
  min-height: 48px;
  padding: 12px 16px;
}

.notification.compact .notification-icon {
  font-size: 1.25rem;
}

.notification.compact .notification-title {
  font-size: 0.875rem;
}

.notification.compact .notification-message {
  font-size: 0.75rem;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
  .notification {
    padding: 14px 16px;
    min-height: 56px;
  }

  .notification-icon {
    font-size: 1.35rem;
  }

  .notification-title {
    font-size: 0.95rem;
  }

  .notification-message {
    font-size: 0.85rem;
  }
}

/* Action Buttons in Notifications */
.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.notification-action {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm, 8px);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.notification-action:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.notification-action.primary {
  background: var(--gradient-gold);
  border-color: var(--gold);
  color: #000;
}

.notification-action.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

