/* ===========================
   SISTEMA DE NOTIFICAÇÕES POPUP
   Gonzaga's Art & Shine
   =========================== */

/* Notificações fora do container (ui.js, media-library) - forçar bottom-right */
body > .notification {
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
}

.notification-container {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  top: auto !important;
  z-index: 10000;
  max-width: 400px;
  width: auto;
  pointer-events: none;
}

.notification-container .notification {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
  min-width: 320px;
  max-width: 400px;
  overflow: hidden;
  transform: translateX(420px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

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

.notification-container .notification.hide {
  transform: translateX(420px);
  opacity: 0;
}

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

.notification-icon {
  flex-shrink: 0;
  font-size: 20px;
  margin-top: 2px;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-tertiary);
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 12px;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-info);
}

.notification-progress {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, currentColor 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* ===========================
   TIPOS DE NOTIFICAÇÃO
   =========================== */

/* SUCCESS - Verde/Dourado */
.notification-success {
  background: linear-gradient(135deg, rgba(168, 168, 168, 0.95) 0%, rgba(184, 115, 51, 0.9) 100%);
  border-left: 4px solid var(--color-bronze);
  color: white;
}

.notification-success .notification-icon {
  color: var(--color-bronze);
}

.notification-success .notification-message {
  color: white;
}

.notification-success .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-success .notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ERROR - Vermelho/Dourado */
.notification-error {
  background: linear-gradient(135deg, rgba(245, 101, 101, 0.95) 0%, rgba(229, 62, 62, 0.95) 100%);
  border-left: 4px solid var(--color-bronze);
  color: white;
}

.notification-error .notification-icon {
  color: var(--color-danger);
}

.notification-error .notification-message {
  color: white;
}

.notification-error .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-error .notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* WARNING - Laranja/Amarelo */
.notification-warning {
  background: linear-gradient(135deg, rgba(237, 137, 54, 0.95) 0%, rgba(246, 173, 85, 0.95) 100%);
  border-left: 4px solid var(--color-bronze);
  color: white;
}

.notification-warning .notification-icon {
  color: var(--color-warning);
}

.notification-warning .notification-message {
  color: white;
}

.notification-warning .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-warning .notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* INFO - Prata/bronze */
.notification-info {
  background: linear-gradient(135deg, rgba(168, 168, 168, 0.95) 0%, rgba(184, 115, 51, 0.9) 100%);
  border-left: 4px solid var(--color-bronze);
  color: white;
}

.notification-info .notification-icon {
  color: var(--color-bronze);
}

.notification-info .notification-message {
  color: white;
}

.notification-info .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-info .notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ===========================
   EFEITOS ESPECIAIS
   =========================== */

.notification-container .notification:hover {
  transform: translateX(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.notification-container .notification:hover .notification-progress {
  animation-play-state: paused;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */

@media (max-width: 480px) {
  .notification-container {
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;
    max-width: none;
  }
  
  .notification-container .notification {
    min-width: auto;
    max-width: none;
    margin-bottom: 8px;
    transform: translateY(-100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .notification.hide {
    transform: translateY(-100px);
  }
  
  .notification-content {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .notification-message {
    font-size: 13px;
  }
}

/* ===========================
   ANIMAÇÕES EXTRAS
   =========================== */

.notification-icon i {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Efeito de entrada suave */
.notification-container .notification {
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .notification {
    background: rgba(26, 32, 44, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .notification-message {
    color: var(--color-text);
  }
  
  .notification-close {
    color: var(--color-text-muted);
  }
  
  .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
  }
} 