/* إشعارات النجاح */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    animation: slideInRight 0.3s ease-out;
}

.success-notification i {
    font-size: 16px;
}

/* إشعارات الخطأ */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    animation: slideInRight 0.3s ease-out;
}

.error-notification i {
    font-size: 16px;
}

/* إشعارات التحذير */
.warning-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f59e0b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    animation: slideInRight 0.3s ease-out;
}

.warning-notification i {
    font-size: 16px;
}

/* إشعارات المعلومات */
.info-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    animation: slideInRight 0.3s ease-out;
}

.info-notification i {
    font-size: 16px;
}

/* إشعارات التحذير */
.warning-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f59e0b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    animation: slideInRight 0.3s ease-out;
}

.warning-notification i {
    font-size: 16px;
}

/* حالات الخصومات */
.offer-item.offer-available {
    border-color: #e5e7eb;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.offer-item.offer-applied {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.offer-item.offer-applied .offer-content {
    color: #059669;
}

/* أزرار الخصم */
.apply-offer-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.apply-offer-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.remove-offer-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-offer-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.remove-offer-btn i {
    font-size: 12px;
}

/* تأثيرات بصرية */
.pulse-effect {
    animation: pulseSuccess 1s ease-in-out;
}

.return-effect {
    animation: returnToNormal 1s ease-in-out;
}

@keyframes pulseSuccess {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes returnToNormal {
    0% {
        transform: scale(1);
        background: #f0fdf4;
    }
    50% {
        transform: scale(0.98);
        background: #e5f3ff;
    }
    100% {
        transform: scale(1);
        background: #f9fafb;
    }
}

/* الرسوم المتحركة */
@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;
    }
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .success-notification,
    .error-notification,
    .warning-notification,
    .info-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        font-size: 13px;
    }
}

/* إخفاء الإشعارات عند التمرير */
.notification-hidden {
    animation: slideOutRight 0.3s ease-in forwards;
}
