/* ========================================
   TROJANVOICE NOTIFICATION SYSTEM
   Modern overlay toast notifications
   ======================================== */

/* Notification Container - Fixed overlay */
.tv-notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--tv-space-3);
  max-width: 400px;
  pointer-events: none;
}

/* Base Notification Styling */
.tv-notification {
  display: flex;
  align-items: flex-start;
  gap: var(--tv-space-3);
  padding: var(--tv-space-4) var(--tv-space-5);
  border-radius: var(--tv-radius-lg);
  box-shadow: var(--tv-shadow-lg);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  font-family: var(--tv-font-family);
  font-size: var(--tv-font-base);
  line-height: var(--tv-leading-normal);
  max-width: 400px;
  word-wrap: break-word;
  position: relative;
  overflow: hidden;
  
  /* Animation */
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show state */
.tv-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Hide state */
.tv-notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

/* Notification content */
.tv-notification-content {
  flex: 1;
  min-width: 0;
}

.tv-notification-title {
  font-weight: var(--tv-font-semibold);
  margin-bottom: var(--tv-space-1);
  font-size: var(--tv-font-base);
}

.tv-notification-message {
  font-weight: var(--tv-font-normal);
  opacity: 0.9;
}

/* Close button */
.tv-notification-close {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: var(--tv-space-1);
  border-radius: var(--tv-radius-sm);
  opacity: 0.7;
  transition: opacity var(--tv-duration-fast) ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.tv-notification-close:hover {
  opacity: 1;
}

/* Progress bar for auto-dismiss */
.tv-notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 var(--tv-radius-lg) var(--tv-radius-lg);
  transform-origin: left;
  animation: notification-progress linear;
}

@keyframes notification-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ========================================
   RAINBOW COLOR VARIANTS
   ======================================== */

/* Success - Green */
.tv-notification-success {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 0.95) 0%, 
    rgba(22, 163, 74, 0.95) 100%);
  color: white;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Error - Red */
.tv-notification-error {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%, 
    rgba(220, 38, 38, 0.95) 100%);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Warning - Orange */
.tv-notification-warning {
  background: linear-gradient(135deg, 
    rgba(249, 115, 22, 0.95) 0%, 
    rgba(234, 88, 12, 0.95) 100%);
  color: white;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Info - Blue */
.tv-notification-info {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%, 
    rgba(37, 99, 235, 0.95) 100%);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Primary - Teal */
.tv-notification-primary {
  background: linear-gradient(135deg, 
    rgba(20, 184, 166, 0.95) 0%, 
    rgba(13, 148, 136, 0.95) 100%);
  color: white;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Special - Purple */
.tv-notification-purple {
  background: linear-gradient(135deg, 
    rgba(147, 51, 234, 0.95) 0%, 
    rgba(126, 34, 206, 0.95) 100%);
  color: white;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Feature - Indigo */
.tv-notification-indigo {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.95) 0%, 
    rgba(79, 70, 229, 0.95) 100%);
  color: white;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Pink - Special actions */
.tv-notification-pink {
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 0.95) 0%, 
    rgba(219, 39, 119, 0.95) 100%);
  color: white;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Yellow - Bright info */
.tv-notification-yellow {
  background: linear-gradient(135deg, 
    rgba(250, 204, 21, 0.95) 0%, 
    rgba(245, 158, 11, 0.95) 100%);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .tv-notifications-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: unset;
  }
  
  .tv-notification {
    max-width: unset;
    padding: var(--tv-space-3) var(--tv-space-4);
  }
  
  .tv-notification-title {
    font-size: var(--tv-font-sm);
  }
  
  .tv-notification-message {
    font-size: var(--tv-font-sm);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .tv-notification {
    transition: none;
    animation: none;
  }
  
  .tv-notification-progress {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .tv-notification {
    border-width: 2px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .tv-notification-yellow {
    color: rgba(0, 0, 0, 0.9);
  }
}