/* notifications modal styles — extracted from includes/notifications-modal.php */
/* Scrollbar hiding */
.notifications-modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.notifications-modal-content::-webkit-scrollbar {
    display: none;
}
#notificationsContainer {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#notificationsContainer::-webkit-scrollbar {
    display: none;
}

/* Spinner */
#notificationsModal .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: notifSpin 0.8s linear infinite;
}
@keyframes notifSpin {
    to { transform: rotate(360deg); }
}

/* Notification items */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background: rgba(255,255,255,0.06);
}
.notification-item.unread {
    background: rgba(245,158,11,0.04);
}
.notification-item.unread:hover {
    background: rgba(245,158,11,0.08);
}

/* Icon */
.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50% !important;
}
.notification-item.unread .notification-icon {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.15);
}

/* Content */
.notification-content {
    flex: 1;
    min-width: 0;
}
.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notification-message {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 3px;
    line-height: 1.4;
}
.notification-time {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}

/* Unread dot */
.notification-unread-dot {
    width: 7px;
    height: 7px;
    background: #F59E0B;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Delete button */
.notification-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.2);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.notification-item:hover .notification-delete {
    opacity: 1;
}
.notification-delete:hover {
    color: #EF4444;
    background: rgba(239,68,68,0.1);
}

/* Promotion claim button */
.promo-claim-btn {
    display: inline-block;
    margin: 6px 0 4px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    background: #F59E0B;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.promo-claim-btn:hover:not(:disabled) {
    background: #D97706;
}
.promo-claim-btn.promo-claimed {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    cursor: default;
}

/* Badge on bell icon (external) */
.notification-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(20,20,30,0.95);
}

/* Mobile fullscreen */
@media (max-width: 900px) {
    #notificationsModal { padding: 0 !important; }
    #notificationsModal > .notifications-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        max-height: 100vh !important;
        max-height: 100svh !important;
        border-radius: 0 !important;
    }
    #notificationsContainer {
        max-height: calc(100svh - 80px) !important;
    }
}
