/* ===== BEMA NOTIFICATION SYSTEM STYLES ===== */

/* Notification Container */
.bema-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  min-width: 300px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.bema-notification--show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Notification Content */
.bema-notification__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Notification Types */
.bema-notification--success .bema-notification__content {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 0.9) 0%, 
    rgba(22, 163, 74, 0.95) 100%);
  color: var(--white);
  border-color: rgba(34, 197, 94, 0.3);
}

.bema-notification--error .bema-notification__content {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.9) 0%, 
    rgba(220, 38, 38, 0.95) 100%);
  color: var(--white);
  border-color: rgba(239, 68, 68, 0.3);
}

.bema-notification--info .bema-notification__content {
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    #1a365d 100%);
  color: var(--white);
  border-color: rgba(46, 134, 222, 0.3);
}

/* Notification Message */
.bema-notification__message {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  margin-right: var(--spacing-sm);
}

/* Close Button */
.bema-notification__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0.8;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bema-notification__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Loader Styles */
.bema-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: bema-spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes bema-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button Loading State */
.hero-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.hero-submit-btn:disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(46, 134, 222, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bema-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
  }
  
  .bema-notification__content {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .bema-notification__message {
    font-size: 0.85rem;
  }
}

/* Animation Enhancements */
.bema-notification--success {
  animation: bema-bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bema-notification--error {
  animation: bema-shake 0.5s ease-in-out;
}

@keyframes bema-bounce-in {
  0% {
    opacity: 0;
    transform: translateX(100%) scale(0.3);
  }
  50% {
    transform: translateX(-10%) scale(1.05);
  }
  70% {
    transform: translateX(2%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes bema-shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Success Icon Animation */
.bema-notification--success .bema-notification__message::before {
  content: '🎉';
  margin-right: 8px;
  animation: bema-pulse 2s infinite;
}

.bema-notification--error .bema-notification__message::before {
  content: '⚠️';
  margin-right: 8px;
}

.bema-notification--info .bema-notification__message::before {
  content: '📧';
  margin-right: 8px;
}

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