/**
 * Zayirja AI - نظام التنبيهات الشامل
 * CSS للتنبيهات والإشعارات
 */

/* حاوية التنبيهات الرئيسية */
.zayirja-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

/* التنبيه الفردي */
.zayirja-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(100%);
    animation: slideInRight 0.5s ease forwards;
    transition: all 0.3s ease;
}

.zayirja-notification:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* أنواع التنبيهات المختلفة */
.zayirja-notification.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.3);
}

.zayirja-notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 5px 25px rgba(244, 67, 54, 0.3);
}

.zayirja-notification.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 5px 25px rgba(255, 152, 0, 0.3);
}

.zayirja-notification.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 5px 25px rgba(33, 150, 243, 0.3);
}

.zayirja-notification.points {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    box-shadow: 0 5px 25px rgba(255, 107, 107, 0.3);
}

.zayirja-notification.achievement {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4);
    color: #333;
}

.zayirja-notification.level_up {
    background: linear-gradient(135deg, #9C27B0 0%, #673AB7 100%);
    box-shadow: 0 5px 25px rgba(156, 39, 176, 0.4);
}

/* محتوى التنبيه */
.zayirja-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.zayirja-notification-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.zayirja-notification-text {
    flex: 1;
    min-width: 0;
}

.zayirja-notification-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.zayirja-notification-message {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
    margin: 0;
}

/* زر الإغلاق */
.zayirja-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.zayirja-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* الحركات والتأثيرات */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* تنبيهات الموبايل */
@media (max-width: 768px) {
    .zayirja-notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .zayirja-notification {
        padding: 12px 16px;
        margin-bottom: 8px;
    }
    
    .zayirja-notification-title {
        font-size: 14px;
    }
    
    .zayirja-notification-message {
        font-size: 13px;
    }
    
    .zayirja-notification-icon {
        font-size: 24px;
    }
}

/* تأثيرات خاصة */
.zayirja-notification.achievement .zayirja-notification-icon {
    animation: bounce 1s ease infinite;
}

.zayirja-notification.level_up .zayirja-notification-icon {
    animation: pulse 1.5s ease infinite;
}

/* إضافة لـ RTL */
[dir="rtl"] .zayirja-notifications-container {
    right: auto;
    left: 20px;
}

[dir="rtl"] .zayirja-notification {
    transform: translateX(-100%);
}

[dir="rtl"] .zayirja-notification-close {
    right: auto;
    left: 8px;
} 