/**
 * Toast Notification Styles
 *
 * Premium styled toast notifications for the ProRank SEO plugin.
 * Fixed positioned toasts that appear in the bottom-right corner.
 *
 * @since 3.0.0
 */

/* Toast Container - Fixed position at bottom right */
.prorank-toast-container {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 999999 !important;
  pointer-events: none;
  padding: 16px;
}

.prorank-toast-container > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

.prorank-toast-container .pointer-events-auto {
  pointer-events: auto;
}

/* Toast Notification Base Styles */
.prorank-toast {
  position: relative !important;
  width: 380px;
  max-width: calc(100vw - 48px);
  padding: 16px 20px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(8px);
  animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Success Toast */
.prorank-toast--success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1px solid #10b981 !important;
}

.prorank-toast--success p {
  color: #065f46 !important;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}

.prorank-toast--success svg {
  fill: #10b981;
  color: #10b981;
}

/* Error Toast */
.prorank-toast--error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  border: 1px solid #ef4444 !important;
}

.prorank-toast--error p {
  color: #991b1b !important;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}

.prorank-toast--error svg {
  fill: #ef4444;
  color: #ef4444;
}

/* Warning Toast */
.prorank-toast--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 1px solid #f59e0b !important;
}

.prorank-toast--warning p {
  color: #92400e !important;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}

.prorank-toast--warning svg {
  fill: #f59e0b;
  color: #f59e0b;
}

/* Info Toast */
.prorank-toast--info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 1px solid #3b82f6 !important;
}

.prorank-toast--info p {
  color: #1e40af !important;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}

.prorank-toast--info svg {
  fill: #3b82f6;
  color: #3b82f6;
}

/* Toast Icon */
.prorank-toast .flex-shrink-0 svg {
  width: 20px;
  height: 20px;
}

/* Toast Close Button */
.prorank-toast button[aria-label="Dismiss notification"] {
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 4px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.prorank-toast button[aria-label="Dismiss notification"]:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

/* Toast Content Layout */
.prorank-toast > .flex {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.prorank-toast .ml-3 {
  margin-left: 0 !important;
  flex: 1;
}

.prorank-toast .ml-4 {
  margin-left: auto !important;
}

/* Ensure toast is above WordPress admin bar */
@media screen and (min-width: 783px) {
  .prorank-toast-container {
    bottom: 24px !important;
  }
}
