/**
 * Najibul Notification System - Master Bell & Dropdown Styles
 * Luxury Obsidian Glassmorphism Architecture (Mobile to 4K Desktop)
 */

.najibul-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* Bell Trigger Button */
.najibul-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    cursor: pointer;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    padding: 0;
}

.najibul-bell-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.najibul-bell-btn:active {
    transform: scale(0.96);
}

.najibul-bell-btn.has-unread {
    color: #38bdf8;
}

/* Neon Pulse Animation for Unread */
.najibul-bell-btn.has-unread::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: najibulBellPulse 2s infinite;
}

@keyframes najibulBellPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Unread Badge Counter */
.najibul-bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    display: none;
    border: 1.5px solid #0f172a;
}

.najibul-bell-badge.active {
    display: inline-block;
}

/* Floating Dropdown Menu */
.najibul-bell-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    z-index: 999999;
    overflow: hidden;
    animation: najibulDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    text-align: left;
}

@keyframes najibulDropdownFade {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dropdown Header */
.najibul-bell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.najibul-bell-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.najibul-bell-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #f8fafc;
}

.najibul-bell-unread-tag {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
}

.najibul-bell-mark-all {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.najibul-bell-mark-all:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.05);
}

/* Filter Tabs */
.najibul-bell-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
}

.najibul-bell-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.najibul-bell-tab:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.najibul-bell-tab.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Feed Area */
.najibul-bell-feed {
    max-height: 420px;
    overflow-y: auto;
    padding: 4px 0;
}

.najibul-bell-feed::-webkit-scrollbar {
    width: 5px;
}
.najibul-bell-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* Notification Item */
.najibul-bell-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.najibul-bell-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.najibul-bell-item.is-unread {
    background: rgba(56, 189, 248, 0.06);
}

.najibul-bell-item.is-important {
    border-left: 3px solid #f43f5e;
}

/* Avatar Box */
.najibul-bell-avatar-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.najibul-bell-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.najibul-bell-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.najibul-bell-avatar-fallback.type-follow {
    color: #22c55e;
}
.najibul-bell-avatar-fallback.type-balance {
    color: #eab308;
}

/* Content */
.najibul-bell-content {
    flex: 1;
    min-width: 0;
}

.najibul-bell-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.najibul-bell-item-msg {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.najibul-bell-item-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* Unread Indicator Dot */
.najibul-bell-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
    flex-shrink: 0;
    align-self: center;
}

/* Empty State */
.najibul-bell-empty {
    padding: 36px 20px;
    text-align: center;
    color: #94a3b8;
}

.najibul-bell-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.najibul-bell-empty-title {
    font-weight: 700;
    color: #f8fafc;
    font-size: 14px;
}

.najibul-bell-empty-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Mobile Screen Tuning */
@media (max-width: 480px) {
    .najibul-bell-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        max-height: 80vh;
    }
}
