/**
 * Prime SEO Global Toast Notifications
 *
 * @package Prime_SEO
 * @since 1.0.6
 */

/* Toast Container */
.prime-seo-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    max-width: 400px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible State */
.prime-seo-toast--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Icon */
.prime-seo-toast-icon {
    flex-shrink: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

/* Message */
.prime-seo-toast-message {
    flex: 1;
    word-break: break-word;
}

/* Close Button */
.prime-seo-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.prime-seo-toast-close:hover {
    color: #fff;
}

/* Success State */
.prime-seo-toast--success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.prime-seo-toast--success .prime-seo-toast-icon {
    color: #fff;
}

/* Error State */
.prime-seo-toast--error {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.prime-seo-toast--error .prime-seo-toast-icon {
    color: #fff;
}

/* Info State */
.prime-seo-toast--info {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.prime-seo-toast--info .prime-seo-toast-icon {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .prime-seo-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        min-width: auto;
    }
}

/* RTL Support */
[dir="rtl"] .prime-seo-toast {
    left: 24px;
    right: auto;
}

[dir="rtl"] .prime-seo-toast-close {
    margin-left: 0;
    margin-right: 8px;
}

@media (max-width: 480px) {
    [dir="rtl"] .prime-seo-toast {
        left: 16px;
        right: 16px;
    }
}
