/**
 * Notification System Styles
 * أنماط نظام الإشعارات
 */

/* Toast Notification Container */
.notification-toast-container {
    position: fixed;
    top: 20px;
    right: 20px; /* RTL: Use right instead of left */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .notification-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-toast {
        min-width: auto;
        width: 100%;
    }
}

/* Toast Notification */
.notification-toast {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(120%); /* RTL: Slide from right */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-right: 4px solid #d4af37;
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    min-width: 300px; /* Ensure minimum width */
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-toast:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transform: translateX(0) scale(1.02);
}

.notification-toast::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #d4af37, #fbbf24);
}

/* Toast Icon */
.toast-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
}

.toast-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toast-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Toast Close Button */
.toast-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
}

/* Audio Unlock Banner */
.audio-unlock-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideUp 0.3s ease-out;
    direction: rtl;
}

.audio-unlock-banner .close-banner {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.audio-unlock-banner .close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .audio-unlock-banner {
        bottom: 80px;
        left: 10px;
        right: 10px;
        transform: none;
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Notification Dropdown Enhancements */
.notifications-dropdown {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item {
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.notification-item.unread {
    background: rgba(212, 175, 55, 0.08);
    border-right: 3px solid #d4af37;
}

/* Notification Badge Pulse Animation */
.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification-toast {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-right-color: #d4af37;
    }
    
    .toast-title {
        color: #f9fafb;
    }
    
    .toast-message {
        color: #d1d5db;
    }
    
    .toast-time {
        color: #9ca3af;
    }
    
    .toast-close {
        color: #9ca3af;
    }
    
    .toast-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #d1d5db;
    }
}

/* RTL Support - Already handled above since page is RTL by default */
