/* ============================================================
   USER NOTIFICATION SYSTEM STYLES
   ============================================================ */

.notification-bell-container {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.notification-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.notification-bell-btn:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.notification-bell-btn svg {
    width: 24px;
    height: 24px;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 1000;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mark-all-read-btn:hover {
    background-color: #eff6ff;
}

.notification-list {
    overflow-y: auto;
    max-height: 500px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #eff6ff;
}

.notification-item.unread:hover {
    background-color: #dbeafe;
}

.notification-avatar {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    position: relative !important;
    animation: none !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 50% !important;
}

.notification-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    animation: none !important;
    transform: none !important;
    position: relative !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-avatar .verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #6b7280;
}

.notification-dot {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #2563eb;
    border-radius: 50%;
}

.notification-loading,
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 350px;
        right: -50px;
    }
    
    .notification-bell-container {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        border-radius: 16px;
        max-height: calc(100vh - 70px);
        z-index: 10001;
    }
    
    .notification-list {
        max-height: calc((100vh - 140px) * 0.8);
    }
    
    .notification-bell-container {
        margin: 0 5px;
    }
    
    /* Ensure avatars display on mobile */
    .notification-avatar {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .notification-avatar img {
        display: block !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
    }
    
    .notification-icon {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .notification-item {
        display: flex !important;
    }
}


/* Premium Tip Notification Styles */
.notification-item.premium-tip {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.notification-item.premium-tip::before {
    content: '✨';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    animation: sparkleRotate 2s ease-in-out infinite;
}

.notification-item.premium-tip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes sparkleRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Animation for new notifications */
@keyframes notification-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.notification-bell-btn.has-new {
    animation: notification-pulse 0.5s ease-in-out;
}
