/* =============================================
   AapkaLove ?" Premium Notification UI
   ============================================= */

/* Bell Container */
.al-nav-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--al-text-dark);
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 8px;
}

.al-nav-notifications:hover {
    background: rgba(0, 0, 0, 0.04);
}

.al-nav-notifications svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Unread Badge */
.al-nav-notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #E0217A;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-sizing: content-box;
}

/* Dropdown Popover */
.al-notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.al-notif-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header */
.al-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.al-notif-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--al-text-dark);
}

.al-notif-mark-read {
    font-size: 0.85rem;
    color: var(--al-text-muted);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.al-notif-mark-read:hover {
    color: var(--al-text-dark);
}

/* List */
.al-notif-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Scrollbar */
.al-notif-list::-webkit-scrollbar {
    width: 6px;
}
.al-notif-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

/* Item */
.al-notif-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
}

.al-notif-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.al-notif-item.unread {
    background: rgba(224, 33, 122, 0.03);
}

.al-notif-item.unread:hover {
    background: rgba(224, 33, 122, 0.05);
}

/* Item Icon */
.al-notif-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: rgba(0,0,0,0.04);
    color: var(--al-text-muted);
}

.al-notif-item.unread .al-notif-icon {
    background: rgba(224, 33, 122, 0.1);
    color: #E0217A;
}

.al-notif-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Item Content */
.al-notif-content {
    flex-grow: 1;
    min-width: 0; /* for truncation */
}

.al-notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--al-text-dark);
    margin: 0 0 4px;
}

.al-notif-message {
    font-size: 0.85rem;
    color: var(--al-text-muted);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.al-notif-time {
    font-size: 0.75rem;
    color: #a0a0b0;
}

/* Unread Dot inside item */
.al-notif-unread-dot {
    width: 8px;
    height: 8px;
    background: #E0217A;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 12px;
    align-self: center;
    opacity: 0;
}

.al-notif-item.unread .al-notif-unread-dot {
    opacity: 1;
}

/* Footer / View All */
.al-notif-footer {
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--al-accent);
    text-decoration: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: white;
}

.al-notif-footer:hover {
    background: rgba(0,0,0,0.01);
    color: #c01a68;
}

/* Empty State */
.al-notif-empty {
    padding: 40px 20px;
    text-align: center;
}

.al-notif-empty svg {
    width: 32px;
    height: 32px;
    color: rgba(0,0,0,0.15);
    margin-bottom: 12px;
}

.al-notif-empty p {
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--al-text-dark);
}

.al-notif-empty span {
    font-size: 0.85rem;
    color: var(--al-text-muted);
}

/* Full Page Overrides */
.al-page-notif-wrapper {
    max-width: 720px;
    margin: 40px auto 100px;
    padding: 0 20px;
}

.al-page-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.al-page-notif-header h1 {
    font-family: var(--al-font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.al-page-notif-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .al-notif-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 80px);
    }
}
